]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: Intel: maxim-common: rewrite max_98373_hw_params function
authorBrent Lu <brent.lu@intel.com>
Mon, 27 May 2024 19:35:50 +0000 (14:35 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 29 May 2024 10:10:57 +0000 (11:10 +0100)
commit459d71f14771211ee19d10a97675f4f08871f58a
tree331c5c36de97b2e3174cf97871c82463541619bc
parent97a9e9915cbb43d0feedbe2c9cf117f3dabf1286
ASoC: Intel: maxim-common: rewrite max_98373_hw_params function

Rewrite max_98373_hw_params() function to get tdm slot number from
topology in runtime because earlier platforms use 4-slot setting
instead of 8. Also check if the interface is configured in TDM mode
before calling snd_soc_dai_set_tdm_slot() function.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Brent Lu <brent.lu@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240527193552.165567-17-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_maxim_common.c