Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170191
b: refs/heads/master
c: 26d95b6
h: refs/heads/master
i:
  170189: 13d23a9
  170187: 1495b3c
  170183: 750846f
  170175: b0a3c5e
v: v3
  • Loading branch information
Mark Brown committed Oct 29, 2009
1 parent e6294bb commit c31e4cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2845fa13e5cbe708ece7fafe29c91f32c66e4f59
refs/heads/master: 26d95b6e300c4847be6ec8bfe817dbd531e94d9a
15 changes: 5 additions & 10 deletions trunk/sound/soc/s3c24xx/smdk64xx_wm8580.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static int smdk64xx_hw_params(struct snd_pcm_substream *substream,
if (ret < 0)
return ret;

/* Set WM8580 to drive MCLK from it's PLLA */
/* Set WM8580 to drive MCLK from its PLLA */
ret = snd_soc_dai_set_clkdiv(codec_dai, WM8580_MCLK,
WM8580_CLKSRC_PLLA);
if (ret < 0)
Expand All @@ -115,7 +115,6 @@ static int smdk64xx_hw_params(struct snd_pcm_substream *substream,
if (ret < 0)
return ret;

/* Assuming the CODEC driver evaluates it's rfs too from this call */
ret = snd_soc_dai_set_pll(codec_dai, 0, WM8580_PLLA,
SMDK64XX_WM8580_FREQ, pll_out);
if (ret < 0)
Expand Down Expand Up @@ -186,9 +185,10 @@ static int smdk64xx_wm8580_init_paiftx(struct snd_soc_codec *codec)
/* Set up PAIFTX audio path */
snd_soc_dapm_add_routes(codec, audio_map_tx, ARRAY_SIZE(audio_map_tx));

/* All enabled by default */
snd_soc_dapm_enable_pin(codec, "MicIn");
snd_soc_dapm_enable_pin(codec, "LineIn");
/* Enabling the microphone requires the fitting of a 0R
* resistor to connect the line from the microphone jack.
*/
snd_soc_dapm_disable_pin(codec, "MicIn");

/* signal a DAPM event */
snd_soc_dapm_sync(codec);
Expand All @@ -205,11 +205,6 @@ static int smdk64xx_wm8580_init_paifrx(struct snd_soc_codec *codec)
/* Set up PAIFRX audio path */
snd_soc_dapm_add_routes(codec, audio_map_rx, ARRAY_SIZE(audio_map_rx));

/* All enabled by default */
snd_soc_dapm_enable_pin(codec, "Front-L/R");
snd_soc_dapm_enable_pin(codec, "Center/Sub");
snd_soc_dapm_enable_pin(codec, "Rear-L/R");

/* signal a DAPM event */
snd_soc_dapm_sync(codec);

Expand Down

0 comments on commit c31e4cf

Please sign in to comment.