brcm2708: update against latest rpi-3.10.y branch
[openwrt.git] / target / linux / brcm2708 / patches-3.10 / 0035-Enable-multiple-ALSA-channels.patch
1 From 10a2ded6cbf58da71121f0c7a35462f52f49dfae Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Wed, 17 Apr 2013 12:16:36 +0100
4 Subject: [PATCH 035/174] Enable multiple ALSA channels
5
6 ---
7  arch/arm/mach-bcm2708/bcm2708.c | 54 ++++++++++++++++++++++++++++++++++++-----
8  1 file changed, 48 insertions(+), 6 deletions(-)
9
10 --- a/arch/arm/mach-bcm2708/bcm2708.c
11 +++ b/arch/arm/mach-bcm2708/bcm2708.c
12 @@ -471,12 +471,54 @@ struct platform_device bcm2708_powerman_
13  
14  
15  static struct platform_device bcm2708_alsa_devices[] = {
16 -       [0] =   {
17 -               .name = "bcm2835_AUD0",
18 -               .id = 0,                /* first audio device */
19 -               .resource = 0,
20 -               .num_resources = 0,
21 -               },
22 +       [0] = {
23 +              .name = "bcm2835_AUD0",
24 +              .id = 0,         /* first audio device */
25 +              .resource = 0,
26 +              .num_resources = 0,
27 +              },
28 +       [1] = {
29 +              .name = "bcm2835_AUD1",
30 +              .id = 1,         /* second audio device */
31 +              .resource = 0,
32 +              .num_resources = 0,
33 +              },
34 +       [2] = {
35 +              .name = "bcm2835_AUD2",
36 +              .id = 2,         /* third audio device */
37 +              .resource = 0,
38 +              .num_resources = 0,
39 +              },
40 +       [3] = {
41 +              .name = "bcm2835_AUD3",
42 +              .id = 3,         /* forth audio device */
43 +              .resource = 0,
44 +              .num_resources = 0,
45 +              },
46 +       [4] = {
47 +              .name = "bcm2835_AUD4",
48 +              .id = 4,         /* fifth audio device */
49 +              .resource = 0,
50 +              .num_resources = 0,
51 +              },
52 +       [5] = {
53 +              .name = "bcm2835_AUD5",
54 +              .id = 5,         /* sixth audio device */
55 +              .resource = 0,
56 +              .num_resources = 0,
57 +              },
58 +       [6] = {
59 +              .name = "bcm2835_AUD6",
60 +              .id = 6,         /* seventh audio device */
61 +              .resource = 0,
62 +              .num_resources = 0,
63 +              },
64 +       [7] = {
65 +              .name = "bcm2835_AUD7",
66 +              .id = 7,         /* eighth audio device */
67 +              .resource = 0,
68 +              .num_resources = 0,
69 +              },
70  };
71  
72  static struct resource bcm2708_spi_resources[] = {