]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: spacemit: move hw constraints from hw_params to startup
authorTroy Mitchell <troy.mitchell@linux.spacemit.com>
Wed, 29 Apr 2026 01:38:47 +0000 (09:38 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 29 Apr 2026 02:41:32 +0000 (11:41 +0900)
commit6b4afbaaa342eaa52172e0be5ef8d1fcbf9ff460
tree9fa5eb2c0361d0dcf882fb1b8f76c95c0ad076c4
parenta201aef1a88b675e9eb8487e27d14e2eef3cef80
ASoC: spacemit: move hw constraints from hw_params to startup

Hardware constraints should be applied in the startup callback rather
than hw_params, as hw_params may be called too late for the constraints
to take effect properly.

Move the channel count and format constraints for I2S and DSP_A/DSP_B
modes into a new startup callback. This also tightens the I2S mode
channel constraint from 1-2 to exactly 2, matching the actual hardware
behavior.

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Link: https://patch.msgid.link/20260429-k3-i2s-v1-2-2fe99db11ecb@linux.spacemit.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/spacemit/k1_i2s.c