Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai-l3A5Bk7waGM@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Florian Meier <florian.meier-oZ8rN/sblLk@public.gmane.org>,
	Liam Girdwood <lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org,
	linaro-kernel-cunTk1MwBs8s++Sfvej+rw@public.gmane.org,
	Mark Brown <broonie-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Subject: Re: [alsa-devel] [PATCH] ASoC: pcm512x: Add PCM512x driver
Date: Thu, 06 Feb 2014 13:51:33 +0100	[thread overview]
Message-ID: <s5hr47gv1yi.wl%tiwai@suse.de> (raw)
In-Reply-To: <1391689575-4039-1-git-send-email-broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

At Thu,  6 Feb 2014 12:26:15 +0000,
Mark Brown wrote:
> diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c
(snip)
> +static const char *pcm512x_dsp_program_texts[] = {
> +	"FIR interpolation with de-emphasis",
> +	"Low latency IIR with de-emphasis",
> +	"High attenuation with de-emphasis",
> +	"Ringing-less low latency FIR",
> +};
> +
> +static const unsigned int pcm512x_dsp_program_values[] = {
> +	1,
> +	2,
> +	3,
> +	5,
> +	7,
> +};

The numbers of items in pcm512x_dsp_program_texts[] and _values[]
don't match.

> +static const SOC_VALUE_ENUM_SINGLE_DECL(pcm512x_dsp_program,
> +					PCM512x_DSP_PROGRAM, 0, 0x1f,
> +					pcm512x_dsp_program_texts,
> +					pcm512x_dsp_program_values);
> +
> +static const char *pcm512x_clk_missing_text[] = {
> +	"1s", "2s", "3s", "4s", "5s", "6s", "7s", "8s"
> +};
> +
> +static const struct soc_enum pcm512x_clk_missing =
> +	SOC_ENUM_SINGLE(PCM512x_CLKDET, 0,  7, pcm512x_clk_missing_text);

Isn't it 8?

> +
> +static const char *pcm512x_autom_text[] = {
> +	"21ms", "106ms", "213ms", "533ms", "1.07s", "2.13s", "5.33s", "10.66s"
> +};
> +
> +static const struct soc_enum pcm512x_autom_l =
> +	SOC_ENUM_SINGLE(PCM512x_AUTO_MUTE, PCM512x_ATML_SHIFT, 7,
> +			pcm512x_autom_text);
> +
> +static const struct soc_enum pcm512x_autom_r =
> +	SOC_ENUM_SINGLE(PCM512x_AUTO_MUTE, PCM512x_ATMR_SHIFT, 7,
> +			pcm512x_autom_text);

Ditto.


Takashi
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-02-06 12:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06 12:26 [PATCH] ASoC: pcm512x: Add PCM512x driver Mark Brown
     [not found] ` <1391689575-4039-1-git-send-email-broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-02-06 12:51   ` Takashi Iwai [this message]
     [not found]     ` <s5hr47gv1yi.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2014-02-06 13:07       ` [alsa-devel] " Mark Brown
     [not found]         ` <20140206130735.GP32298-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-02-06 13:12           ` Takashi Iwai
     [not found]             ` <s5hob2kv0z3.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2014-02-06 13:16               ` Lars-Peter Clausen
     [not found]                 ` <52F38B27.1040502-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2014-02-06 13:19                   ` Takashi Iwai
2014-02-06 13:50               ` Mark Brown
2014-02-18 11:22         ` Takashi Iwai
2014-02-23  3:07           ` Mark Brown
2014-02-23  8:29             ` Takashi Iwai
2014-02-24  1:29               ` Mark Brown
2014-02-06 13:24   ` [alsa-devel] " Lars-Peter Clausen
     [not found]     ` <52F38CF7.7060306-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2014-02-06 14:22       ` 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=s5hr47gv1yi.wl%tiwai@suse.de \
    --to=tiwai-l3a5bk7wagm@public.gmane.org \
    --cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=broonie-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=florian.meier-oZ8rN/sblLk@public.gmane.org \
    --cc=lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linaro-kernel-cunTk1MwBs8s++Sfvej+rw@public.gmane.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