From d76c3124495822e0928ecf8b59f46fac28500e47 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 5 Feb 2004 17:58:41 +0100 Subject: [PATCH] ALSA CVS update - Takashi Iwai Intel8x0 driver - check the return value of snd_ac97_pcm_open() in playback open callback. --- sound/pci/intel8x0.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index a604e07eacfda..5f2548b582cce 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c @@ -1107,6 +1107,9 @@ static int snd_intel8x0_playback_open(snd_pcm_substream_t * substream) int err; err = snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMOUT]); + if (err < 0) + return err; + if (chip->multi6) { runtime->hw.channels_max = 6; snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, &hw_constraints_channels6); -- 2.53.0