projects
/
linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
776492a
)
ASoC: bcm2835_i2s.c: relax the ch2 register setting for 8 channels
author
Matt Flax
<flatmax@flatmax.org>
Wed, 8 Mar 2017 10:13:24 +0000
(21:13 +1100)
committer
Raspbian kernel package updater
<root@raspbian.org>
Sun, 8 Oct 2017 01:00:26 +0000
(
01:00
+0000)
This patch allows ch2 registers to be set for 8 channels of audio.
sound/soc/bcm/bcm2835-i2s.c
patch
|
blob
|
history
diff --git
a/sound/soc/bcm/bcm2835-i2s.c
b/sound/soc/bcm/bcm2835-i2s.c
index 6ba20498202ed36906b52096893a88867a79269f..c8dd065aea8414b47aa2ea4fc04168b5e29002ad 100644
(file)
--- a/
sound/soc/bcm/bcm2835-i2s.c
+++ b/
sound/soc/bcm/bcm2835-i2s.c
@@
-239,6
+239,7
@@
static int bcm2835_i2s_hw_params(struct snd_pcm_substream *substream,
unsigned int ch1pos, ch2pos, mode, format;
uint32_t csreg;
+
/*
* If a stream is already enabled,
* the registers are already set properly.
@@
-312,6
+313,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));