Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154845
b: refs/heads/master
c: c470331
h: refs/heads/master
i:
  154843: 24004b9
v: v3
  • Loading branch information
Takashi Iwai committed Jul 3, 2009
1 parent 21e23fc commit f8a5154
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 70d321e6380f128096429d6e5b678f94ab0cef5d
refs/heads/master: c470331e69bd54d11a9ea3c27a0e4ad783d02d6b
6 changes: 6 additions & 0 deletions trunk/sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,12 @@ static int azx_pcm_open(struct snd_pcm_substream *substream)
snd_pcm_set_sync(substream);
mutex_unlock(&chip->open_mutex);

if (snd_BUG_ON(!runtime->hw.channels_min || !runtime->hw.channels_max))
return -EINVAL;
if (snd_BUG_ON(!runtime->hw.formats))
return -EINVAL;
if (snd_BUG_ON(!runtime->hw.rates))
return -EINVAL;
return 0;
}

Expand Down

0 comments on commit f8a5154

Please sign in to comment.