Message ID | 87h9bewkwu.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 93ca33c99f22a0a096f83f19c9f887aeb67507a1 |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0A64B607FD for <patchwork-alsa-devel@patchwork.kernel.org>; Mon, 25 Jul 2016 01:53:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED9602094D for <patchwork-alsa-devel@patchwork.kernel.org>; Mon, 25 Jul 2016 01:53:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E117525F3E; Mon, 25 Jul 2016 01:53:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F063025819 for <patchwork-alsa-devel@patchwork.kernel.org>; Mon, 25 Jul 2016 01:53:12 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A714B26588E; Mon, 25 Jul 2016 03:53:10 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CB22226583F; Mon, 25 Jul 2016 03:53:03 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5410E265837; Mon, 25 Jul 2016 03:53:00 +0200 (CEST) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 3D616265837 for <alsa-devel@alsa-project.org>; Mon, 25 Jul 2016 03:52:52 +0200 (CEST) Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie1.idc.renesas.com with ESMTP; 25 Jul 2016 10:52:49 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 10FE348AB6; Mon, 25 Jul 2016 10:52:49 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id E91CB8002E; Mon, 25 Jul 2016 10:52:48 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id E2C998002D; Mon, 25 Jul 2016 10:52:48 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id LAN26183; Mon, 25 Jul 2016 10:52:48 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="216303274" Received: from mail-sg2apc01lp0240.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.240]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 25 Jul 2016 10:52:47 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IEN+flfvNq21KNFns0zNjNOSfqiSgLsTHNXTeX5d9m8=; b=iniZFa/sFLE1n/vwbxlNeGU3XDclV5fTf1Y68BhqBWZ9+XVprMDHpEh7NqY8Z193uw60V5gSS2JUaeClnhhRA23TvN3ne6vuEVKr2O3bt69vnPXfGwqOLb6iWM81g07eLaVWEUmuuM+abQB9mBEzG524CDf9tnPuGgIE8wR5Db4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by PS1PR0601MB1451.apcprd06.prod.outlook.com (10.165.210.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Mon, 25 Jul 2016 01:52:43 +0000 Message-ID: <87h9bewkwu.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> In-Reply-To: <redmine.journal-761890.20160725005929.c30ee56718186304@dm.renesas.com> References: <redmine.issue-96645.20160708053315@dm.renesas.com> <redmine.journal-761890.20160725005929.c30ee56718186304@dm.renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Mon, 25 Jul 2016 01:52:43 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TYXPR01CA0004.jpnprd01.prod.outlook.com (10.168.40.14) To PS1PR0601MB1451.apcprd06.prod.outlook.com (10.165.210.155) X-MS-Office365-Filtering-Correlation-Id: 11f53885-4919-4bb4-c118-08d3b42e5f5b X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1451; 2:Tga87UQZHxfjUiQViDKMwFbyCkYduCAb4+6mTfjecLU3pwAucDl/I6meaT53T0cX4yQNxR+QhZz2ejrOMgx7rXiBxuL+wvofddrfnRz0OboYcdi0okuNLjV8iThxhOsvHae58nKY47XvZIMuteqiMmz/ejIczK2x0Al/sNnXVmJAx8IuKPZzOWIf8pWVbbkW; 3:LyfDj6sovnBDowel9xLfRwfk8YCX9trpHINrcLKZTI6OEWC0LaKZAbj12RKPoqo7sgHNG10wu4ATvfOwVilYNmZbTHdObqz/JhHwEXDok2DyMkOtolz3eGIwdwQVlST1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:PS1PR0601MB1451; X-Microsoft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fSpbJKJm/FrT3U4MW2uny6RTTTk3UHZNNgEdYKXnwH64TpnsgLrzeFal6tvhtYj/yz1YZe5CfdckpJJC98IfiUH4lg01VYXuzfpax1wYEUtp70RMBafHTGS08UCoAANuP6RD7eykeLntQgpGTh8lip3wFbQC0lpQb8AVfni+YfbOPhvwrt5spjS5z0fUGoFGZJEEzr2Zwt6icP8mJPK3TjUW5g+3eMcmv/3UyIUli00/rbjrVyt9Z3USW5cwzFVQ1pyZHWhAlOsrZhGZzT6vMU1ZRRMIbOhWQZoE6uBEFwzgKRJepqDOxdSPnexLbP+dFonMgM8rYog6LYx7ui/FieTE0OhN9v9ObnlSdX/N/kWUAmWMB4GzgytYQzYozaXcvkjiMpI0T55plBVwZGoSCW6HD0mJ8FAQxk9+SvMP3YHnYOohR6fehgwfHYmh6BC8; 4:ZusLCp/qYqo+d30gveHAtEs/n2EXF4Yu5owdE/zEpNzBuzN4BQKPP+vanStZd+aQ4BF0vSgurjmKKstgHbZCd1CuP5hCIUZUcws4hm03c56rYbpibvd5Vp0b4emhAWDgWME31JNwlG7Hobk6erNi/C4uKYAqZ1x6kiFr4fWTygEWwZquO+9UiR2PCsTwv5fD15ALILtY1gZ/CiieA1JoY0nfrzRjErDk/9aXVwbd9TsaFxUmHLimDOSgHTRThf/goz8DIKmRyB7iB20yRu3TZbZGzF0I9nVt11XI/oNg0U1hykuAttjpc40L/2UfncmkO1Nx6dHtyqlLII5hu7gCmDzdOs4d/WuLvW5LmzUATgwiP8NY+iSfopF8+U9FIXgk9DQEROxTOp5cMOs3IltSCQ== X-Microsoft-Antispam-PRVS: <PS1PR0601MB1451CCE52EA60C9561BDF90AD40D0@PS1PR0601MB1451.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:PS1PR0601MB1451; BCL:0; PCL:0; RULEID:; SRVR:PS1PR0601MB1451; X-Forefront-PRVS: 0014E2CF50 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(106356001)(66066001)(7846002)(47776003)(189998001)(7736002)(3846002)(6116002)(77096005)(23726003)(586003)(97736004)(2950100001)(107886002)(101416001)(81166006)(81156014)(53416004)(110136002)(50466002)(305945005)(229853001)(8676002)(105586002)(4001350100001)(42186005)(2906002)(54356999)(50986999)(76176999)(36756003)(33646002)(46406003)(4326007)(19580405001)(19580395003)(68736007)(69596002)(4001430100002)(83506001)(92566002)(86362001)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR0601MB1451; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; PS1PR0601MB1451; 23:eFsi2EjSzNW34O/R0y9Q8PYgbbf+8h3wlvwNVgM?= =?us-ascii?Q?xnkPxAkG+CPp8gaQ37i9L/w4hCnLNi+HnV1v37X4/HkIfGmnsPCThaqcMxo0?= =?us-ascii?Q?1rgVGun5KX6M60yoh9XQ+aV1FduW5ur0DPSGD5U7pfSCdLLmoi9vDXL8iKe0?= =?us-ascii?Q?iPh8yJfbI2tEutyuInefGHXxTdr2F/C5HHhWiZYLqpPSllda5lfHGk96iRKH?= =?us-ascii?Q?dNZAQ9GbA5mhV+KIT1EoKJ9vLmXaj59dbrhRTSG0E+lrKeYmkLnNamardl0z?= =?us-ascii?Q?E3fFphTr5/PYKsrqizrPBxNeFnJWdkhOEPWWQKViulZw13rojbupoQh8oX0i?= =?us-ascii?Q?fjD6xEPRB/zD23TlqEfjBNzlTfXgzKyB5LBsggJbZIoVE8f/1nY6cuGNdpeT?= =?us-ascii?Q?vJT8w2Q5NUTyBjGaT/k79OodmQwBFsJr5R3yLLj2UCCRS52gpHihDMgUGAA0?= =?us-ascii?Q?7ta4BFy0iV5nY3dYHZMny9ohWaPDy9lTETUOx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v70u9sEwVsyJH0FizoePCHtCnMO1gSrlVz5sWbu/c9dzqWbC4RfOA+YnAQDt7DJFaj3REOptj00IwFnFduogjNheCycRaXxTkULU+eJwTVUtffhIt52K0x0UYaujY5F7q1jkODS48TaW8tEo1xdDsw5FqCh4cchve5bajF+XvvYze2WeQxxKRookQl8ccc1prFEiQ==; 5:UYOwf81ncY2lfB/Li/WShaYgybkCTrVMhc+Pq278anlkCMHr41bpdZ56/b9+M5TF193nx+HJDpcR9wbAbIJOT4eihiza8GWSbKtE9xzep7O5K+7C2lVoTuQc9nnN0o2tGLGIvP2m7ucXRN0T67/EKw==; 24:NE5uIBa0BzUIhQ9XKcf1lNQW5NP/muprQlNr9vkyAQB8WkYwVU/pYMzC2PqvZ5fBbQhoSir9pnW0MJHw89Z6M5WhXz1GhbtgQiBy7jJ4RUI=; 7:rygZZ71eXZEqBHeGwW5QbIAKV37o4sbz76m8IJ/YQXTJYziHDBJMV0S3M6Op0vepKXUITNpxVKEgoAmG4sIiLH0uLehP2Zg1iiPG9dGEE38efjIUFL1oBB7HeY7tIwnc7drOm3WMnzEigkXuogCuLVlKtetR7bIIvZQApKiLL0tmrb2VNXKPtTDUyyquTPIAdZMPRvPsx8aRQg4oRJX4MqWqtp0KXzvHf6wxYF1mRX8PAsFjiwbFg/uKBGHXPE8p SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1451; 20:oxZ8Zi5Ik8BLO9L9gt/97/hHpcQDpR4/ARN1KVT01UMDCGWdvf7EnrTPS3xcrSIVdpXYOQg7P6XO4NmfCFwE5OrIoAau9VPs5zocK3YqvmTLNyqXvFxclfvfz87e6Htki32PWg7skQna7EaVb948uRiBLXoJipNkAoGchvsdY9E= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2016 01:52:43.6743 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB1451 Cc: tomoharu.fukawa.eb@renesas.com, Linux-ALSA <alsa-devel@alsa-project.org>, naoya.shiiba.nx@renesas.com, mitsuhiro.kimura.kc@renesas.com, hideya.tanaka.nx@renesas.com, tomohiro.komagata.aj@renesas.com, khiem.nguyen.xt@rvc.renesas.com, hien.dang.eb@renesas.com, ryo.kodama.vz@renesas.com, takeshi.kihara.df@renesas.com, ryo.kataoka.wt@renesas.com, takamitsu.honda.pv@renesas.com, hiroyuki.yokoyama.vx@renesas.com, Chris.Paterson2@renesas.com, kouei.abe.cp@renesas.com, ren.imaoka.vj@renesas.com, Simon <horms@verge.net.au>, takahiko.gomi.yn@renesas.com, yuta.wakasawa.pv@renesas.com, yoshifumi.hosoya.wj@renesas.com, Liam Girdwood <lgirdwood@gmail.com>, linux-renesas-soc@vger.kernel.org, harunobu.kurokawa.dn@renesas.com Subject: [alsa-devel] [PATCH] ASoC: rsnd: Fixup SRCm_IFSVR calculate method X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index e39f916..969a516 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c @@ -226,8 +226,12 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io, ifscr = 0; fsrate = 0; if (fin != fout) { + u64 n; + ifscr = 1; - fsrate = 0x0400000 / fout * fin; + n = (u64)0x0400000 * fin; + do_div(n, fout); + fsrate = n; } /*