ASoC: pcm3168a: Fix serial mode dependent format support
Subsystems (3)
PATCH 1/1 ASoC: pcm3168a: Fix serial mode dependent format support
fmt 0 is perfectly valid (PCM3168A_FMT_I2S). Remove the return in case fmt == 0.
--- sound/soc/codecs/pcm3168a.c | 2 -- 1 file changed, 2 deletions(-)
sound/soc/codecs/pcm3168a.c +0 -2
@@ -322,8 +322,6 @@ static void pcm3168a_update_fixup_pcm_stream(struct snd_soc_dai *dai)u64 formats =SNDRV_PCM_FMTBIT_S24_3LE |SNDRV_PCM_FMTBIT_S24_LE ;unsigned int channel_max = dai->id ==PCM3168A_DAI_DAC ?8 :6 ; -if (!pcm3168a->io_params[dai->id].fmt) -return ;if (pcm3168a->io_params[dai->id].fmt ==PCM3168A_FMT_RIGHT_J ) {/* S16_LE is only supported in RIGHT_J mode */
Signature · 9 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 15 lines · Peter Ujfalusi
fmt 0 is perfectly valid (
PCM3168A_FMT_I2S). Remove the return in case fmt == 0.Fixes ("ASoC: pcm3168a: Use fixup instead of constraint for channels and formats")Reported-by Kuninori Morimoto <[email protected]>Signed-off-by Peter Ujfalusi <[email protected]>--- sound/soc/codecs/pcm3168a.c | 2 -- 1 file changed, 2 deletions(-)sound/soc/codecs/pcm3168a.c +0
-0
sound/soc/codecs/pcm3168a.c static void pcm3168a_update_fixup_pcm_stream(struct snd_soc_dai *dai) · line 325
Quoted 6 lines
sound/soc/codecs/pcm3168a.c +0
-2@@ -322,8 +322,6 @@ static void pcm3168a_update_fixup_pcm_stream(struct snd_soc_dai *dai)u64 formats =SNDRV_PCM_FMTBIT_S24_3LE |SNDRV_PCM_FMTBIT_S24_LE ;unsigned int channel_max = dai->id ==PCM3168A_DAI_DAC ?8 :6 ; -if (!pcm3168a->io_params[dai->id].fmt) -return ;
I should be removing one blank line as well. Just a sec, I'll send v2.
sound/soc/codecs/pcm3168a.c static void pcm3168a_update_fixup_pcm_stream(struct snd_soc_dai *dai) · line 327
Quoted 3 lines
sound/soc/codecs/pcm3168a.c +0
-0if (pcm3168a->io_params[dai->id].fmt ==PCM3168A_FMT_RIGHT_J ) {/* S16_LE is only supported in RIGHT_J mode */
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel