linux/sound
Richard Fitzgerald c34db0d6b8 ASoC: soc-pcm: Don't zero TDM masks in __soc_pcm_open()
[ Upstream commit 39bd801d69 ]

The DAI tx_mask and rx_mask are set by snd_soc_dai_set_tdm_slot()
and used by later code that depends on the TDM settings. So
__soc_pcm_open() should not be obliterating those mask values.

The code in __soc_pcm_hw_params() uses these masks to calculate the
active channels so that only the AIF_IN/AIF_OUT widgets for the
active TDM slots are enabled. The zeroing of the masks in
__soc_pcm_open() disables this functionality so all AIF widgets
were enabled even for channels that are not assigned to a TDM slot.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 2e5894d737 ("ASoC: pcm: Add support for DAI multicodec")
Link: https://lore.kernel.org/r/20221104132213.121847-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-02 17:39:59 +01:00
..
ac97
aoa ALSA: aoa: Fix I2S device accounting 2022-11-03 23:57:53 +09:00
arm
atmel
core ALSA: dmaengine: increment buffer pointer atomically 2022-10-26 13:25:27 +02:00
drivers ALSA: aloop: Fix random zeros in capture data when using jiffies timer 2022-09-15 11:32:03 +02:00
firewire
hda ALSA: hda: fix potential memleak in 'add_widget_node' 2022-11-16 09:57:15 +01:00
i2c
isa ALSA: wavefront: Proper check of get_user() error 2022-05-25 09:17:55 +02:00
mips
oss
parisc
pci ALSA: hda/realtek: Fix the speaker output on Samsung Galaxy Book Pro 360 2022-11-25 17:45:49 +01:00
pcmcia
ppc
sh
soc ASoC: soc-pcm: Don't zero TDM masks in __soc_pcm_open() 2022-12-02 17:39:59 +01:00
sparc
spi
synth ALSA: Use del_timer_sync() before freeing timer 2022-11-03 23:57:48 +09:00
usb ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open() 2022-11-25 17:45:49 +01:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c