]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: x86: Remove superfluous snd_pcm_suspend*() calls
authorTakashi Iwai <tiwai@suse.de>
Fri, 11 Jan 2019 17:03:39 +0000 (18:03 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Jan 2019 16:47:39 +0000 (17:47 +0100)
The call of snd_pcm_suspend_all() & co became superfluous since we
call it in the PCM PM ops.  Let's remove them.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c

index 00c92eb854ce7b65daedc7c3fa98f69f9b891d86..16ca91f57e7f460b1ad412f2ce7767d4c3e93166 100644 (file)
@@ -1651,18 +1651,6 @@ static int had_create_jack(struct snd_intelhad *ctx,
 static int __maybe_unused hdmi_lpe_audio_suspend(struct device *dev)
 {
        struct snd_intelhad_card *card_ctx = dev_get_drvdata(dev);
-       int port;
-
-       for_each_port(card_ctx, port) {
-               struct snd_intelhad *ctx = &card_ctx->pcm_ctx[port];
-               struct snd_pcm_substream *substream;
-
-               substream = had_substream_get(ctx);
-               if (substream) {
-                       snd_pcm_suspend(substream);
-                       had_substream_put(ctx);
-               }
-       }
 
        snd_power_change_state(card_ctx->card, SNDRV_CTL_POWER_D3hot);