From patchwork Fri Nov 22 01:49:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 13882677 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2043.outbound.protection.outlook.com [40.107.20.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85C311632C3; Fri, 22 Nov 2024 01:50:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732240216; cv=fail; b=IvWeT7hwU+M9dqDnC7FbnwbaoNYM/0HriMnk30gxF8gDTEdH9dN8Y9n9JyDs7tHTwNsyiTB7BQ0VJkjqc5YtiuvTb04tV3Eqc/LtNjAquHYeBV/En0X/+XEBnYivN2v4KtBofqj0dp5wnum4SUJT68upZxIj6DXyz7OemEJGrvI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732240216; c=relaxed/simple; bh=nuVm+n/x1DPZ2Ip1JbJkNzqNdcrp/whxmzqk0xbasUI=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=EGpoIUD2giKy/Yu/VE3XMi+v8OJgJg3l1mYDINmD7ly1BTUyYfn+dNL89wO9BnYqFW0RK5BWtepb47T5iDyoE/3XIW1Z+CjEFsRiC1aT1zwK6Nvv86+/Zry47v4shrwYrmh5T8WR2Omj2UO+Xxp7ZSR3d7+SxMkQhG/QIff57Us= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=JPeohgHw; arc=fail smtp.client-ip=40.107.20.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="JPeohgHw" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TfRiWkEkZA5D0Q/7CNYA9FqxiCLYWh3wcXvjnBPEty5xURy2906w98O0K7GE2em6pCYQDHGynUP13wBD5BjK9fMAnpl9b8yef+wJtVTpVWCp2vsviFnim6twykNb0lJ0aG3zOVaKldAI2yiX+VOE7y/nHxAOH8cd4P1llive8KZQC2BfCmgGX4lNVN4dcG8dK/hiHk7HBP9AR6BBeivEth63JO3ZuctIQxv9QIIl6yT/Z/C9/QvvN5nvXtcNljlim2T7tnHTJ06UqYUsbTn86mFthQq9BT5BwqZRr1rmwCFm6CEvVWXMiDFoC76jAQwWE5YcRy/gaK930iZvPa8sew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZdsVy4/4AcNncYZKeMPoGXoCE9jPhO1Ja+ul7tVf3Ik=; b=GxKxbelE+ToseUnrzeKRQGatjy/mocSivj+YAE1by4UCfjfZNY/RBPID/NGTR3l88HWvgEzbOFk6I3agxufhUGsDrLt1yIpfEmimxSKfZaz28kBfRNVJEnzn2dNPWfUsag65CrBMKLG34Q1yUvrR0ghNcuPVBRLbxevNsIxWBRfAYFXpEtE+v4yvjSzvOCqAMUBmcRaX3syUIRGiqDdTcYDt2tmY+WzZHOtDl3JuCJYZieHJ+As8BX1RYn8PBy3JthBVrXoTngLfKh/d1xf6eBG0OtUrvToTa6ONUAMwQ1ZppzbX44cGqRfquf7Wzv5Cp7PGmDAs3i6tQgk1hwRiVQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZdsVy4/4AcNncYZKeMPoGXoCE9jPhO1Ja+ul7tVf3Ik=; b=JPeohgHwxNAUFPBr5dUzOyvj3I5bBWPFCPySCuNCFqEwpgsU+KYgaTNbJsYOK7kp4njYtSzl1TQ+PihaV+JF4Q5vsxjMiTcH4y5lGUj6WZNMGsT0DgKIniCElHrgBPo3Kal7BsjKKAyrY3AOmymUubEKC2rMmnX1j+tPGU+XJueM/qZPzcyeUJpGHvKb7Zy4Gq6UN64/Ub2CJREgNdr3zSgMYR2O/OUKsupA8aFeLYLAlBHShWtRL/PYeooMRss80vz5SY8IzcaHnpdlQlcSKHtFALS6Age1t8VcqiHmFyySRW/8zbt9hvwhTCeZ+xV4WxspnxhnnRISeg+KuRgLiw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB7044.eurprd04.prod.outlook.com (2603:10a6:208:191::20) by AS8PR04MB8929.eurprd04.prod.outlook.com (2603:10a6:20b:42c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.27; Fri, 22 Nov 2024 01:50:13 +0000 Received: from AM0PR04MB7044.eurprd04.prod.outlook.com ([fe80::7be0:296:768c:e891]) by AM0PR04MB7044.eurprd04.prod.outlook.com ([fe80::7be0:296:768c:e891%6]) with mapi id 15.20.8158.013; Fri, 22 Nov 2024 01:50:13 +0000 From: Shengjiu Wang To: shengjiu.wang@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, linuxppc-dev@lists.ozlabs.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ASoC: fsl_spdif: change IFACE_PCM to IFACE_MIXER Date: Fri, 22 Nov 2024 09:49:41 +0800 Message-Id: <20241122014941.503789-3-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20241122014941.503789-1-shengjiu.wang@nxp.com> References: <20241122014941.503789-1-shengjiu.wang@nxp.com> X-ClientProxiedBy: SI2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:4:194::21) To AM0PR04MB7044.eurprd04.prod.outlook.com (2603:10a6:208:191::20) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB7044:EE_|AS8PR04MB8929:EE_ X-MS-Office365-Filtering-Correlation-Id: d8892175-d843-41fc-7e96-08dd0a98013f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|52116014|366016|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: doT4SM7S9NTqVCssiFQrG0JH+SURAtLcSbiFBdjvuSVUAf4Q4f2EuUEtINg1W4oQUbFOzeMoMKKnPcE+k2yPtZvOM/3SivGka+PzGLiaavInqWJ4v7A9VZXMfl2RTgId+WeKsf612u0Pv1JM/cSo7Rpv1nLRDMplUcWj6fAeWMXnRay49aqrKH06GNI8xEe4Y+vYAZc2nGtx1ey3XC7frwiP8ueF+4CnS7syKTZoQIoTPI3Mhp/NHVAaz7yVRSHnWl2czWSFVTbYEHXeFGvlG9Xscy01SfbeKp87gHsrCOg5iv0Pj2nIm/hNHEog4L6i1wSq/rK6NpJVFo1digXB40VqHNkttJ0g+5h8VnkQAg6ZptTtzbpj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;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB7044.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(52116014)(366016)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aSShuNhwIEHOKxmHabtmXtTM6BczIrx4gBpcf3IpVqAv9LCA4X7pvJ5f2wl1MBmGm6k/VeDEq7HhKjTPEhyi5VhpYA/EKfAGaQmhHgVJSGmwt4H42Mnq8zeROUbyBsX8GnNLOz6rFDtog6smeZ+5N6zcNs6GFTU/DI3jgCuBqS1V3j7fdV2HUOcrbiz7p3hsI9L6VpLw0f3+V5rOW2OtE6vxt2DXSUgMR3fSi5JGQudLd/3sN8s5ZB6MbSplSXaM1Zt7RozNwWFWVT3V8NKc0rMFAL+pbUrZiosUEYeWCenvi42ZI5zFyEjn0u/MC6seQIcCv13QeTxOQBTaVTNolqDWpK0T1R1JKzbOK+a1LScNk4cW3HLNkJky9TUmqCarWz4F3JQLcuDzCpYw+OIXMG1p77O7trRpDGaqXJF1FU5i5ElLwECJ5Y7VOl2aFMEYGe98xleX3zF/Nm+CoNWlbLjwVG+4XG0TTtToCZVDy8j8IaFGqfEcID2iuhH+nFsjGVS70XKLM+5IqwblFZ6IYRvbCBAZ1iwKIlGyKRpoL4j6wK/eOwvVPFnfDd9tzPojHvuaA+hHVSsAX4e7ta492FKQMFB3swj84+AJRO5ny3O1ONqdLbgkVLS6zMKa70hUjCI5rSYJUVftZeeF8XVLwpywNAFsxtY7CC7GH73ENl3k1zy1TlR4dAg6kOF9NsmldUnKOvbTQXmf2Rb3i+lUzUp6qwXpmZzBBZszVDq7cE//dgQP20dEyRGHEAsct3KFXpaCi01ZSL73hbsvTYOYgczzYZN1EC9O9YPJMtt9Uh5OaHlNBOreyTCXeWorGEdTlfzaktZL+EXenyTQ1S8PCMyLG/A6Dv7VUOHMIBhrzvbg9PNsFZHo6lEbT2BBkWp/8QF61nGL0/dXgpRnEJlFhgd7+SoKrgz8W2Q/VOPK2yAqYardOg1mfjMM/sFiWcMe44+CYMwZ74Qe2eYkKvdTYB6SHdmW0xP1372eeOpWlLNytfwOpmK2D5uLzihfRpUKH/nPBzFUpvLMmemyRnbmwq2MgRqRzqvTT4kbWrp2aIDUPbiUgPJhpM6MK1AgU0VywHjSCeDyHsY04t3nrLrKUAQwZED6E8E+Zoj6WYB8pGtwwaYg0FWmHcr5SBM6zeUshWyZ2keaCb3PR8apFna5acqDuoPA7+2nei/l0iVS27VATdqMHRatfTFSjEhCoMgc/ZSuA1w50neDLhsafyZ5J61Q9pfj22ZX2+h3JozxAB0SdzuKYDTfBmQiMPUUjIBu33hKNAouwDG23JMSC2hHsUIkCIL+9UQP8avEEIA402LDXcQgfHGd4MNi3w6oOICr2PTETAVl2du4jpjlyHI+Yfd0jszqd+JjVy+565coK8PiPomGtlXz67gCX4/WhRWj9zU8REw8nTUPmSbug+U5q6bodBHht+j/gq/IA6R0VAsTMhojjwafAojjxFp8LeJRPui8BEsWLRprhe2L2t3t+gBkSuuVLEsQz9GMr/LqNrR0w3cIVthyKdtkuyBULaF84B4sRXAXBEtVwkuFha1zlD6fZ2Bl5criZ8iYIVF8V36gV7OmSoj0ibTuvWzbtaZp X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8892175-d843-41fc-7e96-08dd0a98013f X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB7044.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2024 01:50:13.2457 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Lt2hBwgQjsZ0cN6lN9G2mrr6yJ4Khmeh6LYhlguPNmc7l9aVMoe+GcqWFdSDZLiEUFa6XK4nmQDgg9ikNZ21Pw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8929 As the snd_soc_card_get_kcontrol() is updated to use snd_ctl_find_id_mixer() in commit 897cc72b0837 ("ASoC: soc-card: Use snd_ctl_find_id_mixer() instead of open-coding") which make the iface fix to be IFACE_MIXER. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_spdif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index b6ff04f7138a..ee946e0d3f49 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -1204,7 +1204,7 @@ static struct snd_kcontrol_new fsl_spdif_ctrls[] = { }, /* DPLL lock info get controller */ { - .iface = SNDRV_CTL_ELEM_IFACE_PCM, + .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = RX_SAMPLE_RATE_KCONTROL, .access = SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_VOLATILE,