Fix register address to set SPDIF data type.
Subsystems (3)
PATCH 1/1 Fix register address to set SPDIF data type.
ASoC: cs4265: Fix register address to set the proper data type.
The SPDIF control register must be written to set the data type in hw_params not the ADC control register.
Signed-off-by Paul Handrigan <[email protected]>
--- sound/soc/codecs/cs4265.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/cs4265.c +3 -3
@@ -459,12 +459,12 @@ static int cs4265_pcm_hw_params(struct snd_pcm_substream *substream,if (params_width (params) ==16 ) {snd_soc_update_bits (codec,CS4265_DAC_CTL ,CS4265_DAC_CTL_DIF , (1 <<5 )); -snd_soc_update_bits (codec,CS4265_ADC_CTL , +snd_soc_update_bits (codec,CS4265_SPDIF_CTL2 ,CS4265_SPDIF_CTL2_DIF , (1 <<7 )); }else {snd_soc_update_bits (codec,CS4265_DAC_CTL ,CS4265_DAC_CTL_DIF , (3 <<5 )); -snd_soc_update_bits (codec,CS4265_ADC_CTL , +snd_soc_update_bits (codec,CS4265_SPDIF_CTL2 ,CS4265_SPDIF_CTL2_DIF , (1 <<7 )); }break ;
@@ -473,7 +473,7 @@ static int cs4265_pcm_hw_params(struct snd_pcm_substream *substream, CS4265_DAC_CTL_DIF, 0);snd_soc_update_bits (codec,CS4265_ADC_CTL ,CS4265_ADC_DIF ,0 ); -snd_soc_update_bits (codec,CS4265_ADC_CTL , +snd_soc_update_bits (codec,CS4265_SPDIF_CTL2 ,CS4265_SPDIF_CTL2_DIF , (1 <<6 ));break ;
Signature · 1 line
1.9.1
Quoted 4 lines · Paul Handrigan
ASoC: cs4265: Fix register address to set the proper data type.
The SPDIF control register must be written to set the data type in
hw_paramsnot the ADC control register.
Applied, thanks. Please use subject lines matching the style for the subsystem.