OSDN Git Service

ASoC: dwc: don't assign addr_width for dt configs
authorMaxim Kochetkov <fido_max@inbox.ru>
Tue, 13 Jun 2023 19:15:51 +0000 (22:15 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jun 2023 22:29:25 +0000 (23:29 +0100)
commit6f80197f40515853814d0f22e5209d53f899ab91
tree5014e4ca17347f853bee144c956b1a7159a455f5
parenta42e988b6265dcd489feb1adab8551b40c988f43
ASoC: dwc: don't assign addr_width for dt configs

For proper DMA operation addr_width must corresponds with audio format
(S16, S24, S32, etc). Proper bus width calculations is performed by
snd_hwparams_to_dma_slave_config(). So drop wrong addr_width asignment
for dt configs and let snd_hwparams_to_dma_slave_config() do the job.

Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
Link: https://lore.kernel.org/r/20230613191552.724748-1-fido_max@inbox.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/dwc/dwc-i2s.c