Received: by 10.213.65.68 with SMTP id h4csp2196091imn; Sun, 8 Apr 2018 22:13:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/vRTE8xqLgaokuR/5vfDUn0UjtsMWnLXizU+ToxeDT3iPm87x0FxZE1sv3cvrKY842++IP X-Received: by 10.98.165.8 with SMTP id v8mr23551025pfm.225.1523250838896; Sun, 08 Apr 2018 22:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523250838; cv=none; d=google.com; s=arc-20160816; b=Mf1JnAHqzraRcw8zOcZ1B5lQc1d/oW+vBm4xxgsmFfGHL47Uwrl/KymRcPIoHzOeKv 57YakortS7pVKRTin3+p6CVxpydyAWkC5ZkK37HITDDGYqRiX2T73j6YqdzGMH71ugOz h8uEavnJyC2Yz9CMSIVDFiRZ1xCPtdY3a9R4S3enX0A0rvLUtjqVq9OVuGBVr77Y/gZd vNL1CZkKgxu9Dz+lsrsDcEEqFdBTYSbNAUB8M96xRjqdaOSLSAZ77Kf1v8Y4WvSJdF7V EG0S0zMldrgJRFeb4VjVqVHodPpO6Abl504iG2jRm8tviQ1tTgRkNfLK7LmaYFgIihX/ mrNg== 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=1Hz+/eQxa4hTH10utFuJPC3cC1NEgur5uLkx351QxIw=; b=QkgGXzG8tFbkEObv/q1q1JQCZRJcTbwVoVPyYJFwORt02gepW5frtvcrxL3mGu4GiD vWlPPT91jjkWSDrUL2F/Sdol8uYsHmmQFB/vd6XoO9Grgk1+904Hc100+tDxzRbRrp23 wN3mV0IcVPNsGynjxEPQ316wS5e++y3k7f3/P0k7Re7pH4xR7devbOs1ftOcr9aROK// DX1LoVYXboeXsBfCwEVxuutWcaB6eXzyXq2OxcXYm0L0SJyc6hO3gkGtMMOfOn41+WTa iicCxfVfgujQmAery0F7n72kHs0XZhni7N2u2+w+CfH+FPNqpIKyezOoaKuVDr2yZkd9 eo+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=fQJQxBp8; 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 b8-v6si15250705pll.146.2018.04.08.22.13.22; Sun, 08 Apr 2018 22:13:58 -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=fQJQxBp8; 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 S1753874AbeDIASz (ORCPT + 99 others); Sun, 8 Apr 2018 20:18:55 -0400 Received: from mail-bn3nam01on0092.outbound.protection.outlook.com ([104.47.33.92]:62923 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753774AbeDIASs (ORCPT ); Sun, 8 Apr 2018 20:18:48 -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=1Hz+/eQxa4hTH10utFuJPC3cC1NEgur5uLkx351QxIw=; b=fQJQxBp8Sn3/MqEEhrJnfeTJ5swctRU1HhII0BqRowezNs8fVIjFwtqkIVuchqRQ6xjFwK2UNygobo7XTGdWNeOrvYQORAQfeD8kAM1o58HtNYMi0IadWrTTL2sD4EtuXbXemUocMfhWpo7GPW1Ik1F+0/eZNMtvAniqc3amoK8= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1128.namprd21.prod.outlook.com (52.132.133.20) 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:18:41 +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:18:41 +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.15 085/189] ASoC: rockchip: Use dummy_dai for rt5514 dsp dailink Thread-Topic: [PATCH AUTOSEL for 4.15 085/189] ASoC: rockchip: Use dummy_dai for rt5514 dsp dailink Thread-Index: AQHTz5gzN6thB0TnBUC690gc0R8eYw== Date: Mon, 9 Apr 2018 00:17:52 +0000 Message-ID: <20180409001637.162453-85-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-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;DM5PR2101MB1128;7:v2h0REmG5udJV339fBzuLzy7eVlV0EJ3YskjgJyA+VpOMBPRtkm7s8dMWMIbX/ttohIA3NGqNNHi7vyM1PdCwpu+OzuZHzEDiCkPgTWQsnsSZz6YbCTbpuemp10NkwzT1JQA+QIViFRbEnEJpzUkUx3HLTrGYs5gK/0WfYPZZQw3aA6Zfk7VYaQweNLVFVsxh4/dyENGMRZyzl9S6bxXDkS7/uzi2fdTp5/grDK/SPZA/+J41s0oGIUStWuGI3Nb;20:cLnOL5VDxSbEx4jOU7rK9HFPdnCqwNJn6v34dt2ztffDpkKAsSP+1w7oytEg3MLODmQNE5HF2zQF/ooR9kzW09d22KhRd/pU3JAEBo90ganEwTpTbjHT8XPws6zB/MVQO3c7VOf004wQqKBd45cf9wdq8XJwKYj37DZtzdGwnvs= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 09d00f7e-baac-4204-10f9-08d59daf729f x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1128; x-ms-traffictypediagnostic: DM5PR2101MB1128: 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)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1128;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1128; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39860400002)(396003)(376002)(366004)(39380400002)(199004)(189003)(66066001)(86362001)(3660700001)(3280700002)(2900100001)(25786009)(36756003)(6506007)(76176011)(2906002)(6486002)(86612001)(99286004)(102836004)(1076002)(7736002)(575784001)(97736004)(2616005)(446003)(486006)(11346002)(476003)(26005)(305945005)(6666003)(6512007)(4326008)(107886003)(478600001)(6436002)(5660300001)(10290500003)(5250100002)(22452003)(316002)(105586002)(186003)(8676002)(110136005)(54906003)(72206003)(53936002)(2501003)(68736007)(14454004)(6116002)(8936002)(3846002)(81156014)(10090500001)(106356001)(81166006)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1128;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: fKE2HWWMzcZwybYpEALBFDCv6PdEO8HDrFLlMy1ArMBRJ3rLyrDXWtXnVG+C2YSnqwo/XNHuNa3M76k6YHb1PSrkajkCouuyy+RKrHW0O+kqyV5S30cqCbXcoH801EjMbR1PxK9Dd+gfMwSd77ZNwr/5iymq87tYRJGZlP6K4mTPonFOQYsE5WKV9vX5SeFdf05lToMILeNm9Cdr8dLtX5eJzTA58gTJdDH6oa/edDny5VQx9PwBc4eWSMAFgUGdqR8BSPPwfaZXIvovRxnC1SSZ9kd2M/tWWDCKIaROAzq7Pj0d+7xJ1o8uoSwy8ix13r7TxPmvqwmp3SA8ysCPmcp8qUyecBtQpLJ8e1rd3LSK3eT8N60/K8jMAAANpojhnQJh0il0wOHtMJtm6XEB4WPUk5c+273Pjdztuwhm+IE= 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: 09d00f7e-baac-4204-10f9-08d59daf729f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:52.7106 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1128 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 d64fbbd50544..aa8ffd035377 100644 --- a/sound/soc/rockchip/rk3399_gru_sound.c +++ b/sound/soc/rockchip/rk3399_gru_sound.c @@ -367,7 +367,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 @@ -528,7 +529,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); @@ -538,7 +550,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 --=20 2.15.1