All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Sangbeom Kim <sbkim73@samsung.com>
Cc: alsa-devel@alsa-project.org, linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com,
	jassisinghbrar@gmail.com, ben-linux@fluff.org,
	lrg@slimlogic.co.uk
Subject: Re: [alsa-devel] [PATCH 3/3] SoC: SAMSUNG: Add WM8580 PCM Machine driver
Date: Thu, 7 Apr 2011 02:17:04 +0100	[thread overview]
Message-ID: <20110407011704.GA21071@sirena.org.uk> (raw)
In-Reply-To: <1302136270-28776-4-git-send-email-sbkim73@samsung.com>

On Thu, Apr 07, 2011 at 09:31:10AM +0900, Sangbeom Kim wrote:

> +config SND_SOC_SAMSUNG_SMDK_WM8580_PCM
> +	tristate
> +

What is the purpose of this variable?  Just the config for the machine
should be enough.

> @@ -1,12 +1,12 @@
> -# S3c24XX Platform Support
> +# SAMSUNG Platform Support
>  snd-soc-s3c24xx-objs := dma.o
>  snd-soc-s3c24xx-i2s-objs := s3c24xx-i2s.o
>  snd-soc-s3c2412-i2s-objs := s3c2412-i2s.o
>  snd-soc-ac97-objs := ac97.o
>  snd-soc-s3c-i2s-v2-objs := s3c-i2s-v2.o
>  snd-soc-samsung-spdif-objs := spdif.o
> -snd-soc-pcm-objs := pcm.o
> -snd-soc-i2s-objs := i2s.o
> +snd-soc-samsung-pcm-objs := pcm.o
> +snd-soc-samsung-i2s-objs := i2s.o

These changes all look reasonable but they're unrelated to adding the
machine driver and should be split out.

> diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c
> index 38aac7d..9c7e8b4 100644
> --- a/sound/soc/samsung/pcm.c
> +++ b/sound/soc/samsung/pcm.c
> @@ -350,8 +350,8 @@ static int s3c_pcm_set_fmt(struct snd_soc_dai *cpu_dai,
>  	ctl = readl(regs + S3C_PCM_CTL);
>  
>  	switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
> -	case SND_SOC_DAIFMT_NB_NF:
> -		/* Nothing to do, NB_NF by default */
> +	case SND_SOC_DAIFMT_IB_NF:
> +		/* Nothing to do, IB_NF by default */
>  		break;

Similarly here, this is a bug fix so should be merged for 2.6.39.

> +	smdk_snd_device = platform_device_alloc("soc-audio", -1);
> +	if (!smdk_snd_device)
> +		return -ENOMEM;

Please use snd_soc_register_card() for new machines rather than the
soc-audio device.  Otherwise the actual driver itself looks good.

WARNING: multiple messages have this Message-ID (diff)
From: broonie@opensource.wolfsonmicro.com (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [alsa-devel] [PATCH 3/3] SoC: SAMSUNG: Add WM8580 PCM Machine driver
Date: Thu, 7 Apr 2011 02:17:04 +0100	[thread overview]
Message-ID: <20110407011704.GA21071@sirena.org.uk> (raw)
In-Reply-To: <1302136270-28776-4-git-send-email-sbkim73@samsung.com>

On Thu, Apr 07, 2011 at 09:31:10AM +0900, Sangbeom Kim wrote:

> +config SND_SOC_SAMSUNG_SMDK_WM8580_PCM
> +	tristate
> +

What is the purpose of this variable?  Just the config for the machine
should be enough.

> @@ -1,12 +1,12 @@
> -# S3c24XX Platform Support
> +# SAMSUNG Platform Support
>  snd-soc-s3c24xx-objs := dma.o
>  snd-soc-s3c24xx-i2s-objs := s3c24xx-i2s.o
>  snd-soc-s3c2412-i2s-objs := s3c2412-i2s.o
>  snd-soc-ac97-objs := ac97.o
>  snd-soc-s3c-i2s-v2-objs := s3c-i2s-v2.o
>  snd-soc-samsung-spdif-objs := spdif.o
> -snd-soc-pcm-objs := pcm.o
> -snd-soc-i2s-objs := i2s.o
> +snd-soc-samsung-pcm-objs := pcm.o
> +snd-soc-samsung-i2s-objs := i2s.o

These changes all look reasonable but they're unrelated to adding the
machine driver and should be split out.

> diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c
> index 38aac7d..9c7e8b4 100644
> --- a/sound/soc/samsung/pcm.c
> +++ b/sound/soc/samsung/pcm.c
> @@ -350,8 +350,8 @@ static int s3c_pcm_set_fmt(struct snd_soc_dai *cpu_dai,
>  	ctl = readl(regs + S3C_PCM_CTL);
>  
>  	switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
> -	case SND_SOC_DAIFMT_NB_NF:
> -		/* Nothing to do, NB_NF by default */
> +	case SND_SOC_DAIFMT_IB_NF:
> +		/* Nothing to do, IB_NF by default */
>  		break;

Similarly here, this is a bug fix so should be merged for 2.6.39.

> +	smdk_snd_device = platform_device_alloc("soc-audio", -1);
> +	if (!smdk_snd_device)
> +		return -ENOMEM;

Please use snd_soc_register_card() for new machines rather than the
soc-audio device.  Otherwise the actual driver itself looks good.

  reply	other threads:[~2011-04-07  1:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-07  0:31 [PATCH 0/3] Add WM8580 PCM Machine driver for Samsung SoCs Sangbeom Kim
2011-04-07  0:31 ` Sangbeom Kim
2011-04-07  0:31 ` [PATCH 1/3] ARM: S5PV210: Add PCM audio support for WM8580 Sangbeom Kim
2011-04-07  0:31   ` Sangbeom Kim
2011-04-07  0:31 ` [PATCH 2/3] ARM: S5P64X0: " Sangbeom Kim
2011-04-07  0:31   ` Sangbeom Kim
2011-04-07  0:31 ` [alsa-devel][PATCH 3/3] SoC: SAMSUNG: Add WM8580 PCM Machine driver Sangbeom Kim
2011-04-07  0:31   ` Sangbeom Kim
2011-04-07  1:17   ` Mark Brown [this message]
2011-04-07  1:17     ` [alsa-devel] [PATCH " Mark Brown
2011-04-07  2:05     ` Sangbeom Kim
2011-04-07  2:05       ` Sangbeom Kim
2011-04-07  3:43   ` [alsa-devel][PATCH " Jassi Brar
2011-04-07  3:43     ` Jassi Brar
2011-04-07  4:44     ` [alsa-devel] [PATCH " Sangbeom Kim
2011-04-07  4:44       ` Sangbeom Kim

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=20110407011704.GA21071@sirena.org.uk \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=ben-linux@fluff.org \
    --cc=jassisinghbrar@gmail.com \
    --cc=kgene.kim@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=lrg@slimlogic.co.uk \
    --cc=sbkim73@samsung.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 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.