brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0310-Revert-bcm2835-add-fallback-channel-layouts-if-chann.patch
1 From f8473a921ad7208ca5b4218571f3ffd267b18cff Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Fri, 29 Apr 2016 17:27:35 +0100
4 Subject: [PATCH 310/423] Revert "bcm2835: add fallback channel layouts if
5 channel map API is not used"
6
7 This reverts commit ceacfff9f86f89826dbc8a6df667f485894327d1.
8 ---
9 sound/arm/bcm2835-vchiq.c | 11 +----------
10 1 file changed, 1 insertion(+), 10 deletions(-)
11
12 --- a/sound/arm/bcm2835-vchiq.c
13 +++ b/sound/arm/bcm2835-vchiq.c
14 @@ -598,16 +598,7 @@ int bcm2835_audio_set_params(bcm2835_als
15 if (alsa_stream->chip->cea_chmap >= 0) {
16 chmap_value = (unsigned)alsa_stream->chip->cea_chmap << 24;
17 } else {
18 - /* fallback layouts for applications which do not use chmap API */
19 - chmap_value = 0x00;
20 - switch (channels) {
21 - case 3: chmap_value = 0x01; break;
22 - case 4: chmap_value = 0x03; break;
23 - case 5: chmap_value = 0x07; break;
24 - case 6: chmap_value = 0x0b; break;
25 - case 7: chmap_value = 0x0f; break;
26 - case 8: chmap_value = 0x13; break;
27 - }
28 + chmap_value = 0; /* force stereo */
29 for (i = 0; i < 8; i++)
30 alsa_stream->chip->map_channels[i] = i;
31 }