Thread (1 message) 1 message, 1 author, 2014-03-04

Re: [alsa-devel] [PATCH v2 2/4] ASoC: davinci-evm: Add AM43xx-EPOS-EVM audio support

From: Jyri Sarha <hidden>
Date: 2014-03-04 15:40:44
Also in: alsa-devel

On 03/04/2014 04:12 PM, Lars-Peter Clausen wrote:
quoted
+static const struct snd_soc_dapm_widget aic31xx_dapm_widgets[] = {
+    SND_SOC_DAPM_HP("Headphone Jack", NULL),
+    SND_SOC_DAPM_SPK("Speaker", NULL),
+    SND_SOC_DAPM_MIC("Mic Jack", NULL),
+};
+
+/* Logic for EVMs with an aic31xx */
+static int evm_aic31xx_init(struct snd_soc_pcm_runtime *rtd)
+{
+    struct snd_soc_codec *codec = rtd->codec;
+    struct snd_soc_dapm_context *dapm = &codec->dapm;
Machine level DAPM elements should go into the card's DAPM context, not
the CODEC context. Also use rtd->card to get a pointer to the card
instead of rtd->codec->card.
Thanks, I'll fix those.

Best regards,
Jyri
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help