74f627dc346ce1427967112387479160bd4c79d3
[openwrt/staging/xback.git] /
1 From 3221c46961b4dcc88791f4a80dc8bd503c6cfe00 Mon Sep 17 00:00:00 2001
2 From: Matt Flax <flatmax@flatmax.org>
3 Date: Wed, 8 Mar 2017 21:13:24 +1100
4 Subject: [PATCH 032/454] ASoC: bcm2835_i2s.c: relax the ch2 register setting
5 for 8 channels
6
7 This patch allows ch2 registers to be set for 8 channels of audio.
8 ---
9 sound/soc/bcm/bcm2835-i2s.c | 1 +
10 1 file changed, 1 insertion(+)
11
12 --- a/sound/soc/bcm/bcm2835-i2s.c
13 +++ b/sound/soc/bcm/bcm2835-i2s.c
14 @@ -312,6 +312,7 @@ static int bcm2835_i2s_hw_params(struct
15
16 switch (params_channels(params)) {
17 case 2:
18 + case 8:
19 format = BCM2835_I2S_CH1(format) | BCM2835_I2S_CH2(format);
20 format |= BCM2835_I2S_CH1(BCM2835_I2S_CHPOS(ch1pos));
21 format |= BCM2835_I2S_CH2(BCM2835_I2S_CHPOS(ch2pos));