From patchwork Thu Nov 22 00:56:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 10693351 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B910414DE for ; Thu, 22 Nov 2018 00:56:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1A1F2C5BD for ; Thu, 22 Nov 2018 00:56:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9476D2C697; Thu, 22 Nov 2018 00:56:50 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham 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 EBED42C5BD for ; Thu, 22 Nov 2018 00:56:49 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E0A4D267A5C; Thu, 22 Nov 2018 01:56:48 +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 13A4E267A61; Thu, 22 Nov 2018 01:56:46 +0100 (CET) Received: from JPN01-TY1-obe.outbound.protection.outlook.com (mail-eopbgr1400104.outbound.protection.outlook.com [40.107.140.104]) by alsa0.perex.cz (Postfix) with ESMTP id 147B7267961 for ; Thu, 22 Nov 2018 01:56:43 +0100 (CET) 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:X-MS-Exchange-SenderADCheck; bh=q/034J5JoYkqIXqhlNmc/GvgXKHfnLekeWYw8WjiQ/Y=; b=KLFNoRUjsJT/omQ/2qcWBTpCid3R1e/EdpalKGNUu9G1L8MHJFwZu/gPgQDPMd3HdPnMbd6P6iiXQH4NUbvzFVeO0d95jGx28LjWUjjegtyQLzBS/2FZ2VnLjomGkB11QEJBuhzE5AAMKpKPty0kPEE3Vd92rClQ/dMS+eo5Ny8= Received: from TYAPR01MB3328.jpnprd01.prod.outlook.com (20.178.136.81) by TYAPR01MB3263.jpnprd01.prod.outlook.com (20.177.104.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.30; Thu, 22 Nov 2018 00:56:41 +0000 Received: from TYAPR01MB3328.jpnprd01.prod.outlook.com ([fe80::19d4:7f22:a842:9f67]) by TYAPR01MB3328.jpnprd01.prod.outlook.com ([fe80::19d4:7f22:a842:9f67%4]) with mapi id 15.20.1339.027; Thu, 22 Nov 2018 00:56:41 +0000 From: Kuninori Morimoto To: Mark Brown Thread-Topic: [PATCH 06/10] ASoC: audio-graph-scu-card: tidyup "convert-rate/channels" parsing on Doc Thread-Index: AQHUgf47dCoiIs3jf0604wu0ifNMCg== Date: Thu, 22 Nov 2018 00:56:41 +0000 Message-ID: <87sgzulyzm.wl-kuninori.morimoto.gx@renesas.com> References: <871s7endnu.wl-kuninori.morimoto.gx@renesas.com> In-Reply-To: <871s7endnu.wl-kuninori.morimoto.gx@renesas.com> Accept-Language: ja-JP, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: TYAPR04CA0017.apcprd04.prod.outlook.com (2603:1096:404:15::29) To TYAPR01MB3328.jpnprd01.prod.outlook.com (2603:1096:404:bb::17) authentication-results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [211.11.155.130] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; TYAPR01MB3263; 20:KBu6vrKrKmDsMijEi4k+TBLKBt2Wf1CfkoRwmjso0VImANcsB2TFc2LV3zWxqcdX019/1GITJgmE73V8w/0gSXblNCdLnR2FX+vozPuTRrzMiXcuVcpn0qZCdkaMuC+kMAPlYW5M8yNVCnH0MX6GjG9JACSrFuYlV8EiBY3eLKc= x-ms-office365-filtering-correlation-id: 45c54f31-fe76-451a-6319-08d650155d98 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:TYAPR01MB3263; x-ms-traffictypediagnostic: TYAPR01MB3263: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231442)(944501410)(52105112)(3002001)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:TYAPR01MB3263; BCL:0; PCL:0; RULEID:; SRVR:TYAPR01MB3263; x-forefront-prvs: 0864A36BBF x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39850400004)(346002)(136003)(366004)(376002)(396003)(189003)(199004)(52116002)(97736004)(3846002)(7736002)(66066001)(386003)(11346002)(305945005)(81166006)(102836004)(446003)(6506007)(68736007)(316002)(76176011)(86362001)(106356001)(105586002)(8936002)(2900100001)(71200400001)(486006)(5660300001)(26005)(6512007)(6916009)(2906002)(36756003)(14444005)(256004)(53936002)(6116002)(476003)(4326008)(186003)(6486002)(71190400001)(8676002)(81156014)(6436002)(478600001)(2616005)(99286004)(14454004)(25786009); DIR:OUT; SFP:1102; SCL:1; SRVR:TYAPR01MB3263; H:TYAPR01MB3328.jpnprd01.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: ItU1e77zNv07UHuZIv3bTmgKDpvIg9+5MqtBoMVgOyG+3F/l8fuexcPRsGShcPVNsHOurHbpQzocTLPdSR/npvPUO7sL6K7XA9NBMjoyXEpkK4xqgSMr+RIy0SDWxOyzggHzOOAK2ZdOG7mUPxHiu+wpS/UlECM+yaHGzSjVYrJWRzkwCBNsmdhQEXdH14WGH50NzteL/PLToIpYwzHAO6VkQqsN55EOt1orBXV7N36L2oV26/i9A7hyQGMzTvq53z3Y/ihE6jbBPgZ5d+ae9GO/ep3khCoK43wX9yAEXhZvQi1rHMWLKnWAKN+EeqiBoXmSHc+NoIVt869IC4hpDpnHc5WZLgLu15RbhCQu3TM= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45c54f31-fe76-451a-6319-08d650155d98 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2018 00:56:41.5517 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB3263 Cc: Linux-ALSA Subject: [alsa-devel] [PATCH 06/10] ASoC: audio-graph-scu-card: tidyup "convert-rate/channels" parsing on Doc 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto audio-graph-scu-card.c is supporting "convert-rate/channels" which is used for DPCM. But, sound card might have multi codecs, and each codec might need each convert-rate/channels. This patch supports each codec's convert-rate/channles support. top node convert-rate/channels will overwrite settings if exist. It can't support each codec's convert-rate/channels if sound card had multi codecs without this patch. Signed-off-by: Kuninori Morimoto --- Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt b/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt index a361088..62d4276 100644 --- a/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt +++ b/Documentation/devicetree/bindings/sound/audio-graph-scu-card.txt @@ -80,7 +80,6 @@ Example 2. 2 CPU 1 Codec (Mixing) routing = "codec Playback", "DAI0 Playback", "codec Playback", "DAI1 Playback", "DAI0 Capture", "codec Capture"; - convert-rate = <48000>; dais = <&cpu_port0 &cpu_port1>; @@ -90,6 +89,7 @@ Example 2. 2 CPU 1 Codec (Mixing) ... audio-graph-card,prefix = "codec"; + audio-graph-card,convert-rate = <48000>; port { codec_endpoint0: endpoint { remote-endpoint = <&cpu_endpoint0>;