Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133095
b: refs/heads/master
c: 82ad39f
h: refs/heads/master
i:
  133093: c9dec8d
  133091: 6b094b4
  133087: cc8beda
v: v3
  • Loading branch information
Takashi Iwai committed Mar 3, 2009
1 parent 93397a3 commit 93fc553
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d02b1f3910f12cfe377a31afebcbbde4f5664b74
refs/heads/master: 82ad39f9391fca1d3177bd9f6a5264eff5b5346a
10 changes: 4 additions & 6 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2776,13 +2776,10 @@ static int get_empty_pcm_device(struct hda_bus *bus, int type)
for (i = 0; i < ARRAY_SIZE(audio_idx); i++) {
dev = audio_idx[i];
if (!test_bit(dev, bus->pcm_dev_bits))
break;
}
if (i >= ARRAY_SIZE(audio_idx)) {
snd_printk(KERN_WARNING "Too many audio devices\n");
return -EAGAIN;
goto ok;
}
break;
snd_printk(KERN_WARNING "Too many audio devices\n");
return -EAGAIN;
case HDA_PCM_TYPE_SPDIF:
case HDA_PCM_TYPE_HDMI:
case HDA_PCM_TYPE_MODEM:
Expand All @@ -2797,6 +2794,7 @@ static int get_empty_pcm_device(struct hda_bus *bus, int type)
snd_printk(KERN_WARNING "Invalid PCM type %d\n", type);
return -EINVAL;
}
ok:
set_bit(dev, bus->pcm_dev_bits);
return dev;
}
Expand Down

0 comments on commit 93fc553

Please sign in to comment.