diff options
| author | Valerio Setti <vsetti@baylibre.com> | 2026-07-10 23:09:51 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-07-27 14:39:24 +0100 |
| commit | e82159384a5052212e7d2f2aa1de39827f1bed3c (patch) | |
| tree | e975a524b21ad9901b54be688f1cfb31eba33d8f /include | |
| parent | df3c987ab3d70146e2c657bc50efe8737aa4da28 (diff) | |
| download | linux-e82159384a5052212e7d2f2aa1de39827f1bed3c.tar.gz linux-e82159384a5052212e7d2f2aa1de39827f1bed3c.zip | |
ASoC: meson: aiu-encoder-i2s: use the core symmetric_rate handling
The driver manually implement the interface-wide rate symmetry enforcement
in hw_params(), which suffers from the same problem addressed in the
previous patch: the restriction is not visible in the hw parameter
constraints, so a stream with a mismatching rate only finds out via
-EINVAL late in the stream setup.
The ASoC core already provides this feature through the DAI's
'symmetric_rate' flag: when another stream of the DAI is active,
soc_pcm_apply_symmetry() constrains the rate at open time so the
restriction shows up during parameter refinement, and
soc_pcm_params_symmetry() still rejects a mismatch at hw_params()
time as a backstop.
Set 'symmetric_rate' on the I2S encoder DAI and drop the open-coded
check along with the now unused 'rate' member of struct gx_iface.
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Link: https://patch.msgid.link/20260710-aiu-improve-quirk-check-v1-3-2fdd1b6f8896@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
