summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>2026-04-03 09:34:25 +0300
committerMark Brown <broonie@kernel.org>2026-04-03 15:36:13 +0300
commit0178e64123129f56fc153b9d53121318fd71bdfc (patch)
treed7028a9339e5a2e58b2289a51920425585ac3022
parentd733fb463834cf97a0c667681e236fea0e833a05 (diff)
downloadlinux-0178e64123129f56fc153b9d53121318fd71bdfc.tar.xz
ASoC: amd: acp-sdw-legacy: remove unnecessary condition check
Currently there is no mechanism to read dmic_num in mach_params structure. In this scenario mach_params->dmic_num check always returns 0. Remove unnecessary condition check for mach_params->dmic_num. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://patch.msgid.link/20260403063452.159800-1-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/amd/acp/acp-sdw-legacy-mach.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/amd/acp/acp-sdw-legacy-mach.c b/sound/soc/amd/acp/acp-sdw-legacy-mach.c
index 05484c72f9a8..24e99d8d36ab 100644
--- a/sound/soc/amd/acp/acp-sdw-legacy-mach.c
+++ b/sound/soc/amd/acp/acp-sdw-legacy-mach.c
@@ -378,10 +378,8 @@ static int create_dmic_dailinks(struct snd_soc_card *card,
static int soc_card_dai_links_create(struct snd_soc_card *card)
{
struct device *dev = card->dev;
- struct snd_soc_acpi_mach *mach = dev_get_platdata(card->dev);
int sdw_be_num = 0, dmic_num = 0;
struct asoc_sdw_mc_private *ctx = snd_soc_card_get_drvdata(card);
- struct snd_soc_acpi_mach_params *mach_params = &mach->mach_params;
struct snd_soc_aux_dev *soc_aux;
struct snd_soc_codec_conf *codec_conf;
struct snd_soc_dai_link *dai_links;
@@ -424,7 +422,7 @@ static int soc_card_dai_links_create(struct snd_soc_card *card)
sdw_be_num = ret;
/* enable dmic */
- if (soc_sdw_quirk & ASOC_SDW_ACP_DMIC || mach_params->dmic_num)
+ if (soc_sdw_quirk & ASOC_SDW_ACP_DMIC)
dmic_num = 1;
dev_dbg(dev, "sdw %d, dmic %d", sdw_be_num, dmic_num);