[PATCH 3/3] ASoC: mt6358: Remove undefined HPx Mux enumeration values

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Mon Feb 27 00:55:09 PST 2023


Il 26/02/23 13:47, Mark Brown ha scritto:
> The HPx Mux enumerations define values 5, 6 and 7 but describe them as
> "undefined" and map them to the value 0 on writing. Given the descriptions
> and behaviour it seems that these values are invalid and should not be
> present in the register, the current behaviour is detected as problematic
> by mixer-test:
> 
> # # HPL Mux.0 expected 5 but read 0, is_volatile 0
> # # HPL Mux.0 expected 6 but read 0, is_volatile 0
> # # HPL Mux.0 expected 7 but read 0, is_volatile 0
> 
> Remove the values from the enumeration, this will prevent userspace setting
> them.
> 
> Signed-off-by: Mark Brown <broonie at kernel.org>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>





More information about the linux-arm-kernel mailing list