From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: "Koul, Vinod" <vinod.koul@intel.com>
Cc: tiwai@suse.de, alsa-devel@alsa-project.org, alan@linux.intel.com,
Harsha Priya <priya.harsha@intel.com>,
lrg@slimlogic.co.uk
Subject: Re: [PATCH 1/4] ASoC sst v2: Add sn95031 codec driver
Date: Wed, 5 Jan 2011 23:56:52 +0000 [thread overview]
Message-ID: <20110105235652.GB5770@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1294152367-8883-1-git-send-email-vinod.koul@intel.com>
On Tue, Jan 04, 2011 at 08:16:07PM +0530, Koul, Vinod wrote:
A few comments below; depending on what Liam feels I think we can
possibly merge this as-is on the basis that it's going to get future
updates.
> + /* PCM interface config
> + * This sets the pcm rx slot conguration to max 6 slots
> + * for max 4 dais (2 stereo and 2 mono)
> + */
> + snd_soc_write(codec, SN95031_PCM2RXSLOT01, 0x10);
> + snd_soc_write(codec, SN95031_PCM2RXSLOT23, 0x32);
> + snd_soc_write(codec, SN95031_PCM2RXSLOT45, 0x54);
> + /* pcm port setting
> + * This sets the pcm port to slave and clock at 19.2Mhz which
> + * can support 6slots, sampling rate set per stream in hw-params
> + */
> + snd_soc_write(codec, SN95031_PCM1C1, 0x00);
> + snd_soc_write(codec, SN95031_PCM2C1, 0x01);
> + snd_soc_write(codec, SN95031_PCM2C2, 0x0A);
> + snd_soc_write(codec, SN95031_HSMIXER, BIT(0)|BIT(4));
This stuff should all be dynamically configured at runtime - the clocks
should be being managed with set_sysclk() and the slot configuration
with the TDM API or dynamic routing depending on what the actual control
is.
I guess this is OK for now, though.
> + /* soft mute ramp time */
> + snd_soc_write(codec, SN95031_SOFTMUTE, 0x3);
Ideally this should be user controllable.
> + /* dac mode and lineout workaround */
> + snd_soc_write(codec, SN95031_SSR2, 0x10);
> + snd_soc_write(codec, SN95031_SSR3, 0x40);
DAC mode?
> +struct snd_soc_codec_driver sn95031_codec = {
> + .probe = sn95031_codec_probe,
> + .remove = sn95031_codec_remove,
> + .read = sn95031_read,
> + .write = sn95031_write,
> + .set_bias_level = sn95031_set_vaud_bias,
> +};
The formatting of the = should be consistent here.
> +MODULE_DESCRIPTION("ASoC Intel(R) SN95031 codec driver");
I thought you said this was a TI chip? For example...
> + * sn95031.h - TI sn95031 Codec driver
next prev parent reply other threads:[~2011-01-05 23:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 14:46 [PATCH 1/4] ASoC sst v2: Add sn95031 codec driver Koul, Vinod
2011-01-05 23:56 ` Mark Brown [this message]
2011-01-06 6:47 ` Koul, Vinod
2011-01-06 13:45 ` Mark Brown
2011-01-09 11:30 ` Liam Girdwood
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=20110105235652.GB5770@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alan@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=lrg@slimlogic.co.uk \
--cc=priya.harsha@intel.com \
--cc=tiwai@suse.de \
--cc=vinod.koul@intel.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.