Skip to content

Commit bc682f4

Browse files
claudiubezneaAndrei Simion
authored andcommitted
ASoC: dapm: check properly the return value
snd_soc_dai_digital_mute() may return -ENOTSUPP but not -EOPNOTSUPP. Fix the check. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> (cherry picked from linux-6.1-trunk/at91/sound) Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
1 parent 149dbae commit bc682f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/soc-dapm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4085,7 +4085,7 @@ static int snd_soc_dai_link_loopback_event(struct snd_soc_dapm_widget *w,
40854085

40864086
ret = snd_soc_dai_digital_mute(sink, 0,
40874087
SNDRV_PCM_STREAM_PLAYBACK);
4088-
if (ret != 0 && ret != -EOPNOTSUPP)
4088+
if (ret != 0 && ret != -ENOTSUPP)
40894089
dev_warn(sink->dev,
40904090
"ASoC: Failed to unmute: %d\n", ret);
40914091
ret = 0;
@@ -4098,7 +4098,7 @@ static int snd_soc_dai_link_loopback_event(struct snd_soc_dapm_widget *w,
40984098

40994099
ret = snd_soc_dai_digital_mute(sink, 1,
41004100
SNDRV_PCM_STREAM_PLAYBACK);
4101-
if (ret != 0 && ret != -EOPNOTSUPP)
4101+
if (ret != 0 && ret != -ENOTSUPP)
41024102
dev_warn(sink->dev,
41034103
"ASoC: Failed to mute: %d\n", ret);
41044104
ret = 0;

0 commit comments

Comments
 (0)