Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253768
b: refs/heads/master
c: 0ec5258
h: refs/heads/master
v: v3
  • Loading branch information
Torsten Schenk authored and Takashi Iwai committed Jun 16, 2011
1 parent 352ffb3 commit b05fa16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: e72888e91cc902ccdc089f237b6eed7587e2b4df
refs/heads/master: 0ec5258d68c626922d92e2f0e4e5c689e5360a5d
4 changes: 2 additions & 2 deletions trunk/sound/usb/6fire/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,12 @@ static int usb6fire_pcm_open(struct snd_pcm_substream *alsa_sub)
alsa_rt->hw = pcm_hw;

if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) {
if (rt->rate >= 0)
if (rt->rate < ARRAY_SIZE(rates))
alsa_rt->hw.rates = rates_alsaid[rt->rate];
alsa_rt->hw.channels_max = OUT_N_CHANNELS;
sub = &rt->playback;
} else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) {
if (rt->rate >= 0)
if (rt->rate < ARRAY_SIZE(rates))
alsa_rt->hw.rates = rates_alsaid[rt->rate];
alsa_rt->hw.channels_max = IN_N_CHANNELS;
sub = &rt->capture;
Expand Down

0 comments on commit b05fa16

Please sign in to comment.