From patchwork Thu Nov 22 00:55:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 10693343 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 4913314DE for ; Thu, 22 Nov 2018 00:55:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32C7F2C5BD for ; Thu, 22 Nov 2018 00:55:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26A902C697; Thu, 22 Nov 2018 00:55:34 +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 7F29F2C5BD for ; Thu, 22 Nov 2018 00:55:33 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7834F2677E8; Thu, 22 Nov 2018 01:55: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 552A826784F; Thu, 22 Nov 2018 01:55:30 +0100 (CET) Received: from JPN01-TY1-obe.outbound.protection.outlook.com (mail-eopbgr1400091.outbound.protection.outlook.com [40.107.140.91]) by alsa0.perex.cz (Postfix) with ESMTP id 3F2AF26770D for ; Thu, 22 Nov 2018 01:55:27 +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=y0rONh/Fg/5hYTypSMwGT0O8Nk4p3EmKoqJXS7fNdqo=; b=L1buzREhuFylL44IwPm/PPcrPcrsKuGjua/7WaWczXGQd4OBofVz0uB1y7wc7zBzotLgszqbvFWycIP8DAso05U7U1txInT0ItFdf6EzKK5PLqp48s2bHZs+lwcA1bvozmPPQnHDyICefyn4cc08/Xf6OREL1QZ8esnLzP1yvK4= 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:55:24 +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:55:24 +0000 From: Kuninori Morimoto To: Mark Brown Thread-Topic: [PATCH 02/10] ASoC: simple-scu-card: tidyup "prefix" parsing on Doc Thread-Index: AQHUgf4Nz+kh9olqqEGPsLJ0/WJCVQ== Date: Thu, 22 Nov 2018 00:55:24 +0000 Message-ID: <87y39mlz1s.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: TYAPR04CA0004.apcprd04.prod.outlook.com (2603:1096:404:15::16) 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:x+hnMtULTXQlagctXKUmecK87IxVdnvdLcMSXGg433ifSi2H0SR+lTux6jqgeI+1pz2Y7CCWeq+z+2LBUrjUdEWS0RvWJgDzD1Pi+P8J/wjR247Kog6tttu1KYhVOeC4N+qMaTaZA7z3RFsYxho509/77tg7Oki3Wok9nVCJGsQ= x-ms-office365-filtering-correlation-id: 674b2027-fbee-498f-b424-08d650152f7c 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)(346002)(136003)(366004)(376002)(39860400002)(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: AQ06C+NetZn5Z4HcbFYQX1Huf+S02CBrqRZhTUWmnYRi1jae6M3p8NX+uMqhBwZlBZVwXmlmGs14ij+fR5R123ofcnLskNTCTPWJ/YT7pyYn+G+zHtP6fnzAqB4vLAZTRCRBOeK4NEOXyeIHF+HEQvuAnNH0+HwyLB3RcxuR8B5hf4QMN2Xq/xKQe+6PeOHGOyLVOHAj8jJkiJSTYTeyt8bL/BuWHvcymP2AkLI6KywvAIvT4DYN9twsDbgTHtR9sVIcnc8yAY+g1Ti2tKq0keFHi/jSvp6c+CJWcpeJufya0o2FbP+onhkm7qNw596DDgZAWBrd1f/t9HYFlE98SpRleqRiR44z1Q8ZeostCuE= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-ID: <093E637C8F22E140BE4300C1F299DF37@jpnprd01.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 674b2027-fbee-498f-b424-08d650152f7c X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2018 00:55:24.2402 (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 02/10] ASoC: simple-scu-card: tidyup "prefix" 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 simple-scu-card.c is supporting "prefix" which is used to avoid DAI naming conflict when CPU/Codec matching. But, sound card might have multi sub-devices, and each codec might need each prefix. Now, ASoC is supporting snd_soc_of_parse_node_prefix(), let's support it on audio-graph-scu-card, too. It is keeping existing DT style. It can't support each codec's prefix if sound card had multi sub-devices without this patch. Signed-off-by: Kuninori Morimoto --- Documentation/devicetree/bindings/sound/simple-scu-card.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt b/Documentation/devicetree/bindings/sound/simple-scu-card.txt index 32f8dbc..3a2f716 100644 --- a/Documentation/devicetree/bindings/sound/simple-scu-card.txt +++ b/Documentation/devicetree/bindings/sound/simple-scu-card.txt @@ -75,7 +75,6 @@ sound { simple-audio-card,bitclock-master = <&dpcmcpu>; simple-audio-card,frame-master = <&dpcmcpu>; - simple-audio-card,prefix = "ak4642"; simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback", "ak4642 Playback", "DAI1 Playback"; @@ -88,6 +87,7 @@ sound { }; codec { + prefix = "ak4642"; sound-dai = <&ak4643>; clocks = <&audio_clock>; };