1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00
openmptcprouter/root/target/linux/brcm2708/patches-4.14/0032-ASoC-bcm2835_i2s.c-relax-the-ch2-register-setting-fo.patch
2018-03-23 21:58:08 +01:00

26 lines
896 B
Diff

From c955bac6515dbc9a03a7a8599a41e8efe8559f06 Mon Sep 17 00:00:00 2001
From: Matt Flax <flatmax@flatmax.org>
Date: Wed, 8 Mar 2017 21:13:24 +1100
Subject: [PATCH 032/277] ASoC: bcm2835_i2s.c: relax the ch2 register setting
for 8 channels
This patch allows ch2 registers to be set for 8 channels of audio.
---
sound/soc/bcm/bcm2835-i2s.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/bcm/bcm2835-i2s.c b/sound/soc/bcm/bcm2835-i2s.c
index 6ba20498202e..56df7d8a43d0 100644
--- a/sound/soc/bcm/bcm2835-i2s.c
+++ b/sound/soc/bcm/bcm2835-i2s.c
@@ -312,6 +312,7 @@ static int bcm2835_i2s_hw_params(struct snd_pcm_substream *substream,
switch (params_channels(params)) {
case 2:
+ case 8:
format = BCM2835_I2S_CH1(format) | BCM2835_I2S_CH2(format);
format |= BCM2835_I2S_CH1(BCM2835_I2S_CHPOS(ch1pos));
format |= BCM2835_I2S_CH2(BCM2835_I2S_CHPOS(ch2pos));
--
2.16.1