sound/sgtl5000: fix initial setting for DAC data source
Subsystems (3)
PATCH 1/1 sound/sgtl5000: fix initial setting for DAC data source
According to documentation bit 3:2 in register SSS_CTRL are reserved and zero, so the setting of 0x0008 does not make much sense. Instead, bit 4 should be set as is with power up, to reflect routing of I2S_IN to DAC correctly.
Looks much like an off by one error.
--- sound/soc/codecs/sgtl5000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/sgtl5000.c +1 -1
@@ -37,7 +37,7 @@static const u16 sgtl5000_regs[SGTL5000_MAX_REG_OFFSET ] = { [SGTL5000_CHIP_CLK_CTRL ] =0x0008 , [SGTL5000_CHIP_I2S_CTRL ] =0x0010 , - [SGTL5000_CHIP_SSS_CTRL ] =0x0008 , + [SGTL5000_CHIP_SSS_CTRL ] =0x0010 , [SGTL5000_CHIP_DAC_VOL ] =0x3c3c , [SGTL5000_CHIP_PAD_STRENGTH ] =0x015f , [SGTL5000_CHIP_ANA_HP_CTRL ] =0x1818 ,
Signature · 1 line
1.7.9.5
Quoted 6 lines · Oskar Schirmer
According to documentation bit 3:2 in register
SSS_CTRLare reserved and zero, so the setting of0x0008does not make much sense. Instead, bit 4 should be set as is with power up, to reflect routing ofI2S_INto DAC correctly.Looks much like an off by one error.
Could you resend this to alsa-devel and CC maintainers.
Thanks
Liam
PATCH 1/1 sound/sgtl5000: fix initial setting for DAC data source
According to documentation bit 3:2 in register SSS_CTRL are reserved and zero, so the setting of 0x0008 does not make much sense. Instead, bit 4 should be set as is with power up, to reflect routing of I2S_IN to DAC correctly.
Looks much like an off by one error.
--- sound/soc/codecs/sgtl5000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/sgtl5000.c +1 -1
@@ -37,7 +37,7 @@static const u16 sgtl5000_regs[SGTL5000_MAX_REG_OFFSET ] = { [SGTL5000_CHIP_CLK_CTRL ] =0x0008 , [SGTL5000_CHIP_I2S_CTRL ] =0x0010 , - [SGTL5000_CHIP_SSS_CTRL ] =0x0008 , + [SGTL5000_CHIP_SSS_CTRL ] =0x0010 , [SGTL5000_CHIP_DAC_VOL ] =0x3c3c , [SGTL5000_CHIP_PAD_STRENGTH ] =0x015f , [SGTL5000_CHIP_ANA_HP_CTRL ] =0x1818 ,
Signature · 1 line
1.7.9.5
On Wed, Nov 28, 2012 at 10:14:28AM +0000, Oskar Schirmer wrote:
You've somehow decided to CC half the world but still haven't managed to CC the maintainers like Liam asked (and as is covered in SubmittingPatches)...
Quoted 6 lines
According to documentation bit 3:2 in register
SSS_CTRLare reserved and zero, so the setting of0x0008does not make much sense. Instead, bit 4 should be set as is with power up, to reflect routing ofI2S_INto DAC correctly.Looks much like an off by one error.
What does "as is with power up" mean? This is a register defaults table, it should reflect what is in the register defaults. The meaning of the field and the desired configuration for runtime is not relevant here, the only thing that matters is what the default value of the register is.