Skip to content

Commit

Permalink
ASoC: bcm2835_i2s.c: relax the ch2 register setting for 8 channels
Browse files Browse the repository at this point in the history
This patch allows ch2 registers to be set for 8 channels of audio.
  • Loading branch information
flatmax authored and popcornmix committed Jan 7, 2018
1 parent a326e4d commit fdd1e16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/bcm/bcm2835-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit fdd1e16

Please sign in to comment.