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 pelwell committed Mar 8, 2017
1 parent 8e23b2a commit 8911a63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/bcm/bcm2835-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 8911a63

Please sign in to comment.