ASoC: dwc: Defer bclk_ratio handling to hw_params
authorPhil Elwell <phil@raspberrypi.com>
Wed, 3 Jan 2024 14:43:43 +0000 (14:43 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:25 +0000 (11:35 +0000)
commitfd3ab4d68398c858275c7273baa5bf5e0e6137c7
tree7728ae91189c1055caaf55daa4197625b8f283d6
parent88a326fd77dcafb6bd665f3953b2540d201e0d38
ASoC: dwc: Defer bclk_ratio handling to hw_params

bclk_ratio is only a factor in clock producer mode, and needs to
override the default value of num_channels * sample_size.
Move the bclk_ratio handling into the hw_params method, only latching
the value in set_bclk_ratio, to address both of those matters.

See: https://github.com/raspberrypi/linux/issues/5817

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
sound/soc/dwc/dwc-i2s.c
sound/soc/dwc/local.h