From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: alsa-devel@alsa-project.org
Cc: "patch@alsa-project.org" <patch@alsa-project.org>,
"ext sean.mcneil@ti.com" <sean.mcneil@ti.com>
Subject: Re: [PATCH - BT and FM audio for zoom2 1/2] Add clock-only codec to provide McBSP clock source.
Date: Tue, 4 Aug 2009 13:38:03 +0300 [thread overview]
Message-ID: <200908041338.03645.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <1249273755-32620-1-git-send-email-sean.mcneil@ti.com>
On Monday 03 August 2009 07:29:14 ext sean.mcneil@ti.com wrote:
> From: Sean McNeil <sean.mcneil@ti.com>
>
>
> Signed-off-by: Sean McNeil <sean.mcneil@ti.com>
I'm not sure what is the rationale behind..
Can you explain what are you trying to achieve with these changes?
Also, it would be better if you split the patch to a series with smaller patches
(and write some explanation what you are doing and why).
As Mark already pointed out, please use the latest code for basing your patches
(see the first comment below).
Few comments:
> 0x00, /* REG_AVTXL2PGA (0xC) */
> 0x00, /* REG_AVTXR2PGA (0xD) */
> 0x01, /* REG_AUDIO_IF (0xE) */
> - 0x00, /* REG_VOICE_IF (0xF) */
> + 0x04, /* REG_VOICE_IF (0xF) */
The VOICE_IF:VIF_TRI_EN (and the AUDIO_IF:AIF_TRI_EN) bit has been already used
in the latest code (see twl4030_set_tristate and twl4030_voice_set_tristate
functions).
> struct snd_soc_dai twl4030_dai[] = {
> {
> .name = "twl4030",
> .playback = {
> .stream_name = "HiFi Playback",
> - .channels_min = 2,
> + .channels_min = 1,
The HiFi (Audio interface in twl terms) either supports 2 or 4 channels, it does
not support mono audio.
> .channels_max = 4,
> .rates = TWL4030_RATES | SNDRV_PCM_RATE_96000,
> - .formats = TWL4030_FORMATS,},
> + .formats = TWL4030_FORMATS,
> + },
> .capture = {
> .stream_name = "Capture",
> - .channels_min = 2,
> + .channels_min = 1,
Same here, mono is not supported by the codec.
> .channels_max = 4,
> .rates = TWL4030_RATES,
> - .formats = TWL4030_FORMATS,},
> + .formats = TWL4030_FORMATS,
> + },
> .ops = &twl4030_dai_ops,
> },
> {
> @@ -2092,17 +2356,37 @@ struct snd_soc_dai twl4030_dai[] = {
> .playback = {
> .stream_name = "Voice Playback",
> .channels_min = 1,
> - .channels_max = 1,
> + .channels_max = 2,
The Voice interface only supports mono playback. Stereo is only supported on the
capture path.
> .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
> - .formats = SNDRV_PCM_FMTBIT_S16_LE,},
> + .formats = SNDRV_PCM_FMTBIT_S16_LE,
> + },
--
Péter
prev parent reply other threads:[~2009-08-04 10:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-03 4:29 [PATCH - BT and FM audio for zoom2 1/2] Add clock-only codec to provide McBSP clock source sean.mcneil
2009-08-03 4:29 ` [PATCH - BT and FM audio for zoom2 2/2] Change pcm to bluetooth for McBSP3. Add FM transmit for McBSP4 sean.mcneil
2009-08-03 11:01 ` [PATCH - BT and FM audio for zoom2 1/2] Add clock-only codec to provide McBSP clock source Mark Brown
2009-08-04 10:38 ` Peter Ujfalusi [this message]
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=200908041338.03645.peter.ujfalusi@nokia.com \
--to=peter.ujfalusi@nokia.com \
--cc=alsa-devel@alsa-project.org \
--cc=patch@alsa-project.org \
--cc=sean.mcneil@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox