]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: Intel: cht_bsw_nau8824: Move snd_soc_dai_set_tdm_slot call to cht_codec_fixup
authorHans de Goede <hdegoede@redhat.com>
Thu, 7 Jan 2021 11:53:24 +0000 (12:53 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 12 Jan 2021 14:11:59 +0000 (14:11 +0000)
commit780b1a02c1795b58f217aabfd0688d616408bb89
tree730db4d558d233fb7d8fa099e4450b768e7aec0c
parent1675cdd3d7e2dc095eb380427baac93492032f47
ASoC: Intel: cht_bsw_nau8824: Move snd_soc_dai_set_tdm_slot call to cht_codec_fixup

Move the snd_soc_dai_set_tdm_slot() call from cht_codec_init() to
cht_codec_fixup(). There are 2 reasons for doing this:

1. This aligns the cht_bsw_nau8824 with all the other BYT/CHT machine
drivers which also do this from their codec_fixup function.

2. When using the SOF driver, things like the TDM info is set from the
topology file. Moving the call to the codec_fixup function, which gets
skipped when using the SOF driver avoids the call interfering with the
settings when using the SOF driver.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210107115324.11602-1-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_nau8824.c