Commit d76c3124 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Takashi Iwai <tiwai@suse.de>

Intel8x0 driver
- check the return value of snd_ac97_pcm_open() in playback open callback.
parent efc2f99e
...@@ -1107,6 +1107,9 @@ static int snd_intel8x0_playback_open(snd_pcm_substream_t * substream) ...@@ -1107,6 +1107,9 @@ static int snd_intel8x0_playback_open(snd_pcm_substream_t * substream)
int err; int err;
err = snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMOUT]); err = snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMOUT]);
if (err < 0)
return err;
if (chip->multi6) { if (chip->multi6) {
runtime->hw.channels_max = 6; runtime->hw.channels_max = 6;
snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, &hw_constraints_channels6); snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, &hw_constraints_channels6);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment