]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 24 Dec 2021 02:10:32 +0000 (10:10 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 24 Dec 2021 14:06:48 +0000 (14:06 +0000)
commitfe8edacb26f1aec0d16d0de20032a3104edee49f
tree22e6c5605c37427fadf3cc8e653bd0554a40c180
parent3916a4f4d00d992fd44be139ae73838f0fa63b25
ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio

Overloading the tx_mask with a linear value is asking for trouble and
only works because the codec_dai hw_params() is called before the
cpu_dai hw_params().

Move to the more generic set_stream() API to pass the hdac_stream
information.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20211224021034.26635-6-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hda.c
sound/soc/intel/skylake/skl-pcm.c
sound/soc/sof/intel/hda-dai.c