Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: broonie@opensource.wolfsonmicro.com (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/4] Zipit Z2 WM8750 aSoC driver
Date: Wed, 10 Mar 2010 17:01:19 +0000	[thread overview]
Message-ID: <20100310170119.GI6850@sirena.org.uk> (raw)
In-Reply-To: <201003101742.24566.marek.vasut@gmail.com>

On Wed, Mar 10, 2010 at 05:42:24PM +0100, Marek Vasut wrote:
> Hi,
> This patch adds support for sound through the WM8750 codec on Zipit Z2.
> Also, this patch incorporates support for detecting headset jack
> insertion through the jack detection API.
> 
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>

The ASoC stuff needs to get merged via ASoC.

Please do remember to CC maintainers and relevant lists on patches.
Please also try to follow the recommendations in
Documentation/SubmittingPatches - there's a fair number of people who
manage to submit using gmail without these problems.

> + *  Revision history
> + *    21st Dec 2008   Zipit Z2 version.
> + *    30th Nov 2005   Initial version.

Remove this.

> +/* Headset jack detection DAPM pins */
> +static struct snd_soc_jack_pin hs_jack_pins[] = {
> +	{
> +		.pin	= "Mic Jack",
> +		.mask	= SND_JACK_MICROPHONE,
> +	},
> +	{
> +		.pin	= "Headphone Jack",
> +		.mask	= SND_JACK_HEADPHONE,
> +	},
> +};
> +
> +/* Headset jack detection gpios */
> +static struct snd_soc_jack_gpio hs_jack_gpios[] = {
> +	{
> +		.gpio		= GPIO37_ZIPITZ2_HEADSET_DETECT,
> +		.name		= "hsdet-gpio",
> +		.report		= SND_JACK_HEADSET,
> +		.debounce_time	= 200,
> +	},
> +};

The code here doesn't seem entrely compatible with the explicit ext
control stuff you've got above - there's two different ways to manage
the jack status that don't seem to be cooperating.  Both "Headphone
Jack" and "Microphone Jack" are managed by both.

> +static const struct snd_kcontrol_new wm8750_z2_controls[] = {
> +	SOC_ENUM_EXT("Jack Function", z2_enum[0], z2_get_jack,
> +		z2_set_jack),
> +	SOC_ENUM_EXT("Speaker Function", z2_enum[1], z2_get_spk,
> +		z2_set_spk),

Please don't use an array to store the enums.

> +static struct wm8750_setup_data z2_wm8750_setup = {
> +	.i2c_bus	= 0,
> +	.i2c_address	= 0x1b,
> +};

Nack, use the driver model (looks like WM8750 needs converting over
still, wonder what went AWOL there).

      reply	other threads:[~2010-03-10 17:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-10 16:42 [PATCH 4/4] Zipit Z2 WM8750 aSoC driver Marek Vasut
2010-03-10 17:01 ` Mark Brown [this message]

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=20100310170119.GI6850@sirena.org.uk \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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