Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120430
b: refs/heads/master
c: bfc5c26
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Nov 4, 2008
1 parent b4609e1 commit 60f9e99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b91f080f517cf9dd52023c11127a0ca33190e31a
refs/heads/master: bfc5c26fb692fa7a196108c3b23d9c747d105c00
5 changes: 5 additions & 0 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2485,6 +2485,11 @@ int snd_hda_build_pcms(struct hda_bus *bus)
struct hda_pcm *cpcm = &codec->pcm_info[pcm];
int type = cpcm->pcm_type;
int dev;

if (!cpcm->stream[0].substreams &&
!cpcm->stream[1].substreams)
continue; /* no substreams assigned */

switch (type) {
case HDA_PCM_TYPE_AUDIO:
if (num_devs[type] >= ARRAY_SIZE(audio_idx)) {
Expand Down

0 comments on commit 60f9e99

Please sign in to comment.