diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/usb/usbaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index 2b24496ddec7..f853b627cf43 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c | |||
@@ -1783,7 +1783,7 @@ static int check_hw_params_convention(struct snd_usb_substream *subs) | |||
1783 | if (rates[f->format] && rates[f->format] != f->rates) | 1783 | if (rates[f->format] && rates[f->format] != f->rates) |
1784 | goto __out; | 1784 | goto __out; |
1785 | } | 1785 | } |
1786 | channels[f->format] |= (1 << f->channels); | 1786 | channels[f->format] |= 1 << (f->channels - 1); |
1787 | rates[f->format] |= f->rates; | 1787 | rates[f->format] |= f->rates; |
1788 | /* needs knot? */ | 1788 | /* needs knot? */ |
1789 | if (f->rates & SNDRV_PCM_RATE_KNOT) | 1789 | if (f->rates & SNDRV_PCM_RATE_KNOT) |
@@ -1810,7 +1810,7 @@ static int check_hw_params_convention(struct snd_usb_substream *subs) | |||
1810 | continue; | 1810 | continue; |
1811 | for (i = 0; i < 32; i++) { | 1811 | for (i = 0; i < 32; i++) { |
1812 | if (f->rates & (1 << i)) | 1812 | if (f->rates & (1 << i)) |
1813 | channels[i] |= (1 << f->channels); | 1813 | channels[i] |= 1 << (f->channels - 1); |
1814 | } | 1814 | } |
1815 | } | 1815 | } |
1816 | cmaster = 0; | 1816 | cmaster = 0; |