Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Lars-Peter Clausen <lars@metafoo.de>,
	Mark Brown <broonie@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>
Cc: alsa-devel@alsa-project.org,
	Anatol Pomozov <anatol.pomozov@gmail.com>,
	Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	Stephen Warren <swarren@wwwdotorg.org>,
	Vinod Koul <vinod.koul@intel.com>,
	Jie Yang <yang.jie@linux.intel.com>,
	Yang A Fang <yang.a.fang@intel.com>,
	Jarkko Nikula <jarkko.nikula@linux.intel.com>,
	Sean Cross <xobs@kosagi.com>, Dylan Reid <dgreid@chromium.org>,
	Jarkko Nikula <jarkko.nikula@bitmer.com>
Subject: Re: [PATCH 12/30] ASoC: omap-twl4030: Register jacks at the card level
Date: Wed, 4 Mar 2015 11:47:57 +0200	[thread overview]
Message-ID: <54F6D4CD.2080200@ti.com> (raw)
In-Reply-To: <1425461626-21103-13-git-send-email-lars@metafoo.de>

On 03/04/2015 11:33 AM, Lars-Peter Clausen wrote:
> The jacks are card level elements so use snd_soc_card_jack_new() instead of
> snd_soc_jack_new() to register them.

Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>

> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
>  sound/soc/omap/omap-twl4030.c | 12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)
> 
> diff --git a/sound/soc/omap/omap-twl4030.c b/sound/soc/omap/omap-twl4030.c
> index fb1f6bb..3673ada 100644
> --- a/sound/soc/omap/omap-twl4030.c
> +++ b/sound/soc/omap/omap-twl4030.c
> @@ -170,14 +170,10 @@ static int omap_twl4030_init(struct snd_soc_pcm_runtime *rtd)
>  	if (priv->jack_detect > 0) {
>  		hs_jack_gpios[0].gpio = priv->jack_detect;
>  
> -		ret = snd_soc_jack_new(codec, "Headset Jack", SND_JACK_HEADSET,
> -				       &priv->hs_jack);
> -		if (ret)
> -			return ret;
> -
> -		ret = snd_soc_jack_add_pins(&priv->hs_jack,
> -					    ARRAY_SIZE(hs_jack_pins),
> -					    hs_jack_pins);
> +		ret = snd_soc_card_jack_new(rtd->card, "Headset Jack",
> +					    SND_JACK_HEADSET, &priv->hs_jack,
> +					    hs_jack_pins,
> +					    ARRAY_SIZE(hs_jack_pins));
>  		if (ret)
>  			return ret;
>  
> 


-- 
Péter

  reply	other threads:[~2015-03-04  9:48 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-04  9:33 [PATCH 00/30] ASoC: Move jack registration to the card level Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 01/30] ASoC: sn95031: Pass CODEC to sn95031_jack_detection() Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 02/30] ASoC: Allow to register jacks at the card level Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 03/30] ASoC: simple-card: Register " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 04/30] ASoC: imx-es8328: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 05/30] ASoC: wm1133-ev: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 06/30] ASoC: broadwell: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 07/30] ASoC: byt-max98090: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 08/30] ASoC: cht_bsw_rt5645: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 09/30] ASoC: mfld_machine: " Lars-Peter Clausen
2015-03-04 11:58   ` Vinod Koul
2015-03-04  9:33 ` [PATCH 10/30] ASoC: ams-deltea: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 11/30] ASoC: omap-abe-twl6040: " Lars-Peter Clausen
2015-03-04  9:47   ` Peter Ujfalusi
2015-03-04  9:33 ` [PATCH 12/30] ASoC: omap-twl4030: " Lars-Peter Clausen
2015-03-04  9:47   ` Peter Ujfalusi [this message]
2015-03-04  9:33 ` [PATCH 13/30] ASoC: rx51: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 14/30] ASoC: hx4700: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 15/30] ASoC: palm27x: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 16/30] ASoC: ttc-dkb: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 17/30] ASoC: z2: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 18/30] ASoC: h1980_uda1380: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 19/30] ASoC: littlemill: " Lars-Peter Clausen
2015-03-05  9:57   ` Charles Keepax
2015-03-04  9:33 ` [PATCH 20/30] ASoC: lowland: " Lars-Peter Clausen
2015-03-05  9:57   ` Charles Keepax
2015-03-04  9:33 ` [PATCH 21/30] ASoC: rx1950_uda1380: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 22/30] ASoC: smartq: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 23/30] ASoC: speyside: " Lars-Peter Clausen
2015-03-05  9:58   ` Charles Keepax
2015-03-04  9:33 ` [PATCH 24/30] ASoC: tobermory: " Lars-Peter Clausen
2015-03-05  9:58   ` Charles Keepax
2015-03-04  9:33 ` [PATCH 25/30] ASoC: tegra_alc5632: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 26/30] ASoC: tegra_max98090: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 27/30] ASoC: tegra_rt5640: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 28/30] ASoC: tegra_rt5677: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 29/30] ASoC: tegra_wm8903: " Lars-Peter Clausen
2015-03-04  9:33 ` [PATCH 30/30] ASoC: Remove snd_soc_jack_new() Lars-Peter Clausen
2015-03-04 17:11 ` [PATCH 00/30] ASoC: Move jack registration to the card level Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54F6D4CD.2080200@ti.com \
    --to=peter.ujfalusi@ti.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=anatol.pomozov@gmail.com \
    --cc=broonie@kernel.org \
    --cc=dgreid@chromium.org \
    --cc=jarkko.nikula@bitmer.com \
    --cc=jarkko.nikula@linux.intel.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=swarren@wwwdotorg.org \
    --cc=vinod.koul@intel.com \
    --cc=xobs@kosagi.com \
    --cc=yang.a.fang@intel.com \
    --cc=yang.jie@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox