Skip to content

Commit c29e526

Browse files
krzkbroonie
authored andcommitted
ASoC: codecs: wsa-macro: handle component name prefix
When comparing widget names in wsa_macro_spk_boost_event(), consider also the component's name prefix. Otherwise the WSA codec won't have proper mixer setup resulting in no sound playback through speakers. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20231003155710.821315-3-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 76aca10 commit c29e526

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/codecs/lpass-wsa-macro.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,12 +1675,12 @@ static int wsa_macro_spk_boost_event(struct snd_soc_dapm_widget *w,
16751675
u16 boost_path_ctl, boost_path_cfg1;
16761676
u16 reg, reg_mix;
16771677

1678-
if (!strcmp(w->name, "WSA_RX INT0 CHAIN")) {
1678+
if (!snd_soc_dapm_widget_name_cmp(w, "WSA_RX INT0 CHAIN")) {
16791679
boost_path_ctl = CDC_WSA_BOOST0_BOOST_PATH_CTL;
16801680
boost_path_cfg1 = CDC_WSA_RX0_RX_PATH_CFG1;
16811681
reg = CDC_WSA_RX0_RX_PATH_CTL;
16821682
reg_mix = CDC_WSA_RX0_RX_PATH_MIX_CTL;
1683-
} else if (!strcmp(w->name, "WSA_RX INT1 CHAIN")) {
1683+
} else if (!snd_soc_dapm_widget_name_cmp(w, "WSA_RX INT1 CHAIN")) {
16841684
boost_path_ctl = CDC_WSA_BOOST1_BOOST_PATH_CTL;
16851685
boost_path_cfg1 = CDC_WSA_RX1_RX_PATH_CFG1;
16861686
reg = CDC_WSA_RX1_RX_PATH_CTL;

0 commit comments

Comments
 (0)