ASoC: codecs: wsa883x: use existing define instead of raw value
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 7 Jun 2023 17:13:26 +0000 (19:13 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 7 Jun 2023 17:24:05 +0000 (18:24 +0100)
Use existing define for WSA883X_GLOBAL_PA_ENABLE instead of hard-coded
value, just like in other places in this driver.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230607171326.179527-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wsa883x.c

index c609cb63dae6dbfd3c6c5f8282a6f7b02bf480ee..5c1cfceb29568d6f2a3462c7e6134f0f9adb98e3 100644 (file)
@@ -1334,7 +1334,8 @@ static int wsa883x_digital_mute(struct snd_soc_dai *dai, int mute, int stream)
                                              WSA883X_DRE_GAIN_EN_MASK,
                                              WSA883X_DRE_GAIN_FROM_CSR);
                snd_soc_component_write_field(component, WSA883X_PA_FSM_CTL,
-                                             WSA883X_GLOBAL_PA_EN_MASK, 1);
+                                             WSA883X_GLOBAL_PA_EN_MASK,
+                                             WSA883X_GLOBAL_PA_ENABLE);
 
        }