bcm2835-pcm.c: Support multichannel audio
authorpopcornmix <popcornmix@gmail.com>
Tue, 30 Apr 2019 18:15:30 +0000 (19:15 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:15 +0000 (16:04 +0000)
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c

index f2ef1d641e70c627802400c14d8ed42ef29b9353..5e9a6e28c4c6c42e73fe21cb810a2a1fddd0f696 100644 (file)
@@ -31,15 +31,16 @@ static const struct snd_pcm_hardware snd_bcm2835_playback_spdif_hw = {
                 SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |
                 SNDRV_PCM_INFO_SYNC_APPLPTR | SNDRV_PCM_INFO_BATCH),
        .formats = SNDRV_PCM_FMTBIT_S16_LE,
-       .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_44100 |
-       SNDRV_PCM_RATE_48000,
+       .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 |
+       SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000 |
+       SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_192000,
        .rate_min = 44100,
-       .rate_max = 48000,
+       .rate_max = 192000,
        .channels_min = 2,
-       .channels_max = 2,
-       .buffer_bytes_max = 128 * 1024,
+       .channels_max = 8,
+       .buffer_bytes_max = 512 * 1024,
        .period_bytes_min = 1 * 1024,
-       .period_bytes_max = 128 * 1024,
+       .period_bytes_max = 512 * 1024,
        .periods_min = 1,
        .periods_max = 128,
 };