aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/codecs/tlv320dac33.c10
-rw-r--r--sound/soc/codecs/wm_hubs.c2
-rw-r--r--sound/soc/sh/Kconfig1
3 files changed, 5 insertions, 8 deletions
diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c
index a6f19271aaea..ee2e1e36d995 100644
--- a/sound/soc/codecs/tlv320dac33.c
+++ b/sound/soc/codecs/tlv320dac33.c
@@ -762,7 +762,7 @@ static int dac33_prepare_chip(struct snd_pcm_substream *substream)
762 if (dac33->fifo_mode) { 762 if (dac33->fifo_mode) {
763 /* Generic for all FIFO modes */ 763 /* Generic for all FIFO modes */
764 /* 50-51 : ASRC Control registers */ 764 /* 50-51 : ASRC Control registers */
765 dac33_write(codec, DAC33_ASRC_CTRL_A, (1 << 4)); /* div=2 */ 765 dac33_write(codec, DAC33_ASRC_CTRL_A, DAC33_SRCLKDIV(1));
766 dac33_write(codec, DAC33_ASRC_CTRL_B, 1); /* ??? */ 766 dac33_write(codec, DAC33_ASRC_CTRL_B, 1); /* ??? */
767 767
768 /* Write registers 0x34 and 0x35 (MSB, LSB) */ 768 /* Write registers 0x34 and 0x35 (MSB, LSB) */
@@ -1028,11 +1028,7 @@ static int dac33_set_dai_fmt(struct snd_soc_dai *codec_dai,
1028 case SND_SOC_DAIFMT_DSP_A: 1028 case SND_SOC_DAIFMT_DSP_A:
1029 aictrl_a |= DAC33_AFMT_DSP; 1029 aictrl_a |= DAC33_AFMT_DSP;
1030 aictrl_b &= ~DAC33_DATA_DELAY_MASK; 1030 aictrl_b &= ~DAC33_DATA_DELAY_MASK;
1031 aictrl_b |= DAC33_DATA_DELAY(1); /* 1 bit delay */ 1031 aictrl_b |= DAC33_DATA_DELAY(0);
1032 break;
1033 case SND_SOC_DAIFMT_DSP_B:
1034 aictrl_a |= DAC33_AFMT_DSP;
1035 aictrl_b &= ~DAC33_DATA_DELAY_MASK; /* No delay */
1036 break; 1032 break;
1037 case SND_SOC_DAIFMT_RIGHT_J: 1033 case SND_SOC_DAIFMT_RIGHT_J:
1038 aictrl_a |= DAC33_AFMT_RIGHT_J; 1034 aictrl_a |= DAC33_AFMT_RIGHT_J;
@@ -1056,7 +1052,7 @@ static void dac33_init_chip(struct snd_soc_codec *codec)
1056{ 1052{
1057 /* 44-46: DAC Control Registers */ 1053 /* 44-46: DAC Control Registers */
1058 /* A : DAC sample rate Fsref/1.5 */ 1054 /* A : DAC sample rate Fsref/1.5 */
1059 dac33_write(codec, DAC33_DAC_CTRL_A, DAC33_DACRATE(1)); 1055 dac33_write(codec, DAC33_DAC_CTRL_A, DAC33_DACRATE(0));
1060 /* B : DAC src=normal, not muted */ 1056 /* B : DAC src=normal, not muted */
1061 dac33_write(codec, DAC33_DAC_CTRL_B, DAC33_DACSRCR_RIGHT | 1057 dac33_write(codec, DAC33_DAC_CTRL_B, DAC33_DACSRCR_RIGHT |
1062 DAC33_DACSRCL_LEFT); 1058 DAC33_DACSRCL_LEFT);
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c
index 0ad9f5d536c6..486bdd21a98a 100644
--- a/sound/soc/codecs/wm_hubs.c
+++ b/sound/soc/codecs/wm_hubs.c
@@ -74,7 +74,7 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec)
74 msleep(1); 74 msleep(1);
75 reg = snd_soc_read(codec, WM8993_DC_SERVO_READBACK_0); 75 reg = snd_soc_read(codec, WM8993_DC_SERVO_READBACK_0);
76 dev_dbg(codec->dev, "DC servo: %x\n", reg); 76 dev_dbg(codec->dev, "DC servo: %x\n", reg);
77 } while (reg & WM8993_DCS_DATAPATH_BUSY); 77 } while (reg & WM8993_DCS_DATAPATH_BUSY && count < 400);
78 78
79 if (reg & WM8993_DCS_DATAPATH_BUSY) 79 if (reg & WM8993_DCS_DATAPATH_BUSY)
80 dev_err(codec->dev, "Timed out waiting for DC Servo\n"); 80 dev_err(codec->dev, "Timed out waiting for DC Servo\n");
diff --git a/sound/soc/sh/Kconfig b/sound/soc/sh/Kconfig
index 106674979b53..f07f6d8b93e1 100644
--- a/sound/soc/sh/Kconfig
+++ b/sound/soc/sh/Kconfig
@@ -32,6 +32,7 @@ config SND_SOC_SH4_SIU
32 select DMA_ENGINE 32 select DMA_ENGINE
33 select DMADEVICES 33 select DMADEVICES
34 select SH_DMAE 34 select SH_DMAE
35 select FW_LOADER
35 36
36## 37##
37## Boards 38## Boards