From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Mark Brown <broonie@kernel.org>, Jyri Sarha <jsarha@ti.com>
Cc: liam.r.girdwood@linux.intel.com, detheridge@ti.com,
alsa-devel@alsa-project.org, lars@metafoo.de
Subject: Re: [PATCH v3] ASoC: davinci-evm: Add AM43xx-EPOS-EVM audio support
Date: Mon, 10 Mar 2014 13:31:15 +0200 [thread overview]
Message-ID: <531DA283.1020402@ti.com> (raw)
In-Reply-To: <20140310110926.GX28112@sirena.org.uk>
On 03/10/2014 01:09 PM, Mark Brown wrote:
> On Mon, Mar 10, 2014 at 12:49:56PM +0200, Jyri Sarha wrote:
>> On 03/09/2014 10:11 AM, Mark Brown wrote:
>
>>> No, it shouldn't do any inversion. If inversion is required one of the
>>> drivers is buggy, they are CODEC bit master and CPU bit master so for a
>>> CPU driver the sense should be inverted when parsing.
>
>> Yes, that is the problem. The same code in simple-card parses the
>> codec node and cpu-dai node and they produce the same
>> SND_SOC_DAIFMT_C??_C?? flags for both codec and cpu-dai drivers.
>
> Sorry, thinko above - the master flags are specified in terms of the
> CODEC. Anything interpreting them that isn't a CODEC needs to be
> inverting the sense.
Exactly, CBM_CFM means that the codec is the master of both clocks. Codec is
configured as master and the cpu side is configured as slave.
But the issue is that with simple card (when you want to have the codec as
master for both clocks):
simple-audio-card,codec {
sound-dai = <&aic3106>;
bitclock-master;
frame-master;
};
simple-audio-card,cpu {
sound-dai = <&mcasp1 0>;
};
The codec will get CBM_CFM, however the cpu_dai will end up having CBS_CFS
(since *-master is not specified in the dts).
So when the simple card parses the master/slave configuration it has to invert
the cpu_dai settings it got back from snd_soc_of_parse_daifmt() to get it right.
Since:
simple-audio-card,codec {
sound-dai = <&aic3106>;
};
simple-audio-card,cpu {
sound-dai = <&mcasp1 0>;
bitclock-master;
frame-master;
};
Will end up as: codec is CBS_CFS and cpu_dai as CBM_CFM which means that both
cpu and codec is supposed to be slave...
--
Péter
next prev parent reply other threads:[~2014-03-10 11:31 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-04 13:54 [PATCH v2 0/4] AM43xx-ePOS-EVM audio support with TLV320AIC31XX driver Jyri Sarha
2014-03-04 13:54 ` [PATCH v2 2/4] ASoC: davinci-evm: Add AM43xx-EPOS-EVM audio support Jyri Sarha
2014-03-04 14:12 ` Lars-Peter Clausen
[not found] ` <5315DF41.1090302-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2014-03-04 15:40 ` [alsa-devel] " Jyri Sarha
2014-03-04 15:43 ` [PATCH v3] " Jyri Sarha
2014-03-05 1:42 ` Mark Brown
2014-03-07 12:45 ` Jyri Sarha
2014-03-09 8:11 ` Mark Brown
2014-03-10 10:49 ` Jyri Sarha
2014-03-10 11:09 ` Mark Brown
2014-03-10 11:31 ` Peter Ujfalusi [this message]
2014-03-10 11:57 ` Mark Brown
[not found] ` <cover.1393941102.git.jsarha-l0cyMroinI0@public.gmane.org>
2014-03-04 13:54 ` [PATCH v2 1/4] ASoC: tlv320aic31xx: Add basic codec driver implementation Jyri Sarha
[not found] ` <ba9718f573ca9195c80075a15fe114e0d4557da0.1393941102.git.jsarha-l0cyMroinI0@public.gmane.org>
2014-03-05 1:55 ` Mark Brown
[not found] ` <20140305015501.GS13126-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-03-07 12:53 ` Jyri Sarha
[not found] ` <5319C13B.4090101-l0cyMroinI0@public.gmane.org>
2014-03-09 8:12 ` Mark Brown
[not found] ` <20140309081229.GM28112-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-03-10 8:47 ` Jyri Sarha
2014-03-04 13:54 ` [PATCH v2 3/4] ASoC: davinci: Add SND_AM43XX_SOC_EPOS_EVM build option Jyri Sarha
2014-03-04 13:54 ` [PATCH v2 4/4] ASoC: tlv320aic32x4: Sort Makefile in alphabetic order Jyri Sarha
[not found] ` <80b0f9ecd29b8bfb52fed22a0ca059591f89683d.1393941102.git.jsarha-l0cyMroinI0@public.gmane.org>
2014-03-05 3:28 ` Mark Brown
[not found] ` <20140305032808.GW13126-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-03-05 7:14 ` Jyri Sarha
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=531DA283.1020402@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=detheridge@ti.com \
--cc=jsarha@ti.com \
--cc=lars@metafoo.de \
--cc=liam.r.girdwood@linux.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.