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