Message ID | 87lha6jokb.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 7115cb913d9e2d68583cf76578b32568bc8ea83f |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5D5D3C05C6 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 10 Nov 2015 07:39:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 627CC20529 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 10 Nov 2015 07:39:44 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id C858220524 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 10 Nov 2015 07:39:41 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 898FC2606FB; Tue, 10 Nov 2015 08:39:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7A9BB260591; Tue, 10 Nov 2015 08:39:32 +0100 (CET) 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 1007B260522; Tue, 10 Nov 2015 08:39:31 +0100 (CET) Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com [210.160.252.173]) by alsa0.perex.cz (Postfix) with ESMTP id C0F3E260522 for <alsa-devel@alsa-project.org>; Tue, 10 Nov 2015 08:39:22 +0100 (CET) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 10 Nov 2015 16:39:19 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 4691646CF7; Tue, 10 Nov 2015 16:39:19 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 31A211806F; Tue, 10 Nov 2015 16:39:19 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 2C0281800A; Tue, 10 Nov 2015 16:39:19 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac3.idc.renesas.com with ESMTP id SAG05665; Tue, 10 Nov 2015 16:39:19 +0900 X-IronPort-AV: E=Sophos;i="5.20,269,1444662000"; d="scan'";a="198222833" Received: from mail-hk2apc01lp0216.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.216]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 10 Nov 2015 16:39:18 +0900 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 HKXPR06MB1016.apcprd06.prod.outlook.com (10.161.181.156) with Microsoft SMTP Server (TLS) id 15.1.318.15; Tue, 10 Nov 2015 07:39:17 +0000 Message-ID: <87lha6jokb.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: <87mvumjoqo.wl%kuninori.morimoto.gx@renesas.com> References: <87oaf2jqqv.wl%kuninori.morimoto.gx@renesas.com> <201511100705.AA00923@RI117011.renesas.com> <87mvumjoqo.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Tue, 10 Nov 2015 07:39:17 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR06CA0006.apcprd06.prod.outlook.com (25.164.91.16) To HKXPR06MB1016.apcprd06.prod.outlook.com (25.161.181.156) X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1016; 2:Bu4986p5zjwQtkwKESEXRLRr+dgigQQQ9A4nA+WNP2D2TEF7ak6TY07JTh2CfT6xJIl0ys2w7VWKaskdw/yY8w979QL+N3vHEODsF2RQPG/Uq862qaWF4dQ+WMZXi1geTZ7O4Cm4T+Sd+JU4EIkD353113VkrT0khxmEJhBGwXk=; 3:Clj15ha2WNi0lKpizL5W37/FFgi4iMOWDq6qKNhnAz6Aqi3h1kNzuMWgafibO5zn2AziZKIZr1G4zMTI6vNMsmU/poNr12QfYoMyzPn4eYlt1lXMoAk+2c0f62WrcxCIYsY0+R3YHur9lBOqcdKbhw==; 25:uLDittmx5fhwe/dRkGXhtJzgWCuFJBaFXaRr9gp2MlRNKAmorgcWm55v29veiLYrPw0Hpai46732HSq/OPwTJfcqHRPYeII8RWY6xBlQSRcL0o6qwdTOtQNqxaHNRmV1NZ9fOalDlyNgdDvFBzazKcpJpC46sQU1fz+uCIwG6temEZ/CRpjsWqxmXxim8CK3qev5JivwZ/YGAn5aQOo2HRLBubJmy8UxR/BclHBKJs0zx0R8xuLWUhnEpL74hvQIXIN3L+8GDpucgQu9dji1AA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB1016; X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1016; 20:hapJKJNzWMati0abrig9UKuWwUc9QIo//8i0ZVfVhH3XVG1J/nBKrW1KhEpRy3IYQsC03M3sS91lRNab1hj7rM3GoI9zmcii1wTPudcIlPyBVZaisH1IJ3FMsOXiFVhuFN8M9NzuW04Vif52gxbftWXqj6rKCuXmLFXL6MggpIzdmzCF9nMpyC+reLJFljGJx3x5thHWnKvV9bTCDQBtVt1MHLugjuDgO0u1Fk9mJ65dt3WmEJNRDMYRtjMfJd8XKPqbtDRJt9hql8hRLKDBisZjO7IRbh2BUD5HnrT99mq64VMNOspPSf7h2zNMgG7fm+kAi3kzmt9RH40QzchoEWcG4Mj1bqcupaM0BQlGxKcjv4a+ByxZdKSlB366TduLdZg/5FIOqjyr13eHINzP0yLaCR5Vt7RbpDnmqTpH+R5wqyPfdc3Zc10+ub63NNmHg6lqboYoHSN2bUjbzBxjzLPbLkvJ8YeQEihPX1ez0VKAKPeFsjABfsEnS1IQKAS0; 4:XfQLw5Ag1UK/XA/0SMKuUPPEj7vOFP5ifvx1xlOAu/MYu/jXP4mH4URJnyhGfy9y9SRm9v5cUxZCnPg1fcjm6lU90fe2jpOI3OSRAkCpgSyD7G5JAU9RVbRnyNi0l4WFYJ75K+Y4Q9OB0eJQJwpBpc5iLiBYhOR50kx1lU+dhKiBVUc097POFP4y5q4vFSewr5KX4qAMKTWuuwEBUQAsXYUXEvQcv6tKaEWDmYRcUwpjpyMW7KsiPsgxYIgpyCKRrwhOFIpxknNilN1Iqzw326BbX7cARlupjYqm+6U03aPKhc1osMqT4CD2A54k8Am/G9Mpa65fXcmW6spBx63PSaeLupi+VW0Q7bJ2xBkJ++sMYz1o2ecUuxQQgNc59SiC X-Microsoft-Antispam-PRVS: <HKXPR06MB1016C64703D0B03885D5BEAED4140@HKXPR06MB1016.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046); SRVR:HKXPR06MB1016; BCL:0; PCL:0; RULEID:; SRVR:HKXPR06MB1016; X-Forefront-PRVS: 07562C22DA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(105586002)(2950100001)(36756003)(53416004)(110136002)(5001960100002)(50986999)(97736004)(42186005)(5004730100002)(107886002)(76176999)(19580405001)(47776003)(66066001)(229853001)(54356999)(19580395003)(69596002)(122386002)(40100003)(5008740100001)(50466002)(4001430100002)(189998001)(101416001)(5007970100001)(77096005)(87976001)(106356001)(23726002)(92566002)(4001350100001)(33646002)(46406003)(81156007)(83506001)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB1016; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HKXPR06MB1016; 23:FhUkGjicKCJKq/jk19o17y3LuqYzuIXGJXh8yd85k?= =?us-ascii?Q?BXh5AlgDOwkyt0TmHWd0vJYMgay/gNOaaoUx4HwATkw89MGmJiz5tQ5TIIPz?= =?us-ascii?Q?eQXlDTlGX4EDlK+ZAzktz1X5IkpDAU9qvH3OlP2Lj0SBGZmcvUnSMSThJHH0?= =?us-ascii?Q?uAjFLM4D2vCHyNMWhsFNI4GflgrLjEp6jaZPW2n8ZU/JZdGqQv4BeLXPdmfe?= =?us-ascii?Q?aKnR0aS18aXtkKiSp+nR2/p8G4D1vNtE6gr1LEPJL/SiZaqcd5DUM1KnUR/z?= =?us-ascii?Q?SNKpjF9M6X5pBKXNReRZqwcHLYjweO6QuAuYJcVE5hrxTFJxqfuN44EIk/pP?= =?us-ascii?Q?DUXqHJ4HAp1pLVGnRCeQOqNbc7ei/S76a41nbv0wm31a8jW81BHdSCjy3NZ5?= =?us-ascii?Q?hFd3Pgyh6XZIwoxwZdTnLsUaHzQP/sbvqMS/8s/dUFGWVY+R86glYOfJMSoq?= =?us-ascii?Q?9JMWPXd+rC0T09scOlzbSPHGKiBKnM57Zd9lW5PNC8EgAPwp6XVzXHtpOX84?= =?us-ascii?Q?ptB3UmC2mtXeJZtWt/nYDQKkAbqSOzvanphO2gOkP33PVvTJmWoFA/zrPcGL?= =?us-ascii?Q?Bc5T55x2b5/Zkgdbt5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ZlGgSr3kjym6VdnIzA+OCq9YJhh1jJYo4WBBkbQk59GaeccdnggZZRkJo3TI6JaEMm50sc1UK8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2015 07:39:17.3103 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB1016 Cc: Linux-ALSA <alsa-devel@alsa-project.org>, Simon <horms@verge.net.au>, Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>, Liam Girdwood <lgirdwood@gmail.com> Subject: [alsa-devel] [PATCH] ASoC: rsnd: make sure SRC In Rate feature enablement 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 c103aa7..e66f59e 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c @@ -498,6 +498,7 @@ static int rsnd_src_pcm_new(struct rsnd_mod *mod, struct snd_soc_pcm_runtime *rtd) { struct rsnd_dai *rdai = rsnd_io_to_rdai(io); + struct rsnd_mod *dvc = rsnd_io_to_mod_dvc(io); struct rsnd_src *src = rsnd_mod_to_src(mod); int ret; @@ -512,6 +513,12 @@ static int rsnd_src_pcm_new(struct rsnd_mod *mod, return 0; /* + * SRC In doesn't work if DVC was enabled + */ + if (dvc && !rsnd_io_is_play(io)) + return 0; + + /* * enable sync convert */ ret = rsnd_kctrl_new_s(mod, io, rtd,