mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
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>
This commit is contained in:
parent
d733fb4638
commit
0178e64123
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user