Commit 604bb229 authored by Ashish Chavan's avatar Ashish Chavan Committed by Mark Brown

ASoC: da7210: Minor bugfix for non pll slave mode

This patch fixes a bug discovered during testing of non pll slave mode.
Due to the bug chip was not getting correctly configured and as a result
there was no sound output while playback. After applying this patch,
both pll and non pll modes work fine.
Signed-off-by: default avatarAshish Chavan <ashish.chavan@kpitcummins.com>
Signed-off-by: default avatarDavid Dajun Chen <dchen@diasemi.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 9747cec2
...@@ -1159,8 +1159,9 @@ static int da7210_probe(struct snd_soc_codec *codec) ...@@ -1159,8 +1159,9 @@ static int da7210_probe(struct snd_soc_codec *codec)
/* Enable Aux2 */ /* Enable Aux2 */
snd_soc_write(codec, DA7210_AUX2, DA7210_AUX2_EN); snd_soc_write(codec, DA7210_AUX2, DA7210_AUX2_EN);
/* Set PLL Master clock range 10-20 MHz */ /* Set PLL Master clock range 10-20 MHz, enable PLL bypass */
snd_soc_write(codec, DA7210_PLL_DIV3, DA7210_MCLK_RANGE_10_20_MHZ); snd_soc_write(codec, DA7210_PLL_DIV3, DA7210_MCLK_RANGE_10_20_MHZ |
DA7210_PLL_BYP);
/* Diable PLL and bypass it */ /* Diable PLL and bypass it */
snd_soc_write(codec, DA7210_PLL, DA7210_PLL_FS_48000); snd_soc_write(codec, DA7210_PLL, DA7210_PLL_FS_48000);
...@@ -1191,8 +1192,8 @@ static struct reg_default da7210_regmap_i2c_patch[] = { ...@@ -1191,8 +1192,8 @@ static struct reg_default da7210_regmap_i2c_patch[] = {
/* System controller master disable */ /* System controller master disable */
{ DA7210_STARTUP1, 0x00 }, { DA7210_STARTUP1, 0x00 },
/* make sure that DA7210 use bypass mode before start up */ /* Set PLL Master clock range 10-20 MHz */
{ DA7210_PLL_DIV3, DA7210_MCLK_RANGE_10_20_MHZ | DA7210_PLL_BYP }, { DA7210_PLL_DIV3, DA7210_MCLK_RANGE_10_20_MHZ },
/* to unlock */ /* to unlock */
{ DA7210_A_HID_UNLOCK, 0x8B}, { DA7210_A_HID_UNLOCK, 0x8B},
...@@ -1290,8 +1291,8 @@ static struct reg_default da7210_regmap_spi_patch[] = { ...@@ -1290,8 +1291,8 @@ static struct reg_default da7210_regmap_spi_patch[] = {
/* System controller master disable */ /* System controller master disable */
{ DA7210_STARTUP1, 0x00 }, { DA7210_STARTUP1, 0x00 },
/* make sure that DA7210 use bypass mode before start up */ /* Set PLL Master clock range 10-20 MHz */
{ DA7210_PLL_DIV3, DA7210_MCLK_RANGE_10_20_MHZ | DA7210_PLL_BYP }, { DA7210_PLL_DIV3, DA7210_MCLK_RANGE_10_20_MHZ },
/* to set PAGE1 of SPI register space */ /* to set PAGE1 of SPI register space */
{ DA7210_PAGE_CONTROL, 0x80 }, { DA7210_PAGE_CONTROL, 0x80 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment