From nobody Tue Nov 26 15:49:10 2024 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2078.outbound.protection.outlook.com [40.107.21.78]) (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 7F2A61C3F27; Thu, 17 Oct 2024 07:15:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729149339; cv=fail; b=b1+Y6h479CRbljZebtGlMZlqvpGUA/oLtcjsSQnD8f5Ks8bV6mrLewa5fvHX9hE6Wr3ZEf4IF+0HoL5/Qr70LKLC7ozqk5TuFn8IsMqhkVfbH8A11Vq/DITc3jYFZ4rCd0EMsAPJATE0Eg3Em2HKESirYlN8gRpyJSKvRr1uKdQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729149339; c=relaxed/simple; bh=KUsCoUYyDybkNPGMPDQVDsU7fBDAkbrj9PG+lpN7EvY=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=ER1yYYZpB5LYKulNkAC6WVJnXrBQrNrQHjUblmkwhTGjBWIn6E0aDaBDLPZmqCDem9bMBY5L4TCOGtNfMjbpGGiFzxMg+KuDt+/OYTJTNV9L2+UK9MXNMuMnZ3RSO2o8wr8TPKxtCVD49LVAw0z7NydUC/CTpeTSxfaPeqeKB98= 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=R9Tw8Uk4; arc=fail smtp.client-ip=40.107.21.78 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="R9Tw8Uk4" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BG2mURpfPn3nbFS3ZirK7HcXd87VMKkFUgbQNbq5fORfutwNV4k7l/Qw1HxFO16Pok/S5Kkm5zzVgSf7BEVcryWdu3OBTcKhjM9ABKRuMiFFRK1OBWfchstPT1qKodMPFx/4xWof9M0ZqrEslz8yjsRjxT9r8dR1L/XVV3mp+Wq4FzGHwOzT+7L2UvzZ2zLgt5beUVNezo0/fiEr9rcCgXy+N6uLV4GP07ptaxhfvXD1HW/Ygbq4sW4yw8h0ny+eswOfjL29dYXP59dt4Xo+Rw5jqre59dHc0o0yX3g760Ej7EzWSh01+RrXzp1kLJsQ4jqV6cX2HYbQHcHqDvyOHA== 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=7D5uQvaJFgBhREp0ee0pjS08ILe8OOGgHY9pc6BLlB4=; b=R/LBHTGSOfWPFPWz+YY9o67eUuxMkZ8SPxqDJ840gCng0E8c4uLtHA887/YuJmAO8qK/4vGUQRl8p3CSC9tzNlpLCAjwPFB+eMawPRhgAJ0MHHkkHLVNHw729JmPQLrxJ8JO48b3Gvw17QB9hiUzQIATJRZGxIpF/NDZjRfpNU5VTs18oL/QvCq5gEuPZZaz5a1/zKgL2v9EPxN/jKO546QZvUD+3D1xM4C3jKMBpj6UyQ+iJHxs3QBEwmbuPWGOk4wowX4H/iTVMxTkyqKrswH/bMhfbb5/r0aHJDFuNMj5Hq4UuGvTLQHNID6AsXCzyS6pKzMEUWrcA0pXq0QVTw== 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=7D5uQvaJFgBhREp0ee0pjS08ILe8OOGgHY9pc6BLlB4=; b=R9Tw8Uk4N3TAVGch2Oz6XQaBsg/ciqqhtKsUgl/eZQH6f36aY04v0MnSsDkob3pk36u+lnSddX9j0FSwz/7iPsMwvGu02ONqLTd2vUdgLSq/xaaIoPcdsk/zX7wiiPR++JfpIqLfD1p9WgoMJubXMqr61Q94NXuNqk43bj9T5/FZBaIWduzVCl8SJTNcbqvz/jgIAOoiaHN1Ac0pjop2M3X7sE1wJGv+W1Ub5S9mgtIndjVBkOmJr2tJtXtAxSojy3L9WC9xJVT4nk+e4t8bSIk1QNeKrP3Ty5z3T1bPv1DEQs2y5Wz/f8SBWpaLlcRQ0MnazZFR4yxRxX+Ho5wiZA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) by PA4PR04MB7631.eurprd04.prod.outlook.com (2603:10a6:102:e1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17; Thu, 17 Oct 2024 07:15:32 +0000 Received: from DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::24fa:6f9:8247:c5dc]) by DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::24fa:6f9:8247:c5dc%3]) with mapi id 15.20.8069.016; Thu, 17 Oct 2024 07:15:32 +0000 From: Chancel Liu 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, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org Cc: Chancel Liu Subject: [PATCH] ASoC: fsl_micfil: Add a flag to distinguish with different volume control types Date: Thu, 17 Oct 2024 16:15:07 +0900 Message-ID: <20241017071507.2577786-1-chancel.liu@nxp.com> X-Mailer: git-send-email 2.46.2 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SI2PR04CA0014.apcprd04.prod.outlook.com (2603:1096:4:197::18) To DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB9498:EE_|PA4PR04MB7631:EE_ X-MS-Office365-Filtering-Correlation-Id: 28c8298d-bbd0-42ba-cd7c-08dcee7b7ce4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|366016|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?GEKE2pW+6VSrnumyVsh87D4QUS+Vl8d121qHpCxKqn1jyKvRTfQi1HYYJD5c?= =?us-ascii?Q?20AFSx/bYecdMI6a/UVTYHRMDvZ+zjc5bRAzL81f/IKx6mHS1Lz2B/hLw/Jl?= =?us-ascii?Q?Knzk/Ji095F/4tB4YdI18T+yyoQeHVblnUSltri1nrZkS2E+sjwjrDyrivyD?= =?us-ascii?Q?l72hq9KVO73wsWlt88X7fLHYC8dbOho6bNbfv53hsN2qvfjw0jYOwodXQ6eG?= =?us-ascii?Q?TeS9XlGOKEoaT6DaWVKN1m12kWHIvC+uL0HILnxBFzcVZiy0OjxYBwEC2B3b?= =?us-ascii?Q?+r9uwMOqR/CPMovSAabWEHtLl/x1/1ehkTEgDD8az8Z9+yvWyQZuRKvQF2SE?= =?us-asc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+0xcrcn5QhZeoqI?= =?us-ascii?Q?RK5gVRXLtVqLOY1ATy+zPs+eaC3Nf+pepjl2Cs/CY64JpG+946E9RmZkwhK8?= =?us-ascii?Q?9CVSpGOAesnFZKXkOu4KWKlIwBvfMPzAC3jBndOqb+eFqg/yNyYU2KnCv1sq?= =?us-ascii?Q?D26Jp3h7i0GysIjs48ARuEyfB3ly?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9498.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(376014)(366016)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ZTGfk+ehJ28pbYSaONghFQa+fj9jHfGRc3KnA6Kw/OfFLoccZLSq0WAptvc8?= =?us-ascii?Q?6qR6R44pxfI5aqe/gUfB1qnr5kNrPhG8rQoCkK1yCFi/T/e3ZDY6oevJDtCm?= =?us-ascii?Q?/23skzAEdLkI6x/zbGOKrWxsaGnQjmEq8aArbxO2JZPG0yaZxTf2ba2WIehQ?= =?us-ascii?Q?6G8RuSPcMsM098f7e/U6dqeNk2gG56jVdjXMLbvWTpUehzrceleKrl+P73jI?= =?us-ascii?Q?fHpn1j7FvSdPkCk7A1Z5emzafUtKZdS2Y/7kw+jsg0wSqLrJCvFkB7J/mOC8?= =?us-ascii?Q?++x7lnuOVtqBd5FisAqFRZJxyLsUaou5eCsbkr6TuXXeazWbOveZ40H1iB82?= =?us-ascii?Q?8QlBQJfmZCyPtHTJC8DvhAO7Es8OXlPS48ZSxNuvrd5QQ1Px/sbucpyApc2q?= =?us-ascii?Q?1PtYZufti+LQDC5QDA/jsA1myANSiK3q8KwTAQ6M4MOv3YhBqAC63NgJQvOd?= =?us-ascii?Q?Zv4wL56zvBvWAUJPEaKJ2+bC0m3Ac5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Q?HPQEOuQtIxTKtdniuAV6eNBLd9T2+YSEQ1/CwYX9Sz4CXX+rGcq1896Z+ZEn?= =?us-ascii?Q?+/3viPTKciVkfMvW1QO9hoVbPAhVKjw60rb+1zFQpWCjmesyab1H33AU29+u?= =?us-ascii?Q?icsr4PMQjJk8HqhDlz22Wj5yMANDGWSPxmH5kxIxyZHBVxPcCsi478p8edbg?= =?us-ascii?Q?CEPmdMTZsehUPykekhB3jUuOwqVAIYEORrqIjbRY?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28c8298d-bbd0-42ba-cd7c-08dcee7b7ce4 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9498.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 07:15:32.5354 (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: xHg/2uJmOyCLRKFBMwuTCk3t6DaGY2bepshMrVVfrRjLRd7Z5ASpHi7GelhLj0DqPxt0U1t8xJsqlxqUUocfTg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7631 Content-Type: text/plain; charset="utf-8" On i.MX8MM the register of volume control has positive and negative values. It is different from other platforms like i.MX8MP and i.MX93 which only have positive values. Add a volume_sx flag to use SX_TLV volume control for this kind of platform. Use common TLV volume control for other platforms. Fixes: cdfa92eb90f5 ("ASoC: fsl_micfil: Correct the number of steps on SX c= ontrols") Signed-off-by: Chancel Liu Reviewed-by: Daniel Baluta --- sound/soc/fsl/fsl_micfil.c | 43 +++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c index 4161b674745b..0679d762f08a 100644 --- a/sound/soc/fsl/fsl_micfil.c +++ b/sound/soc/fsl/fsl_micfil.c @@ -78,6 +78,7 @@ struct fsl_micfil_soc_data { bool imx; bool use_edma; bool use_verid; + bool volume_sx; u64 formats; }; =20 @@ -87,6 +88,7 @@ static struct fsl_micfil_soc_data fsl_micfil_imx8mm =3D { .fifo_depth =3D 8, .dataline =3D 0xf, .formats =3D SNDRV_PCM_FMTBIT_S16_LE, + .volume_sx =3D true, }; =20 static struct fsl_micfil_soc_data fsl_micfil_imx8mp =3D { @@ -95,6 +97,7 @@ static struct fsl_micfil_soc_data fsl_micfil_imx8mp =3D { .fifo_depth =3D 32, .dataline =3D 0xf, .formats =3D SNDRV_PCM_FMTBIT_S32_LE, + .volume_sx =3D false, }; =20 static struct fsl_micfil_soc_data fsl_micfil_imx93 =3D { @@ -105,6 +108,7 @@ static struct fsl_micfil_soc_data fsl_micfil_imx93 =3D { .formats =3D SNDRV_PCM_FMTBIT_S32_LE, .use_edma =3D true, .use_verid =3D true, + .volume_sx =3D false, }; =20 static const struct of_device_id fsl_micfil_dt_ids[] =3D { @@ -328,7 +332,26 @@ static int hwvad_detected(struct snd_kcontrol *kcontro= l, return 0; } =20 -static const struct snd_kcontrol_new fsl_micfil_snd_controls[] =3D { +static const struct snd_kcontrol_new fsl_micfil_volume_controls[] =3D { + SOC_SINGLE_TLV("CH0 Volume", REG_MICFIL_OUT_CTRL, + MICFIL_OUTGAIN_CHX_SHIFT(0), 0xF, 0, gain_tlv), + SOC_SINGLE_TLV("CH1 Volume", REG_MICFIL_OUT_CTRL, + MICFIL_OUTGAIN_CHX_SHIFT(1), 0xF, 0, gain_tlv), + SOC_SINGLE_TLV("CH2 Volume", REG_MICFIL_OUT_CTRL, + MICFIL_OUTGAIN_CHX_SHIFT(2), 0xF, 0, gain_tlv), + SOC_SINGLE_TLV("CH3 Volume", REG_MICFIL_OUT_CTRL, + MICFIL_OUTGAIN_CHX_SHIFT(3), 0xF, 0, gain_tlv), + SOC_SINGLE_TLV("CH4 Volume", REG_MICFIL_OUT_CTRL, + MICFIL_OUTGAIN_CHX_SHIFT(4), 0xF, 0, gain_tlv), + SOC_SINGLE_TLV("CH5 Volume", REG_MICFIL_OUT_CTRL, + MICFIL_OUTGAIN_CHX_SHIFT(5), 0xF, 0, gain_tlv), + SOC_SINGLE_TLV("CH6 Volume", REG_MICFIL_OUT_CTRL, + MICFIL_OUTGAIN_CHX_SHIFT(6), 0xF, 0, gain_tlv), + SOC_SINGLE_TLV("CH7 Volume", REG_MICFIL_OUT_CTRL, + MICFIL_OUTGAIN_CHX_SHIFT(7), 0xF, 0, gain_tlv), +}; + +static const struct snd_kcontrol_new fsl_micfil_volume_sx_controls[] =3D { SOC_SINGLE_SX_TLV("CH0 Volume", REG_MICFIL_OUT_CTRL, MICFIL_OUTGAIN_CHX_SHIFT(0), 0x8, 0xF, gain_tlv), SOC_SINGLE_SX_TLV("CH1 Volume", REG_MICFIL_OUT_CTRL, @@ -345,6 +368,9 @@ static const struct snd_kcontrol_new fsl_micfil_snd_con= trols[] =3D { MICFIL_OUTGAIN_CHX_SHIFT(6), 0x8, 0xF, gain_tlv), SOC_SINGLE_SX_TLV("CH7 Volume", REG_MICFIL_OUT_CTRL, MICFIL_OUTGAIN_CHX_SHIFT(7), 0x8, 0xF, gain_tlv), +}; + +static const struct snd_kcontrol_new fsl_micfil_snd_controls[] =3D { SOC_ENUM_EXT("MICFIL Quality Select", fsl_micfil_quality_enum, micfil_quality_get, micfil_quality_set), @@ -844,6 +870,20 @@ static int fsl_micfil_dai_probe(struct snd_soc_dai *cp= u_dai) return 0; } =20 +static int fsl_micfil_component_probe(struct snd_soc_component *component) +{ + struct fsl_micfil *micfil =3D snd_soc_component_get_drvdata(component); + + if (micfil->soc->volume_sx) + snd_soc_add_component_controls(component, fsl_micfil_volume_sx_controls, + ARRAY_SIZE(fsl_micfil_volume_sx_controls)); + else + snd_soc_add_component_controls(component, fsl_micfil_volume_controls, + ARRAY_SIZE(fsl_micfil_volume_controls)); + + return 0; +} + static const struct snd_soc_dai_ops fsl_micfil_dai_ops =3D { .probe =3D fsl_micfil_dai_probe, .startup =3D fsl_micfil_startup, @@ -865,6 +905,7 @@ static struct snd_soc_dai_driver fsl_micfil_dai =3D { =20 static const struct snd_soc_component_driver fsl_micfil_component =3D { .name =3D "fsl-micfil-dai", + .probe =3D fsl_micfil_component_probe, .controls =3D fsl_micfil_snd_controls, .num_controls =3D ARRAY_SIZE(fsl_micfil_snd_controls), .legacy_dai_naming =3D 1, --=20 2.46.2