All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org,
	Brett Saunders <breton.saunders@ntlworld.com>,
	Geoffrey Wossum <geoffrey@pager.net>
Subject: Re: [PATCH 1/3] ASoC: Add WM8510 driver
Date: Wed, 4 Jun 2008 20:24:56 +0100	[thread overview]
Message-ID: <20080604192455.GA10244@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <s5hiqwp401i.wl%tiwai@suse.de>

On Wed, Jun 04, 2008 at 06:50:17PM +0200, Takashi Iwai wrote:
> Mark Brown wrote:

> > +static const u16 wm8510_reg[WM8510_CACHEREGNUM] = {
> > +    0x0000, 0x0000, 0x0000, 0x0000,

> Use tabs here.

> > +static const char *wm8510_companding[] = {"Off", "NC", "u-law", "A-law" };
> > +static const char *wm8510_deemp[] = {"None", "32kHz", "44.1kHz", "48kHz" };
> > +static const char *wm8510_alc[] = {"ALC", "Limiter" };

> No space after '{' but a space before '}'?  Oh I'm too picky...

Please fix checkpatch for stuff like this :)

> > +	case SNDRV_PCM_RATE_44100:
> > +		break;

> Just to be sure -- No 48000 case?

> > +#define WM8510_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_11025 |\
> > +		SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_22050 |\
> > +		SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000)
> 
> ... since I find it here.

Yes (well, it's the same as the 41000 case - nothing to set).  I'll add
an empty case for clarity.

> > +#define WM8510_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
> > +	SNDRV_PCM_FMTBIT_S24_LE)

> Don't you need SNDRV_PCM_FMTBIT_S32_LE?  It's handled in
> wm8510_pcm_hw_params().

Should do, yes.

> Also, is the patch author you or Liam?

We've both worked on the driver; Liam did the original driver and I've
done some fairly invasive changes to it since then, particularly to the
input paths.  The Author: is showing as me since that's what git did
when I pulled the driver over into mainline for submission.

  reply	other threads:[~2008-06-04 19:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-04 16:33 [PATCH 1/3] ASoC: Add WM8510 driver Mark Brown
     [not found] ` <1212597211-14495-2-git-send-email-broonie@opensource.wolfsonmicro.com>
2008-06-04 16:33   ` [PATCH 3/3] Revised AT32 ASoC Patch Mark Brown
2008-06-04 16:50 ` [PATCH 1/3] ASoC: Add WM8510 driver Takashi Iwai
2008-06-04 19:24   ` Mark Brown [this message]
2008-06-04 21:38 ` Takashi Iwai
2008-06-05  8:47   ` Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2008-06-05  8:54 Mark Brown
2008-06-06 10:36 ` Takashi Iwai
2008-06-05 12:49 Mark Brown
2008-06-05 14:17 ` Geoffrey Wossum
2008-06-05 14:46   ` Mark Brown
2008-06-06 16:12     ` 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=20080604192455.GA10244@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=breton.saunders@ntlworld.com \
    --cc=geoffrey@pager.net \
    --cc=tiwai@suse.de \
    /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.