diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-01-20 12:21:23 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-01-20 12:21:23 -0500 |
commit | 41b5b01afb71226653282951965d5efa9d7b843d (patch) | |
tree | db96b8e26cbc9532ed37e68e48ef9ce1d5457886 /sound/pci/hda/hda_codec.c | |
parent | caa10b6e808a4d65eb0306f0006308244f2b8d79 (diff) |
ALSA: hda - Don't break the PCM creation loop
Don't break the loop in snd_hda_codec_build_pcms() even if the item
has no substreams.
It's possible that it's an empty item and the next item containing
the valid substreams (e.g. realtek codecs may create the analog
and alt-analog but no digitl streams).
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 2d6f72ca0140..0129e95672ae 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -2613,7 +2613,7 @@ int snd_hda_codec_build_pcms(struct hda_codec *codec) | |||
2613 | int dev; | 2613 | int dev; |
2614 | 2614 | ||
2615 | if (!cpcm->stream[0].substreams && !cpcm->stream[1].substreams) | 2615 | if (!cpcm->stream[0].substreams && !cpcm->stream[1].substreams) |
2616 | return 0; /* no substreams assigned */ | 2616 | continue; /* no substreams assigned */ |
2617 | 2617 | ||
2618 | if (!cpcm->pcm) { | 2618 | if (!cpcm->pcm) { |
2619 | dev = get_empty_pcm_device(codec->bus, cpcm->pcm_type); | 2619 | dev = get_empty_pcm_device(codec->bus, cpcm->pcm_type); |