File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -259,9 +259,6 @@ static int bcm2835_i2s_hw_params(struct snd_pcm_substream *substream,
259
259
case SNDRV_PCM_FORMAT_S16_LE :
260
260
data_length = 16 ;
261
261
break ;
262
- case SNDRV_PCM_FORMAT_S24_LE :
263
- data_length = 24 ;
264
- break ;
265
262
case SNDRV_PCM_FORMAT_S32_LE :
266
263
data_length = 32 ;
267
264
break ;
@@ -282,7 +279,7 @@ static int bcm2835_i2s_hw_params(struct snd_pcm_substream *substream,
282
279
/* Setup the frame format */
283
280
format = BCM2835_I2S_CHEN ;
284
281
285
- if (data_length >= 24 )
282
+ if (data_length > 24 )
286
283
format |= BCM2835_I2S_CHWEX ;
287
284
288
285
format |= BCM2835_I2S_CHWID ((data_length - 8 )& 0xf );
@@ -573,15 +570,13 @@ static struct snd_soc_dai_driver bcm2835_i2s_dai = {
573
570
.channels_max = 2 ,
574
571
.rates = SNDRV_PCM_RATE_8000_192000 ,
575
572
.formats = SNDRV_PCM_FMTBIT_S16_LE
576
- | SNDRV_PCM_FMTBIT_S24_LE
577
573
| SNDRV_PCM_FMTBIT_S32_LE
578
574
},
579
575
.capture = {
580
576
.channels_min = 2 ,
581
577
.channels_max = 2 ,
582
578
.rates = SNDRV_PCM_RATE_8000_192000 ,
583
579
.formats = SNDRV_PCM_FMTBIT_S16_LE
584
- | SNDRV_PCM_FMTBIT_S24_LE
585
580
| SNDRV_PCM_FMTBIT_S32_LE
586
581
},
587
582
.ops = & bcm2835_i2s_dai_ops ,
You can’t perform that action at this time.
0 commit comments