diff options
author | Muralidhar Reddy <muralidhar.reddy@intel.com> | 2022-07-25 22:49:05 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-07-26 00:37:08 +0300 |
commit | fae93e3b952aeb0bad1a3d80ed9592cfc24aa8c6 (patch) | |
tree | ac2dd2a078690bbb64e955d079fa6330702b37d3 /sound/soc/intel/boards/sof_es8336.c | |
parent | 86b1959a2ccb1cd3c91f99a6ad06dcd0940a2058 (diff) | |
download | linux-fae93e3b952aeb0bad1a3d80ed9592cfc24aa8c6.tar.xz |
ASoC: Intel: sof_es8336: reset the num_links during probe
The number of dai_links for sound cards needs to be reset during
probe. This is done in all machine drivers except this one.
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Muralidhar Reddy <muralidhar.reddy@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220725194909.145418-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/sof_es8336.c')
-rw-r--r-- | sound/soc/intel/boards/sof_es8336.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/intel/boards/sof_es8336.c b/sound/soc/intel/boards/sof_es8336.c index f6a003d2da29..b616d22bc0fa 100644 --- a/sound/soc/intel/boards/sof_es8336.c +++ b/sound/soc/intel/boards/sof_es8336.c @@ -634,7 +634,8 @@ static int sof_es8336_probe(struct platform_device *pdev) if (quirk & SOF_ES8336_ENABLE_DMIC) dmic_be_num = 2; - sof_es8336_card.num_links += dmic_be_num + hdmi_num; + /* compute number of dai links */ + sof_es8336_card.num_links = 1 + dmic_be_num + hdmi_num; if (quirk & SOF_SSP_HDMI_CAPTURE_PRESENT) sof_es8336_card.num_links += (quirk & SOF_NO_OF_HDMI_CAPTURE_SSP_MASK) >> |