Commit 6f48413d authored by Liam Girdwood's avatar Liam Girdwood Committed by Jaroslav Kysela

ALSA: asoc: at32 - DAI struct merge and enable_pin() change.

This adds support for the recent DAI struct merge and new DAPM pin API.
Signed-off-by: default avatarLiam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent ac8615ba
...@@ -341,15 +341,15 @@ static int playpaq_wm8510_init(struct snd_soc_codec *codec) ...@@ -341,15 +341,15 @@ static int playpaq_wm8510_init(struct snd_soc_codec *codec)
} }
/* always connected endpoints */ /* always connected pins */
snd_soc_dapm_set_endpoint(codec, "Int Mic", 1); snd_soc_dapm_enable_pin(codec, "Int Mic");
snd_soc_dapm_set_endpoint(codec, "Ext Spk", 1); snd_soc_dapm_enable_pin(codec, "Ext Spk");
snd_soc_dapm_sync_endpoints(codec); snd_soc_dapm_sync(codec);
/* Make CSB show PLL rate */ /* Make CSB show PLL rate */
codec->dai->dai_ops.set_clkdiv(codec->dai, WM8510_OPCLKDIV, snd_soc_dai_set_clkdiv(codec->dai, WM8510_OPCLKDIV,
WM8510_OPCLKDIV_1 | 4); WM8510_OPCLKDIV_1 | 4);
return 0; return 0;
......
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