brcm2708: update linux 4.4 patches to latest version
[oweals/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0126-bcm2835-extend-allowed-range-of-channels-and-sampler.patch
1 From 9901970aec244478351526d0ec64bd71998a4898 Mon Sep 17 00:00:00 2001
2 From: wm4 <wm4@nowhere>
3 Date: Wed, 13 Jan 2016 19:41:45 +0100
4 Subject: [PATCH] bcm2835: extend allowed range of channels and samplerates
5
6 Allow everything the videocore accepts.
7 ---
8  sound/arm/bcm2835-pcm.c | 8 ++++----
9  1 file changed, 4 insertions(+), 4 deletions(-)
10
11 --- a/sound/arm/bcm2835-pcm.c
12 +++ b/sound/arm/bcm2835-pcm.c
13 @@ -26,9 +26,9 @@ static struct snd_pcm_hardware snd_bcm28
14         .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE,
15         .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
16         .rate_min = 8000,
17 -       .rate_max = 48000,
18 +       .rate_max = 192000,
19         .channels_min = 1,
20 -       .channels_max = 2,
21 +       .channels_max = 8,
22         .buffer_bytes_max = 128 * 1024,
23         .period_bytes_min =   1 * 1024,
24         .period_bytes_max = 128 * 1024,
25 @@ -43,9 +43,9 @@ static struct snd_pcm_hardware snd_bcm28
26         .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_44100 |
27                 SNDRV_PCM_RATE_48000,
28         .rate_min = 44100,
29 -       .rate_max = 48000,
30 +       .rate_max = 192000,
31         .channels_min = 2,
32 -       .channels_max = 2,
33 +       .channels_max = 8,
34         .buffer_bytes_max = 128 * 1024,
35         .period_bytes_min =   1 * 1024,
36         .period_bytes_max = 128 * 1024,