From patchwork Tue Nov 26 05:32:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 13885477 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2055.outbound.protection.outlook.com [40.107.241.55]) (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 8D6371898FC; Tue, 26 Nov 2024 05:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732599225; cv=fail; b=etiCwPTM1YnzMc9AREgAtCkwuyJC1AmIgy7nSLwXM3g2iUnMuMLAFIKfTHuSQQpxg5t6PS5qzvxSyQH2bvoIiLDwvFVXBk1VPH8B1vq31RsZHX9SvbH8ndzR5diYOPdv1+mezFMUIAgbntOqKNQ2Hrl1DdRlMWTtE36cg2vhUew= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732599225; c=relaxed/simple; bh=GdBoQCiU+qB1I3CkoQR6o9m0TReSt/L8KV9Kh4Ky7KM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Fv+s7WslrhuATHdv8M9Gxu2PQdh745QAw3WSskns7GngOvFcAEAsiFdPkxC41UmULX7yP8kJO7MJc/3xPMSdOodeS0ZQNX8g84AWOv3eXuCHrgtgIbb2jhyse5X9f1t+aOUFLPr+Dn8C+bjlZWCT2b2YM7suSejrpX+UlusjAws= 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=muW2Waco; arc=fail smtp.client-ip=40.107.241.55 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="muW2Waco" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mf28WQY351+jziJ+U8X/f8xRbgOTAR2bRyibyNKaIT0V5zBMVL3fAapsx9kFc7VEB/0iBskqDPu/IpnI1t5TwQVuRcNwBIyn2RXpSbsRv1ui13iU39+5pTTx8RMha/qe2fZXNEY6Vm8H7C9AALEYPzSSz/QeNjqDYyZIpfi+SZsuUpwkN9CzIOEc28lS48Z7SzHsoHXkgpXQ0Hy3hcGn6oPe0bY3E/h94kZ99luJnebjOowXmEwK60cOunonAkr5LbHm6MMCkZLm/BQh+AVV+nGITGx7hhckH8CLzoEO0keeCF0HV8zIrcFEjHOhbogNDyk/hbCEgzNCWKi+4UBl1w== 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=fKlp7jfKZr0CIv++v35q0PqUfQNFbhf0EeU8Viv7P1Y=; b=zHoiOIdDtvjssEv8d6hAWlEXYJkWcrBBFNEBWKynuufdDn9MtatL7LdGjzXfecliW/1dA4kGoGujrgXFwzb978HLFauEIHptUNWKP7BboxkEz0nnppSlJ4VVhoApBkQbpI2mk02I91jb1Y3Qk7zSCNsxorKm+1Ae9hxn+9CBH7LI5f5EjjWOC+hTbuCVVhZbZtCq0ujyO4oYDiUixRnXn0YUnA5zB4dNPZtkRd5eSZKwDVZpbDE20gHzMa/ezsk5EwEV24AcpyDN6MqVl6e7u2boAo9oXZIex09WIrODrFPr7O06VlBp++9ZGrVKJYMERMrKnMYQ3ETIid0x6VPFvQ== 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=fKlp7jfKZr0CIv++v35q0PqUfQNFbhf0EeU8Viv7P1Y=; b=muW2WacoQ8dn27T5+gTK6Pbk1enEx/+/ug8Y5krHgKzBjaeDSMxVSQ718QiIHkJL4/T2gLmmk3rparZMXUGd2c36HWo1a0pO8rConzeUrBD91UbhsLpf99NK5qQyaWGHtv5PpTuxsyYajLFLi/0YYL3bPHIL3HXVjPZeKQbR3TscFjHHbyp9Q17TsBOQ1olU9/4XOxDUHm3mmB7ayChMKKxE0h4WKoca/U5lWQD27W5XLH8tOztbHKGlJqthE904YcNBR9C0SrPRNHTxjWEWOcEn0nloIrgMqeKW/xWr9fw8UAM9is5RCO7P1+l/mETERhXJnS0v7+eJbwOaKMgpeQ== 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 VI0PR04MB11071.eurprd04.prod.outlook.com (2603:10a6:800:262::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.19; Tue, 26 Nov 2024 05:33:40 +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.8182.019; Tue, 26 Nov 2024 05:33:40 +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 v2 2/2] ASoC: fsl_spdif: change IFACE_PCM to IFACE_MIXER Date: Tue, 26 Nov 2024 13:32:54 +0800 Message-Id: <20241126053254.3657344-3-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20241126053254.3657344-1-shengjiu.wang@nxp.com> References: <20241126053254.3657344-1-shengjiu.wang@nxp.com> X-ClientProxiedBy: SI2P153CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::14) 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_|VI0PR04MB11071:EE_ X-MS-Office365-Filtering-Correlation-Id: 8c5e77a8-3052-4f60-29e1-08dd0ddbe26c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: tbgONFerfsLKsf5O91xyvVg1Q1Dryld5s6bPjRAEXnz1jcsFrH6NpqLo0SJVNLWnWZOuuaXh9AswrBBZPCDWllMlfOLCCLramjSvGdtPW0NxwZhoiYNp+NjGeb4ye2v5Cn7Xit3kWLDK0yEpbgmy31LmWHkVQ9kBm7uUvGZZXQTwCTbl4Vh8VoNGPa+UNPEOOF/kX3rMCHy2FI1EWZvpQzJ7jYx77OvsR/ipeeyglkakihiBywj+Gzk9uzSqmhDz0miB+qUheSeR55MlInAmqkEtKSNG3FAZNGrAbPsFdSv45TeBvw4MfEisCgypcwqdV/oduikzgFF3Ev0uQMreJtY2LbaZYcl4r9RDeYsXplAKhRwHgeYMN8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am-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB7044.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(52116014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vuO24OLpRnar9+fy7ALX8Z1if0hOI+QQdI+pwEUQaptecuHmEEmrBmBgycVJkovrucSd3dlyy8RRi4AAhhZTj9a6gLA9TqmQ7PZXHbt+aaGYC8Yp7IKEbyIqdjLMJ1m3UwLc0wJJhVMbovphCiUmjtcTBcVovqthQK5uOiRkxzcxDI9eJfpLvhWsoegIXzovGZP1ZWS939RrTtTT0s5b+R0aMQHcEYnkldrZjrGf552i0gg8PhRFTCPGmp2ebP1nX14zEiFzEOWUHJ9FsByJjiYN7TkCDsjUnlIMAOv3ILeacSl40RoqCwwAQHDaBfM0MZZ4q1k20XQUpAruIR3wefHbDxo6nqrIbEsMVc/53QV+kwNv374kf7j1r7YlKzN9WuYD/gs3WMuy39XVeyHDYlNHhTYaIcqzziR/ZPcCWHnziHR7aIJV0/5DnGuF0HPnYZStYXiWkiOS29eJ85VmUkZICLhs1zPb1FLnNfWxM4qh7IilMY+fbC4/KzRaZYOeOGPtXxq68MRbU3DdH1ZO2s/pTbds6i17fMlM2+yep+MRrerJwDNzX6Q2vC45XIDjmk0UeqLlAsRNz89udgv0KDkHF890mkGqcxM/OSlxpTf8Ogg3nwdoc4zM1d7ZSa7Su/CGYoHs17KaqvKgJAD9Tut0Tu2nmvFpvNpUoOa4lXq2gcwWpZWso5zVejN2qHIC9AbVWPS2uajQvWGKOeGNkS9PMkcsjITxYgoCRMNxjDKoJbc+cRgBXgSVdlMCoHilBdCdAi4DRBi6r60SmoAyOQZnNTWrqSH52305g1LIjnKj9Jts65qcHSdV1TmqNRuSMqove0ywDX9sXnz3tYBg+f67vn+DgA754GSJVGzpXcsephj3xxjTkr9f167D0BHCoHruzPwAJvSWjXYw0MWkpJ03rVOPQXsFgNd9zWM1EuoVfwGYQkExfjiq+5d520h2uPX+Z2Pi1ecNhqu6yAm+QKUczuHmF4RAo459fwUa0CIdBgXUBipa1w24jSEo+oXetlnvNUSXkTUFx1f2S8F85810FLP2yJRnqN1z9sQ7fMfiWlOmbQVqXdblMEzAnSR7vyge9NmFCIdomq3tlb7pQ9ouA/tyD0KRsf8du6W/9HvbIG+0R0StUWTbx4c0nmHGMoWlMq3KsMr3FIykjcDygKBjuayd0x8INRK8RAnTnzRQh0+dMFspfsHCQdFkA2nffUrn+z9tSJ/9P/fNAdws6P+JJJBxs9RYh+HZVrNerWVSOlgf6rhzM9Z38IdhdSQJ6k9pYzGl4vWW+xxlMm/FlN/Eq1V4dWgkxfvWw5su50QxiZWkBD4xTybQGUbBOL1IEjLBSUPAQZa9kHzPD7TwTtsaO/N1noEgBHC1ISiEi2759FVF9uLJ7CrCbL56LN6oYSUiF3vZ3clBIzeKrATECGQiqGeCVAvTae1w0E3RDdBjRklp6qZnpAFZrwdSIJ+jdwnm1aJximlC/2xvSx9rtDAhiV4mK5PR8xBKjvucdBOMIGQAuUbMEsg8L829Fwi4C9WK1O0iF1fvKpOWiarbTdcLsOXGJT9H3iU2qBJFsMDYDOxSZ6lqQtFG8J1HivbF X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c5e77a8-3052-4f60-29e1-08dd0ddbe26c X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB7044.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Nov 2024 05:33:40.5439 (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: WOTx0e/4IE6faME1ig5ziBROVQx+4C8/CVlaggmEu8e/KWob+FzQEMRh5iUAsGrNFz6kAkA6D3URFeCmQenj/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB11071 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. Fixes: 897cc72b0837 ("ASoC: soc-card: Use snd_ctl_find_id_mixer() instead of open-coding") 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,