Merge branch 'for-2.6.34' into for-2.6.35
This commit is contained in:
commit
4ca612ebdb
3 changed files with 5 additions and 8 deletions
sound/soc
|
@ -762,7 +762,7 @@ static int dac33_prepare_chip(struct snd_pcm_substream *substream)
|
||||||
if (dac33->fifo_mode) {
|
if (dac33->fifo_mode) {
|
||||||
/* Generic for all FIFO modes */
|
/* Generic for all FIFO modes */
|
||||||
/* 50-51 : ASRC Control registers */
|
/* 50-51 : ASRC Control registers */
|
||||||
dac33_write(codec, DAC33_ASRC_CTRL_A, (1 << 4)); /* div=2 */
|
dac33_write(codec, DAC33_ASRC_CTRL_A, DAC33_SRCLKDIV(1));
|
||||||
dac33_write(codec, DAC33_ASRC_CTRL_B, 1); /* ??? */
|
dac33_write(codec, DAC33_ASRC_CTRL_B, 1); /* ??? */
|
||||||
|
|
||||||
/* Write registers 0x34 and 0x35 (MSB, LSB) */
|
/* Write registers 0x34 and 0x35 (MSB, LSB) */
|
||||||
|
@ -1028,11 +1028,7 @@ static int dac33_set_dai_fmt(struct snd_soc_dai *codec_dai,
|
||||||
case SND_SOC_DAIFMT_DSP_A:
|
case SND_SOC_DAIFMT_DSP_A:
|
||||||
aictrl_a |= DAC33_AFMT_DSP;
|
aictrl_a |= DAC33_AFMT_DSP;
|
||||||
aictrl_b &= ~DAC33_DATA_DELAY_MASK;
|
aictrl_b &= ~DAC33_DATA_DELAY_MASK;
|
||||||
aictrl_b |= DAC33_DATA_DELAY(1); /* 1 bit delay */
|
aictrl_b |= DAC33_DATA_DELAY(0);
|
||||||
break;
|
|
||||||
case SND_SOC_DAIFMT_DSP_B:
|
|
||||||
aictrl_a |= DAC33_AFMT_DSP;
|
|
||||||
aictrl_b &= ~DAC33_DATA_DELAY_MASK; /* No delay */
|
|
||||||
break;
|
break;
|
||||||
case SND_SOC_DAIFMT_RIGHT_J:
|
case SND_SOC_DAIFMT_RIGHT_J:
|
||||||
aictrl_a |= DAC33_AFMT_RIGHT_J;
|
aictrl_a |= DAC33_AFMT_RIGHT_J;
|
||||||
|
@ -1056,7 +1052,7 @@ static void dac33_init_chip(struct snd_soc_codec *codec)
|
||||||
{
|
{
|
||||||
/* 44-46: DAC Control Registers */
|
/* 44-46: DAC Control Registers */
|
||||||
/* A : DAC sample rate Fsref/1.5 */
|
/* A : DAC sample rate Fsref/1.5 */
|
||||||
dac33_write(codec, DAC33_DAC_CTRL_A, DAC33_DACRATE(1));
|
dac33_write(codec, DAC33_DAC_CTRL_A, DAC33_DACRATE(0));
|
||||||
/* B : DAC src=normal, not muted */
|
/* B : DAC src=normal, not muted */
|
||||||
dac33_write(codec, DAC33_DAC_CTRL_B, DAC33_DACSRCR_RIGHT |
|
dac33_write(codec, DAC33_DAC_CTRL_B, DAC33_DACSRCR_RIGHT |
|
||||||
DAC33_DACSRCL_LEFT);
|
DAC33_DACSRCL_LEFT);
|
||||||
|
|
|
@ -74,7 +74,7 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec)
|
||||||
msleep(1);
|
msleep(1);
|
||||||
reg = snd_soc_read(codec, WM8993_DC_SERVO_READBACK_0);
|
reg = snd_soc_read(codec, WM8993_DC_SERVO_READBACK_0);
|
||||||
dev_dbg(codec->dev, "DC servo: %x\n", reg);
|
dev_dbg(codec->dev, "DC servo: %x\n", reg);
|
||||||
} while (reg & WM8993_DCS_DATAPATH_BUSY);
|
} while (reg & WM8993_DCS_DATAPATH_BUSY && count < 400);
|
||||||
|
|
||||||
if (reg & WM8993_DCS_DATAPATH_BUSY)
|
if (reg & WM8993_DCS_DATAPATH_BUSY)
|
||||||
dev_err(codec->dev, "Timed out waiting for DC Servo\n");
|
dev_err(codec->dev, "Timed out waiting for DC Servo\n");
|
||||||
|
|
|
@ -32,6 +32,7 @@ config SND_SOC_SH4_SIU
|
||||||
select DMA_ENGINE
|
select DMA_ENGINE
|
||||||
select DMADEVICES
|
select DMADEVICES
|
||||||
select SH_DMAE
|
select SH_DMAE
|
||||||
|
select FW_LOADER
|
||||||
|
|
||||||
##
|
##
|
||||||
## Boards
|
## Boards
|
||||||
|
|
Loading…
Add table
Reference in a new issue