ASoC: meson: axg-spdifin: use max width for rate detection
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 23 Feb 2024 17:51:10 +0000 (18:51 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 26 Feb 2024 14:03:16 +0000 (14:03 +0000)
commita2417b6c0f9c3cc914c88face9abd6e9b9d76c00
treedeedb0898db60c6750368b47ff9f0706f101ab86
parent48bbec092e4cf2fe1d3f81a889ec176e83aee695
ASoC: meson: axg-spdifin: use max width for rate detection

Use maximum width between 2 edges to setup spdifin thresholds
and detect the input sample rate. This comes from Amlogic SDK and
seems to be marginally more reliable than minimum width.

This is done to align with a future eARC support.
No issue was reported with minimum width so far, this is considered
to be an update so no Fixes tag is set.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://msgid.link/r/20240223175116.2005407-5-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/axg-spdifin.c