All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Anatol Pomozov <anatol.pomozov@gmail.com>, broonie@kernel.org
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] ASoC: ssm4567: Add driver for Analog Devices SSM4567 amplifier
Date: Fri, 26 Sep 2014 19:13:45 +0200	[thread overview]
Message-ID: <54259EC9.3060109@metafoo.de> (raw)
In-Reply-To: <1411747721-38619-1-git-send-email-anatol.pomozov@gmail.com>

On 09/26/2014 06:08 PM, Anatol Pomozov wrote:
> Analog Devices SSM4567 is a boost class-D audio amplifier.
>
> Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>

Looks mostly okay. I also have a driver for this chip which is getting ready 
for upstream. It is a bit more complete feature wise, but I can rebase it 
ontop of your driver.

https://github.com/analogdevicesinc/linux/blob/asoc-ssm4329/sound/soc/codecs/ssm4567.c

[...]
> diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
> index 8ab1547..da45b5a 100644
> --- a/sound/soc/codecs/Kconfig
> +++ b/sound/soc/codecs/Kconfig
> @@ -94,6 +94,7 @@ config SND_SOC_ALL_CODECS
[...]
> +config SND_SOC_SSM4567
> +	tristate "Analog Devices ssm4567 amplifier driver support"

         depends on I2C

> +
>   config SND_SOC_STA32X
>   	tristate
>
> diff --git a/sound/soc/codecs/ssm4567.c b/sound/soc/codecs/ssm4567.c
> new file mode 100644
> index 0000000..fb92248
> --- /dev/null
> +++ b/sound/soc/codecs/ssm4567.c
[...]
> +#include <linux/gpio.h>
> +#include <linux/of_gpio.h>

No gpios in this driver

[...]
> +
> +static const struct snd_kcontrol_new ssm4567_snd_controls[] = {
[...]
> +	SOC_SINGLE("Master Playback Switch", SSM4567_REG_DAC_CTRL, 6, 1, 1),

This one and ...

[...]
> +};
> +
[...]
> +static int ssm4567_mute(struct snd_soc_dai *dai, int mute)
> +{
> +	struct ssm4567 *ssm4567 = snd_soc_codec_get_drvdata(dai->codec);
> +	unsigned int val;
> +
> +	val = mute ? SSM4567_DAC_MUTE : 0;
> +	return regmap_update_bits(ssm4567->regmap, SSM4567_REG_DAC_CTRL,
> +			SSM4567_DAC_MUTE, val);


... this one control the same bit, so there will be conflicts.

> +}
> +

  reply	other threads:[~2014-09-26 17:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-26 16:08 [PATCH] ASoC: ssm4567: Add driver for Analog Devices SSM4567 amplifier Anatol Pomozov
2014-09-26 17:13 ` Lars-Peter Clausen [this message]
2014-09-26 20:38   ` Anatol Pomozov
2014-09-26 20:42     ` Lars-Peter Clausen
2014-09-26 20:31 ` Anatol Pomozov
2014-09-26 20:46   ` Lars-Peter Clausen
2014-09-26 20:49     ` Anatol Pomozov
2014-09-27 10:18   ` 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=54259EC9.3060109@metafoo.de \
    --to=lars@metafoo.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=anatol.pomozov@gmail.com \
    --cc=broonie@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.