Skip to content

Commit

Permalink
Merge branch 'fix/asoc' into for-linus
Browse files Browse the repository at this point in the history
* fix/asoc:
  ASoC: Remove BROKEN from mpc5200 kconfig
  ASoC: TWL4030: Fix gain control for earpiece amplifier
  ASoC: Set the MPC5200 i2s driver to BROKEN status.
  ASoC: Fix logic in WM8350 master clocking check
  • Loading branch information
Takashi Iwai committed May 4, 2009
2 parents 56dc16f + 6574612 commit dea6a9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion sound/soc/codecs/twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,12 @@ static DECLARE_TLV_DB_SCALE(analog_tlv, -2400, 200, 0);
*/
static DECLARE_TLV_DB_SCALE(output_tvl, -1200, 600, 1);

/*
* Gain control for earpiece amplifier
* 0 dB to 12 dB in 6 dB steps (mute instead of -6)
*/
static DECLARE_TLV_DB_SCALE(output_ear_tvl, -600, 600, 1);

/*
* Capture gain after the ADCs
* from 0 dB to 31 dB in 1 dB steps
Expand Down Expand Up @@ -900,7 +906,7 @@ static const struct snd_kcontrol_new twl4030_snd_controls[] = {
4, 3, 0, output_tvl),

SOC_SINGLE_TLV_TWL4030("Earpiece Playback Volume",
TWL4030_REG_EAR_CTL, 4, 3, 0, output_tvl),
TWL4030_REG_EAR_CTL, 4, 3, 0, output_ear_tvl),

/* Common capture gain controls */
SOC_DOUBLE_R_TLV("TX1 Digital Capture Volume",
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm8350.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ static int wm8350_pcm_trigger(struct snd_pcm_substream *substream,
* required for LRC in master mode. The DACs or ADCs need a
* valid audio path i.e. pin -> ADC or DAC -> pin before
* the LRC will be enabled in master mode. */
if (!master && cmd != SNDRV_PCM_TRIGGER_START)
if (!master || cmd != SNDRV_PCM_TRIGGER_START)
return 0;

if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
Expand Down

0 comments on commit dea6a9d

Please sign in to comment.