Received: by 10.213.65.68 with SMTP id h4csp2125265imn; Sun, 8 Apr 2018 20:20:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/lBlPNLHpfMCLrhsc6IQu7xjVJ0AyJiFHojRbLkGDf4FPJ6ebgWFWnVG2nXUfvBhhM36E+ X-Received: by 2002:a17:902:28c3:: with SMTP id f61-v6mr36927839plb.114.1523244014909; Sun, 08 Apr 2018 20:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523244014; cv=none; d=google.com; s=arc-20160816; b=ISvqsUGrk54tGl7Ol/XBGfIVsujet+UQwBL71Rww/E+SfqYI2nCuZ01dxPRwHQpD84 hTwx6xysRYJV0m+MohQYw7Ylh9Q6R2QFXX0UaSXAGGQKpW+5IqTD4auZJBXwtkc47dR/ OEAz+vVfcZyletINtJFhKp35w/5IxI8ukajS3wibi6g/kQ6dNk8eujYxkk1gn53uPF9l 7skGisslXw9IhXwZR/ID6KVvN5Tlsiri+Z3OPmNR9WloYX7AZBpYiU64NBJVFE9LHmXG Zorc2Y2Bx+UFq7BLUnlRuA8XHyuSZ2mQK5P5beEfAnNVB05DTVHNqfseufFZl2MhlGKi 0QjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=pYWKt32cm29WzImpo06kYtmxh8E07mv3PmM1qLwsHFE=; b=sKwQFpQLGCGRhETiYGUcl8SXLy1amdfkzDQZPXpFLNzci4xi+qhu+d/6jdCZYj1brf EU4eUoxBNA6OyZE0n97AmPdsG8tKiqm4ElnrijZ4Y6OVZF7E/e9b7qTpQUUWvUIUW4dC Chibbx6/bb8V3YhLwVln0IsZo0zMzvITlvdNwK4lczV5g7wbUDPsKarSrKvwGG+sMCDl lF3tQGGfhddxNeg4mHe8mMViNoxfvn82cl/2HTdEPCEq3FBVeDGD01fKC6kSXfDRn3kq tCRgbxx3eqSxUWqUmV3HRSgtoa5inDbyiGBeuLXYxOnuMVhOoT0KgpnFa203HedyY6tY zNsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=fYE8YpNw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a63-v6si13433905pla.718.2018.04.08.20.19.37; Sun, 08 Apr 2018 20:20:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=fYE8YpNw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752272AbeDIDN6 (ORCPT + 99 others); Sun, 8 Apr 2018 23:13:58 -0400 Received: from mail-by2nam03on0115.outbound.protection.outlook.com ([104.47.42.115]:29467 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754947AbeDIAXu (ORCPT ); Sun, 8 Apr 2018 20:23:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pYWKt32cm29WzImpo06kYtmxh8E07mv3PmM1qLwsHFE=; b=fYE8YpNw+Rgoyg/W+fu1PXLOy1lODuE9eayxBKYPF/D7T9pREZYGKFhYXeS7kQ0aizam+wfpzAlb5thX7HoMoFW9NAiObnqHcYt+DjGYEqXhjwJgl9DBKF9G51P15tqvj0PoSnDybwc+W5X8eOJMsGh2Z8x5Jmagq8WFOt4woNw= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1080.namprd21.prod.outlook.com (52.132.130.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:23:46 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:23:46 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Jeffy Chen , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 071/161] ASoC: rockchip: Use dummy_dai for rt5514 dsp dailink Thread-Topic: [PATCH AUTOSEL for 4.14 071/161] ASoC: rockchip: Use dummy_dai for rt5514 dsp dailink Thread-Index: AQHTz5iZ8tg2VOe/dE6Uq93DXbxxeA== Date: Mon, 9 Apr 2018 00:20:44 +0000 Message-ID: <20180409001936.162706-71-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1080;7:NX03Mag7FsL1PmLD9ORbAbmNm9mHAO+pslEzGP/pdU/swwvc4kAisK/qluIhm1s3St3rIkLQJRxW7lxb3iI1GMCD/fUxd9VZhGWGbFI765PR5QJVC+zvnsvULtQVrs3fBod+nOCxzKj0rEEditZmy+zGWG3JoKhZiR62ajc/Bf+UtwpQ82TazqUmtdSHh7hO28pPoIZN4J6aYmBIXAmRu+ff0hWJ+B/qW5aOEmMnNZYCFAUCWcjMScOm6Iw6r83t;20:AfjxbN0T/qaYgOLoYagJfKBgY6Ei2bhDQ+SHP4HjkpXb1ebGLmyzW8pCTnF135p1++bhNDNoo/4lpF/X/thlRaou+koRNNU/IKAlx3FXaSdrFLd0YxsNVqtK3o/a0nsjpcGYzvsU7eLuubgF7WbSioN5oOuKAGJ87HVElu/FPeM= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 2dd8053d-e3c2-4503-50c9-08d59db028e6 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1080; x-ms-traffictypediagnostic: DM5PR2101MB1080: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(211936372134217)(153496737603132); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB1080;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1080; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(396003)(39380400002)(366004)(39860400002)(199004)(189003)(2501003)(5250100002)(8936002)(10090500001)(5660300001)(3660700001)(446003)(107886003)(14454004)(36756003)(6436002)(476003)(3280700002)(2616005)(11346002)(4326008)(53936002)(6512007)(22452003)(305945005)(10290500003)(316002)(102836004)(2906002)(6116002)(66066001)(6506007)(3846002)(7736002)(486006)(54906003)(110136005)(186003)(72206003)(26005)(1076002)(105586002)(2900100001)(6486002)(97736004)(478600001)(81156014)(81166006)(86612001)(8676002)(106356001)(99286004)(86362001)(575784001)(76176011)(68736007)(25786009)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1080;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: jPVmWaQM/pnbQOKqVxGijE5BFG22xsNGlytXsSWcC6L0qExt5Td0CzXkyP88J6bDnyBaHB4U8aybd4KY38GrO2mWbCKz/xaRtv2rp4XPn1kpZt5YPosKDSkhuiUYj90TdI1UxxR8yPTMxgz1unyFrV+SgGY9nY9c/RdoQ+bc2I5oqMuwXX+ZiMhIKVDCxsfGEeOWXgBlMjRc32Jk1WZts7Sxt63Eu7vd3+evPbyyFS2H0TZf2v/mIY6YZVULXUPbWDe2PH7RYnPbTvb4hJHkUGEDnMXYiY0JyrynwtAcj1TkZ0haCavY+UayAZoKGJISBeJILyIBTFv/4IBuF7pb29g04D9kA/KKuz5x3qIPZKq2JHaILujzn1IwIYZE7Md2JtFR4HAvZhz1gqNdsIhl2xqH2uhtA5TqX2aaxTSjP4k= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2dd8053d-e3c2-4503-50c9-08d59db028e6 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:20:44.0660 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1080 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jeffy Chen [ Upstream commit fde7f9dbc71365230eeb8c8ea97ce9b552c8e5bd ] The rt5514 dsp captures pcm data through spi directly, so we should not use rockchip-i2s as it's cpu dai like other codecs. Use dummy_dai for rt5514 dsp dailink to make voice wakeup work again. Reported-by: Jimmy Cheng-Yi Chiang Fixes: (72cfb0f20c75 ASoC: rockchip: Use codec of_node and dai_name for rt5= 514 dsp) Signed-off-by: Jeffy Chen Tested-by: Brian Norris Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/rockchip/rk3399_gru_sound.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3= 399_gru_sound.c index 0513fe480353..21ac8d6cce3a 100644 --- a/sound/soc/rockchip/rk3399_gru_sound.c +++ b/sound/soc/rockchip/rk3399_gru_sound.c @@ -387,7 +387,8 @@ static const struct snd_soc_dai_link rockchip_dais[] = =3D { [DAILINK_RT5514_DSP] =3D { .name =3D "RT5514 DSP", .stream_name =3D "Wake on Voice", - .codec_dai_name =3D "rt5514-dsp-cpu-dai", + .codec_name =3D "snd-soc-dummy", + .codec_dai_name =3D "snd-soc-dummy-dai", }, }; =20 @@ -432,7 +433,18 @@ static int rockchip_sound_of_parse_dais(struct device = *dev, if (index < 0) continue; =20 - np_cpu =3D (index =3D=3D DAILINK_CDNDP) ? np_cpu1 : np_cpu0; + switch (index) { + case DAILINK_CDNDP: + np_cpu =3D np_cpu1; + break; + case DAILINK_RT5514_DSP: + np_cpu =3D np_codec; + break; + default: + np_cpu =3D np_cpu0; + break; + } + if (!np_cpu) { dev_err(dev, "Missing 'rockchip,cpu' for %s\n", rockchip_dais[index].name); @@ -442,7 +454,8 @@ static int rockchip_sound_of_parse_dais(struct device *= dev, dai =3D &card->dai_link[card->num_links++]; *dai =3D rockchip_dais[index]; =20 - dai->codec_of_node =3D np_codec; + if (!dai->codec_name) + dai->codec_of_node =3D np_codec; dai->platform_of_node =3D np_cpu; dai->cpu_of_node =3D np_cpu; } --=20 2.15.1