All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: Cliff Cai <cliff.cai@analog.com>,
	"uclinux-dist-devel@blackfin.uclinux.org"
	<uclinux-dist-devel@blackfin.uclinux.org>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Yi Li <yi.li@analog.com>
Subject: Re: [PATCH 2/2] ASoC: Blackfin: new machine driver for ADAV801/ADAV803 codecs
Date: Sat, 7 Aug 2010 19:21:32 +0100	[thread overview]
Message-ID: <8508D31F-DADB-4F0B-A140-DF27A05504F2@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1281194864-23311-2-git-send-email-vapier@gentoo.org> (sfid-20100807_162745_613759_835C1C17)

On 7 Aug 2010, at 16:27, Mike Frysinger <vapier@gentoo.org> wrote:

> +config SND_BF5XX_SOC_ADAV80X
> +	tristate "SoC ADAV801/3 Audio support"
> +	depends on SND_BF5XX_I2S && (SPI_MASTER || I2C)
> +	select SND_BF5XX_SOC_I2S
> +	select SND_SOC_ADAV80X
> +	help
> +	  Say Y if you want to add support for ADAV80X SoC audio.

This help text is really not terribly descriptive - this is support for that CODEC on a particular board, not support for the CODEC itself. 

As with the other Blackfin machine drivers you really should look at reporting the particular reference board this is on rather than providing a single driver which assumes a particular hookup for the system. Things like this...

> +	/* For the ADAV80X evaluation board, use the on board crystal
> +	   as XIN, and use XIN as source for PLL1 */
> +	ret = snd_soc_dai_set_pll(codec_dai, ADAV80X_CLK_PLL1,
> +			ADAV80X_CLK_XIN, 27000000, clk);

...aren't going to be true for every system.

> +	/* If you want to use XIN as clock source */
> +	/* ret = snd_soc_dai_set_pll(codec_dai, 0, ADAV80X_CLK_XIN,
> +		27000000, 0); */

This should probably be highlighted by an ifdef or even Kconfig option. Some sort comment explaining why people might want to choose one option or the other would also be useful.

  reply	other threads:[~2010-08-07 18:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-07 15:27 [PATCH 1/2] ASoC: new ADAV801/ADAV803 codec driver Mike Frysinger
2010-08-07 15:27 ` [PATCH 2/2] ASoC: Blackfin: new machine driver for ADAV801/ADAV803 codecs Mike Frysinger
2010-08-07 18:21   ` Mark Brown [this message]
2010-08-07 18:11 ` [PATCH 1/2] ASoC: new ADAV801/ADAV803 codec driver Mark Brown
2010-08-07 19:38   ` [Uclinux-dist-devel] " 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=8508D31F-DADB-4F0B-A140-DF27A05504F2@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=cliff.cai@analog.com \
    --cc=uclinux-dist-devel@blackfin.uclinux.org \
    --cc=vapier@gentoo.org \
    --cc=yi.li@analog.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.