From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: Scott Jiang <scott.jiang@analog.com>,
alsa-devel@alsa-project.org, Lars-Peter Clausen <lars@metafoo.de>,
Barry Song <barry.song@analog.com>,
device-drivers-devel@blackfin.uclinux.org,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: [PATCH 8/8] ASoC: AD183x: add support for more multiple parts
Date: Wed, 15 Jun 2011 15:53:21 +0100 [thread overview]
Message-ID: <20110615145321.GB2806@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1308087268-11464-8-git-send-email-vapier@gentoo.org>
On Tue, Jun 14, 2011 at 05:34:28PM -0400, Mike Frysinger wrote:
This is OK but some nits/future improvements:
> +static const struct snd_kcontrol_new ad1835a_ad1837a_snd_controls[] = {
> + /* DAC volume control */
> + SOC_DOUBLE_R("DAC1 Volume", AD183X_DAC_L1_VOL,
> + AD183X_DAC_R1_VOL, 0, 0x3FF, 0),
It would be much better to provide dB information but OK.
> + /* DAC de-emphasis */
> + SOC_ENUM("Playback Deemphasis", ad183x_deemp_enum),
OK for now but what modern drivers are doing here is making the
deemphasis switch a switch at the application layer then automatically
selecting the sample rate to use for the filter based on the active
sample rate.
> @@ -45,17 +125,17 @@ static const struct snd_kcontrol_new ad183x_snd_controls[] = {
>
> /* ADC switch control */
> SOC_DOUBLE("ADC1 Switch", AD183X_ADC_CTRL2, AD183X_ADCL1_MUTE,
> - AD183X_ADCR1_MUTE, 1, 1),
> + AD183X_ADCR1_MUTE, 1, 1),
Indentation changes should really be in a separate patch if you end up
needing to respin the series.
> + if (!strcmp(chip_name, "ad1835a") || !strcmp(chip_name, "ad1837a"))
> + ad183x->chl_ctrl = &ad1835a_ad1837a_chl_ctrls;
> + else if (!strcmp(chip_name, "ad1838a") || !strcmp(chip_name, "ad1839a"))
> + ad183x->chl_ctrl = &ad1838a_ad1839a_chl_ctrls;
> + else if (!strcmp(chip_name, "ad1836"))
> + ad183x->chl_ctrl = &ad1836_chl_ctrls;
> + else {
> + dev_err(&spi->dev, "unsupported chip type: %s\n", chip_name);
> + return -EINVAL;
Someone really ought to get around to fixing this in the SPI subsystem
:/
next prev parent reply other threads:[~2011-06-15 14:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 21:34 [PATCH 1/8] ASoC: AD1836: drop unnecessary spi register check Mike Frysinger
2011-06-14 21:34 ` [PATCH 2/8] ASoC: AD1836: drop hardcoded register init Mike Frysinger
2011-06-14 21:34 ` [PATCH 3/8] ASoC: AD1836: fix intermixed tab/space indentation Mike Frysinger
2011-06-14 21:34 ` [PATCH 4/8] ASoC: AD1836: use local control_type field Mike Frysinger
2011-06-14 21:34 ` [PATCH 5/8] ASoC: AD1836: fix codec name Mike Frysinger
2011-06-14 21:34 ` [PATCH 6/8] ASoC: AD183x: rename from ad1836 to support more codecs Mike Frysinger
2011-06-14 21:34 ` [PATCH 7/8] ASoC: AD183x: rename suspend/resume funcs Mike Frysinger
2011-06-14 21:34 ` [PATCH 8/8] ASoC: AD183x: add support for more multiple parts Mike Frysinger
2011-06-15 14:53 ` Mark Brown [this message]
2011-06-14 21:55 ` [PATCH 1/8] ASoC: AD1836: drop unnecessary spi register check Lars-Peter Clausen
2011-06-15 14:40 ` [Device-drivers-devel] " Mike Frysinger
2011-06-15 14:56 ` Lars-Peter Clausen
2011-06-15 15:48 ` Mike Frysinger
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=20110615145321.GB2806@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=barry.song@analog.com \
--cc=device-drivers-devel@blackfin.uclinux.org \
--cc=lars@metafoo.de \
--cc=lrg@slimlogic.co.uk \
--cc=scott.jiang@analog.com \
--cc=vapier@gentoo.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.