]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ASoC: bcm2835_i2s.c: relax the ch2 register setting for 8 channels
authorMatt Flax <flatmax@flatmax.org>
Wed, 8 Mar 2017 10:13:24 +0000 (21:13 +1100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 9 Mar 2018 15:20:53 +0000 (12:20 -0300)
This patch allows ch2 registers to be set for 8 channels of audio.

sound/soc/bcm/bcm2835-i2s.c

index 6ba20498202ed36906b52096893a88867a79269f..56df7d8a43d0aac055a91b0d24aca8e1b4e308e4 100644 (file)
@@ -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));