clear-pkgs-linux-iot-lts2018/0334-REVERTME-Fix-no-audio-...

37 lines
1.2 KiB
Diff
Raw Normal View History

From cea00ce1a6770fc66c3c9dc1c03041b9b49da6a3 Mon Sep 17 00:00:00 2001
2018-10-19 12:18:58 +08:00
From: Gustaw Lewandowski <gustaw.lewandowski@intel.com>
Date: Fri, 21 Sep 2018 16:09:53 +0200
Subject: [PATCH 334/550] REVERTME: Fix no audio output after resume from S3
2018-10-19 12:18:58 +08:00
Ignoring returned code from tdf8532_stop_play allows continue
playback after S3.
Tracked-On:
Change-Id: Ied077210ce6508a79b12eedc0ac22ea86d5b643a
Signed-off-by: Gustaw Lewandowski <gustaw.lewandowski@intel.com>
Reviewed-on:
Reviewed-by: Rojewski, Cezary <cezary.rojewski@intel.com>
Tested-by: Rojewski, Cezary <cezary.rojewski@intel.com>
---
sound/soc/codecs/tdf8532.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/tdf8532.c b/sound/soc/codecs/tdf8532.c
index 86b7430f4c88..f306b597b42d 100644
--- a/sound/soc/codecs/tdf8532.c
+++ b/sound/soc/codecs/tdf8532.c
@@ -268,7 +268,9 @@ static int tdf8532_dai_trigger(struct snd_pcm_substream *substream, int cmd,
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
case SNDRV_PCM_TRIGGER_SUSPEND:
case SNDRV_PCM_TRIGGER_STOP:
- ret = tdf8532_stop_play(tdf8532);
+ /* WA on unexpected codec down during S3
+ SNDRV_PCM_TRIGGER_STOP fails so skip set ret */
+ tdf8532_stop_play(tdf8532);
break;
}
--
2.19.1