File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,10 @@ static const struct snd_pcm_hardware kmb_pcm_hardware = {
28
28
SNDRV_PCM_INFO_MMAP_VALID |
29
29
SNDRV_PCM_INFO_BATCH |
30
30
SNDRV_PCM_INFO_BLOCK_TRANSFER ,
31
- .rates = SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_48000 ,
32
- .rate_min = 16000 ,
31
+ .rates = SNDRV_PCM_RATE_8000 |
32
+ SNDRV_PCM_RATE_16000 |
33
+ SNDRV_PCM_RATE_48000 ,
34
+ .rate_min = 8000 ,
33
35
.rate_max = 48000 ,
34
36
.formats = SNDRV_PCM_FMTBIT_S16_LE |
35
37
SNDRV_PCM_FMTBIT_S24_LE |
@@ -533,8 +535,10 @@ static struct snd_soc_dai_driver intel_kmb_platform_dai[] = {
533
535
.playback = {
534
536
.channels_min = 2 ,
535
537
.channels_max = 2 ,
536
- .rates = SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_48000 ,
537
- .rate_min = 16000 ,
538
+ .rates = SNDRV_PCM_RATE_8000 |
539
+ SNDRV_PCM_RATE_16000 |
540
+ SNDRV_PCM_RATE_48000 ,
541
+ .rate_min = 8000 ,
538
542
.rate_max = 48000 ,
539
543
.formats = (SNDRV_PCM_FMTBIT_S32_LE |
540
544
SNDRV_PCM_FMTBIT_S24_LE |
@@ -543,8 +547,14 @@ static struct snd_soc_dai_driver intel_kmb_platform_dai[] = {
543
547
.capture = {
544
548
.channels_min = 2 ,
545
549
.channels_max = 2 ,
546
- .rates = SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_48000 ,
547
- .rate_min = 16000 ,
550
+ /*
551
+ * .channels_max will be overwritten
552
+ * if provided by Device Tree
553
+ */
554
+ .rates = SNDRV_PCM_RATE_8000 |
555
+ SNDRV_PCM_RATE_16000 |
556
+ SNDRV_PCM_RATE_48000 ,
557
+ .rate_min = 8000 ,
548
558
.rate_max = 48000 ,
549
559
.formats = (SNDRV_PCM_FMTBIT_S32_LE |
550
560
SNDRV_PCM_FMTBIT_S24_LE |
You can’t perform that action at this time.
0 commit comments