From patchwork Mon Mar 7 05:06:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 8515511 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-renesas-soc@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 DA09BC0553 for ; Mon, 7 Mar 2016 05:06:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 43D3620142 for ; Mon, 7 Mar 2016 05:06:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 84CC92013D for ; Mon, 7 Mar 2016 05:06:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751357AbcCGFGX (ORCPT ); Mon, 7 Mar 2016 00:06:23 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:28043 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750854AbcCGFGW (ORCPT ); Mon, 7 Mar 2016 00:06:22 -0500 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie3.idc.renesas.com with ESMTP; 07 Mar 2016 14:06:20 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 3C65348FE5; Mon, 7 Mar 2016 14:06:20 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 39DB32806E; Mon, 7 Mar 2016 14:06:20 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 32E422806D; Mon, 7 Mar 2016 14:06:20 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id QAD23213; Mon, 7 Mar 2016 14:06:20 +0900 X-IronPort-AV: E=Sophos;i="5.22,549,1449500400"; d="scan'";a="205831444" Received: from mail-sg2apc01lp0248.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.248]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 07 Mar 2016 14:06:19 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=i3G5bgwkPYLEtQ+21eNMw7zrvUqp+xELLWqxHZqom0A=; b=kJAUeGN6JRYj+Z8dK9HlcVdl7zvDAGn9dJwEGYPfIY2baOQGThzAW9wYo08S7Jzqqbmc79iPdd8/zYhSTSk+4y48ysFouZbPVe+b+1SunZT79+zX6gDq5cS+uNK23vGwelS9nwPyLEqrQC73dJXOePA2vL+W0VVTqr3lcVxTsRg= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by SG2PR06MB1019.apcprd06.prod.outlook.com (10.161.9.27) with Microsoft SMTP Server (TLS) id 15.1.427.16; Mon, 7 Mar 2016 05:06:17 +0000 Message-ID: <87k2leyj7u.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 1/7] ASoC: rsnd: don't enable SRC Sync mode when Capture with CMD User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown CC: Linux-ALSA , Liam Girdwood , Simon , In-Reply-To: <87lh5uyj9a.wl%kuninori.morimoto.gx@renesas.com> References: <87lh5uyj9a.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Mon, 7 Mar 2016 05:06:17 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0047.jpnprd01.prod.outlook.com (25.164.162.157) To SG2PR06MB1019.apcprd06.prod.outlook.com (25.161.9.27) X-MS-Office365-Filtering-Correlation-Id: 631e8fd5-b86c-4558-82fb-08d3464637aa X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1019; 2:hGISq6CUJiFMtEoQa+OTlascfIFP4rjehuJyVkMR8t5370VdEIL+Mp1taUKSSXvz5wEsQpDbYlleD3I4R55pVrXP9txRg1OIKw10cVAEtiFUIu3Zd7wbcO+fA6jdtAltZSrtnGEaLtD+gSn3skk2WIEnUnU8VDO0JdUGEQXcwo/LAQ+IYVjeXQZ8crkyn2Lj; 3:EjdtOFSjnDVHbbDcGxugg/ssMN2WAp2AGqXeXe/0Oy+ra0xLCtbOG8vmenxXluVkZUHyTffO7ycpHWvSuVEr3qyPmhEICjC8+/iO1QxMfqb50bS0R84UhzQOJrdl8x2f; 25:JatRQq11hv/sLIvMWIwGyQRItU4RiWGxV0H9pZZSK7N3m+z/o3mFLDQjpTMPGPzABWlhd3rQe+IHK/rMlpjvp+ofip2LEz07yxIPfSy6GCCdSQetpFsd6ATgg6aLsFpIblTzrW0XgIC3jruGJ5UQ4bnWQqbwe475+bF79GqyHEcDdgMECiRKQ3x8RUcIlVLX0qfXeffJmY3WPiBzFoXiYWhMhExPQCoTmhN2dKwjG7xbPXLxckHma6Axv9/EM52caOu+Dipo2lYPDsnoywTHzaPj4EeWtx8Bl1yR6oPNfFgKp/QKYmoC4sFpcarY27Tja0NPaYwVRTOfMpBslvkuHw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB1019; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1019; 20:115QGdwihy8B69g4b633GHy+68HishWweJnxdPLIHBUxl8y2cS7F17xss7dgnDtPhn/7ftFiX+OmzdklYaYp4d2qwfhCVPQcGP2kkK8vQBEzALCVVbfhx5ZKl1Lh1+nw1Dr3CkHoW6JLt/4LlD3yvmqOCBGSIIb8Z1pWN2G/DyBLxzSQf8Mbm/g+p7cm0D4AWmuudb3ey4JsQrfBoUwbZ4TZf9DqnaVMptf7M2qVVSwJOI8/lFzMzKqJnWsOJEXwz6THLowLDPQ5nnlsPVuKWnLqiRti6U13IBKNP/hmRMDsY5qxT1hDVScD/9xdb9HtR/6db/VKmYDk30cXlGBzgZhHmQYpmKb1svEQbr71VYEmrspOAlxyvjJmeO1J5mXm9y5cV4k39RKX6JPTweic4Zik1fyifT7xJMv9k62wI3eKnW1j1f2Bxblk81vzdfyeNGAKgu/sdPRwfDgAzO3Fy2wBdHAK1Z2c2j9xZDANv/72FynVassJ2uXgQZK4gRxK; 4:oK4KEQKbFF11S6nGay5nHx2QnlECpLZXrvnSR2Ju8G3O7EcwFL87zjnI2Y3D24Zn7gVqdZb1W1fVgSJO5Vfvjko47NuMXDOCoW5ojfS2UweBm/PBS5HTqpN9XpXtrVXx+2tISvSGlKbawBuA1dJLCCEHQJD0d3AZxPAo8WHJLXVAujZBRvf95mWctemcsXNILXVZsO8zHipelSMuKe8LMLb8fsEEZXRdMEUhzrD0DDjL6YOIguhxTiyJ3cHdVjzSubmwt8qXnYOlNqTuiNgsym/LopRpGJvJJn/Yk37NYClqFM8pkqYM2//HwrXznQCpFpgIRpTRKNt3a/Vjk86QB9o9euwO9rm0Yi2PsmB+BUiXuiWTukwh1/ZfBdLZdn3x X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:SG2PR06MB1019; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB1019; X-Forefront-PRVS: 087474FBFA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(2906002)(50466002)(1096002)(87976001)(92566002)(66066001)(5004730100002)(4326007)(42186005)(36756003)(53416004)(6116002)(5008740100001)(23726003)(3846002)(19580405001)(19580395003)(83506001)(586003)(189998001)(110136002)(46406003)(4001350100001)(122386002)(86362001)(33646002)(40100003)(50986999)(47776003)(81166005)(229853001)(2950100001)(77096005)(54356999)(76176999)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB1019; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB1019; 23:qituujshY+PrCApL0cu0cIrwDfY/8ceXqtCU39aqq?= =?us-ascii?Q?q8vOzAXJwC3j5SPd4AL1eECXcgLaRfMtpNzhlVlilhD623Vosngs7XNi6gOM?= =?us-ascii?Q?FgJvAIDIFVHxDwUPeurzXYU92ezmywXFam4TIkIfb5B84KocD0FmdTgl36Ie?= =?us-ascii?Q?CYvOR3aYGLlomjnqFpatv/MlroA2AEBn6GfDm6CxKP9rZjfG9nCbBjUstIJz?= =?us-ascii?Q?qZWXnBQZNm7jp7F4buGSxVxqqzRZlOkqGHs6iFHB/7/IIJAHebzsTj5jgDkh?= =?us-ascii?Q?U6x5ycpeTAjygEkWuErIydLTu3l488P4EDTb1beil38ZpTWC2GWdPULEzPvw?= =?us-ascii?Q?rxrfdGnqQfSQd9bTqaEvK867ekq02bsl7C3KRfWiJdWZMQzJrHcEkw7ykZ2W?= =?us-ascii?Q?TPihjx3dV2pg+aozQho0/YoN6/RqhfxuPnk7sLOkze8YtCZurNAuf39HCYPR?= =?us-ascii?Q?nLkuxPtQkJ+c8sy8DShvHxQcILBtyXQrLMPhRgg3oqTJ4EhF99ARkEDr0yyq?= =?us-ascii?Q?2aYx43zQGg6I8g9x8yVSh7g2Xj5SfXtH/msCwSsTekk0YLSqmpMTOsZ/ffd2?= =?us-ascii?Q?je8GE1dBP2pnUKe3sqxCqAQnEvgVhPphrfGbbvtAWm2ZXgemN9BMar4YwtXd?= =?us-ascii?Q?3xD9n1eAAc2J4u5nlnwcIAejtAfAogM+AF4ZaDdCGT0hE86ndEO1Rv5VeVtx?= =?us-ascii?Q?x2JOjKCt0zEtkdhPBzc+YDYFzUyqx8OI258BSlj9ugeYTtSmPt2JKAOF/v/G?= =?us-ascii?Q?L1+WeVevHdLXm+pWstmfJaRSKWWswsvtDFec4bcScWS3C43AAighTnGcXEYa?= =?us-ascii?Q?yE/5nxyPMqcnqffCfeMaLeyZYSh/W3Ca3jqwRKZ+sF6vUMqzgd/hI2S5sZ+M?= =?us-ascii?Q?LhBUyW5nliMF1ISui74e1sKIdegUc0jIz4aRVyuo+iD8L13HIqJD+iOF4n6/?= =?us-ascii?Q?WAdmQEX54ITHCMd2n0h4UInahitCXqhrwfbFY6+ptI/B6ALfKRZd4dFUBQ14?= =?us-ascii?Q?kHQ3xKTxx2v2TATVZC8YHM53J0JnSKtm94gxmsjNfvYtQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1019; 5:Rmhu/ZIGJtfjRk+bAA5UM/t1SAFFAz0HZrHbtHGdh5sWxbZ7mcsdm3KJpjkDE0UYOLedAJQCB5rodXTT3oE+4sOQT2hlXUtHejZFExHmKO5zKz4knc3BrLWr7d4by0GJSkoYP2UC6HsC1R7DuQMEFg==; 24:MMe6QBuIPbi12HDcX9Tr4J5y9xkD54ykhkXFyHm5sDFxC2SiPWj+c93Fd/hXJXXKfW4L/X0kQC79DwS8D2hFkP3TgjDl8evwN+JNoaJaA0w=; 20:xK5zVdm7LpIfrU1EkEp15oaRPvtqWaV6aJ1MI9BExtd79PbNV+qdrUa1UMwdj/5jbsTmA57u/Shi1jvRRoJDkMwNbwGOF5KBZqBfEBZs88jyYDUpZXN3ZR5ybSfIViO4SilaSuxDn6NufiHpDq01PnwttlYp0RDOWr1raEjWp9w= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2016 05:06:17.9323 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB1019 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto It can't use SRC Synchronous convert when Capture if it uses CMD, because no one provide out side clocks. Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/src.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 8e1177a..541a478 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c @@ -475,7 +475,6 @@ 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; @@ -490,9 +489,10 @@ static int rsnd_src_pcm_new(struct rsnd_mod *mod, return 0; /* - * SRC In doesn't work if DVC was enabled + * It can't use SRC Synchronous convert + * when Capture if it uses CMD */ - if (dvc && !rsnd_io_is_play(io)) + if (rsnd_io_to_mod_cmd(io) && !rsnd_io_is_play(io)) return 0; /*