]> git.hungrycats.org Git - linux/commitdiff
ALSA CVS update - Takashi Iwai <tiwai@suse.de>
authorJaroslav Kysela <perex@suse.cz>
Thu, 5 Feb 2004 16:58:41 +0000 (17:58 +0100)
committerJaroslav Kysela <perex@suse.cz>
Thu, 5 Feb 2004 16:58:41 +0000 (17:58 +0100)
Intel8x0 driver
- check the return value of snd_ac97_pcm_open() in playback open callback.

sound/pci/intel8x0.c

index a604e07eacfdaae1dbc20355e4da81a7fa016f5f..5f2548b582cce4e389474105401dc998a93ec6a3 100644 (file)
@@ -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);