From: "Vladimir A. Barinov" <vbarinov@ru.mvista.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: liam.girdwood@wolfsonmicro.com, alsa-devel@alsa-project.org
Subject: Re: [PATCH] ASoC TLV320AIC3X codec driver
Date: Wed, 14 Nov 2007 16:04:31 +0300 [thread overview]
Message-ID: <473AF25F.5060305@ru.mvista.com> (raw)
In-Reply-To: <s5hhcjpfecc.wl%tiwai@suse.de>
Hello Takashi,
Thank you for the review.
Takashi Iwai wrote:
> At Tue, 13 Nov 2007 22:41:25 +0300,
> Vladimir Barinov wrote:
>
>> --- /dev/null
>> +++ linux-2.6.24.rc2.alsa/sound/soc/codecs/tlv320aic3x.c
>>
> (snip)
>
>> +
>> +struct snd_soc_codec_device soc_codec_dev_aic3x;
>>
>
> Do you need this here? It's defined in the later position.
>
You are right. Thanks for pointing to this. That is an artefact of the
driver that I based on.
>
>> +/*
>> + * All input lines are connected when !0xf and disconnected with 0xf bit field,
>>
>
> Please keep the line within 80 chars. Try to run checkpatch.pl in
> linuxkernel/scripts for checking such minor coding-style issues.
>
But this line is less then 80 chars :)
I've applied checkpatch.pl before sending the patch. The driver really
has 3 lines with 80 chars warning,
but they are less then 82 char. It's in the codec interconnection map
for DAPM. If that is a strong demand with
80 chars _warning_ then I'll try to rename the mixers/path/endpoint
names to match, if not then the code will be
more understandable.
That lines are:
+ {"Right HPCOM Mux", "differential of HPROUT", "Right Line2
Bypass Mixer"},
+ {"Right HPCOM Mux", "differential of HPLCOM", "Right Line2
Bypass Mixer"},
If I'll split it with 2 lines each then will it be good to watch in
accordance with DAPM usage strategy?
Destination Widget <=== Path Name <=== Source Widget
>
>> +static const char *aic3x_left_dac_mux[] = { "DAC_L1", "DAC_L3", "DAC_L2" };
>> +static const char *aic3x_right_dac_mux[] = { "DAC_R1", "DAC_R3", "DAC_R2" };
>> +static const char *aic3x_left_hpcom_mux[] =
>> + { "differential of HPLOUT", "constant VCM", "single-ended" };
>> +static const char *aic3x_right_hpcom_mux[] =
>> + { "differential of HPROUT", "constant VCM", "single-ended",
>> + "differential of HPLCOM", "external feedback" };
>> +static const char *aic3x_linein_mode_mux[] = { "single-ended", "differential" };
>>
>
> Ditto.
>
Ditto :)
These lines are less then 80 chars.
>
>> +#define AIC3X_RATES SNDRV_PCM_RATE_8000_96000
>> +#define AIC3X_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
>> + SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
>>
>
> Are you sure that it's FMTBIT_S24_LE? It's not packed in 3 bytes but
> uses lower 3 bytes of 4 bytes frame.
>
>
Aic3x supports 16/20/24/32 bits data word length and in accordance with
aic33 documentation the
number of clocks per half-frame for each channel are equal to exact
number of bits of the word.
Unfortunately, now I have no h/w to test 24bits mode.
>
>> Index: linux-2.6.24.rc2.alsa/sound/soc/codecs/Kconfig
>> ===================================================================
>> --- linux-2.6.24.rc2.alsa.orig/sound/soc/codecs/Kconfig
>> +++ linux-2.6.24.rc2.alsa/sound/soc/codecs/Kconfig
>> @@ -37,3 +37,6 @@ config SND_SOC_CS4270_VD33_ERRATA
>> bool
>> depends on SND_SOC_CS4270
>>
>> +config SND_SOC_TLV320AIC3X
>> + tristate
>> + depends on SND_SOC
>>
>
> Currently, there is a known problem with dependency on I2C over soc
> codecs drivers. If CONFIG_I2C=m and CONFIG_SND_SOC_*=y, you'll get
> unresolved symbols.
>
> I don't know how to resolve this issue right now. But, the drivers
> that support *only* I2C right now can add "depends on I2C" to its
> Kconfig. That doesn't work for CS4270 which may work without I2C as
> standalone mode, though.
>
Ok, will add I2C dependency.
Regards,
Vladimir
next prev parent reply other threads:[~2007-11-14 13:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-13 19:41 [PATCH] ASoC TLV320AIC3X codec driver Vladimir Barinov
[not found] ` <s5hhcjpfecc.wl%tiwai@suse.de>
2007-11-14 13:04 ` Vladimir A. Barinov [this message]
2007-11-14 9:24 ` Takashi Iwai
2007-11-14 14:22 ` Vladimir A. Barinov
2007-11-14 14:53 ` [PATCH] ASoC TLV320AIC3X codec driver (take#2) Vladimir Barinov
2007-11-14 13:21 ` Takashi Iwai
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=473AF25F.5060305@ru.mvista.com \
--to=vbarinov@ru.mvista.com \
--cc=alsa-devel@alsa-project.org \
--cc=liam.girdwood@wolfsonmicro.com \
--cc=tiwai@suse.de \
/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.