asoc: codecs: update WSA dapm_ignore_suspend pin names
Update to 5.15 kernel dapm api. Pin name no longer needs prefix as it is added in API. Change-Id: Ibf967dd01a36decdf904eff9d5af2e315aa53f1c Signed-off-by: Kunlei Zhang <quic_kunleiz@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
2a7c4c286e
commit
d007a64c4b
@@ -1414,25 +1414,20 @@ static int wsa883x_codec_probe(struct snd_soc_component *component)
|
||||
wsa883x->global_pa_cnt = 0;
|
||||
|
||||
memset(w_name, 0, sizeof(w_name));
|
||||
strlcpy(w_name, component->name_prefix, sizeof(w_name));
|
||||
strlcat(w_name, " ", sizeof(w_name));
|
||||
strlcat(w_name, wsa883x->dai_driver->playback.stream_name,
|
||||
strlcpy(w_name, wsa883x->dai_driver->playback.stream_name,
|
||||
sizeof(w_name));
|
||||
snd_soc_dapm_ignore_suspend(dapm, w_name);
|
||||
|
||||
memset(w_name, 0, sizeof(w_name));
|
||||
strlcpy(w_name, component->name_prefix, sizeof(w_name));
|
||||
strlcat(w_name, " IN", sizeof(w_name));
|
||||
strlcpy(w_name, "IN", sizeof(w_name));
|
||||
snd_soc_dapm_ignore_suspend(dapm, w_name);
|
||||
|
||||
memset(w_name, 0, sizeof(w_name));
|
||||
strlcpy(w_name, component->name_prefix, sizeof(w_name));
|
||||
strlcat(w_name, " SWR DAC_Port", sizeof(w_name));
|
||||
strlcpy(w_name, "SWR DAC_Port", sizeof(w_name));
|
||||
snd_soc_dapm_ignore_suspend(dapm, w_name);
|
||||
|
||||
memset(w_name, 0, sizeof(w_name));
|
||||
strlcpy(w_name, component->name_prefix, sizeof(w_name));
|
||||
strlcat(w_name, " SPKR", sizeof(w_name));
|
||||
strlcpy(w_name, "SPKR", sizeof(w_name));
|
||||
snd_soc_dapm_ignore_suspend(dapm, w_name);
|
||||
|
||||
snd_soc_dapm_sync(dapm);
|
||||
|
Reference in New Issue
Block a user