All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: "Li.Xiubo@freescale.com" <Li.Xiubo@freescale.com>,
	Mark Brown <broonie@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>
Cc: "moinejf@free.fr" <moinejf@free.fr>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"kuninori.morimoto.gx@renesas.com"
	<kuninori.morimoto.gx@renesas.com>
Subject: Re: [PATCH] ASoC: simple-card: Fix property name for simple-audio-card, format
Date: Mon, 10 Mar 2014 11:54:38 +0200	[thread overview]
Message-ID: <531D8BDE.9070507@ti.com> (raw)
In-Reply-To: <ca5458a9aa144c20b8c5987fa29f74a8@BY2PR03MB505.namprd03.prod.outlook.com>

On 03/10/2014 04:25 AM, Li.Xiubo@freescale.com wrote:
>> --- a/sound/soc/generic/simple-card.c
>> +++ b/sound/soc/generic/simple-card.c
>> @@ -165,7 +165,7 @@ static int asoc_simple_card_parse_of(struct device_node
>> *node,
>>  	snd_soc_of_parse_card_name(&priv->snd_card, "simple-audio-card,name");
>>
>>  	/* get CPU/CODEC common format via simple-audio-card,format */
>> -	priv->daifmt = snd_soc_of_parse_daifmt(node, "simple-audio-card,") &
>> +	priv->daifmt = snd_soc_of_parse_daifmt(node, "simple-audio-card,format")
> 
> 
> @Peter
> 
> Sorry, the interface of snd_soc_of_parse_daifmt(struct device_node *np,
> const char *prefix), it's intended not only to parse the 'XXX,format', but also
> 'XXX,continuous-clock', 'XXX, bitclock-inversion', 'XXX, frame-inversion',
> 'XXX,bitclock-master' and 'XXX,frame-master' at the same time.

Yes, I overlooked that. I have not checked the snd_soc_of_parse_daifmt() before.

> Maybe just the comment here is not very correct.

Probably it would be better to re-word it since the code at this point only
interested on the i2s coding and the bit/frame inversion.

> Thanks,
> 
> --
> Best Regards,
> Xiubo
> 
> 
>> &
>>  		(SND_SOC_DAIFMT_FORMAT_MASK | SND_SOC_DAIFMT_INV_MASK);
>>
>>  	/* off-codec widgets */
>> --
>> 1.9.0
>>
>>
> 


-- 
Péter

      parent reply	other threads:[~2014-03-10  9:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-07 12:18 [PATCH] ASoC: simple-card: Fix property name for simple-audio-card, format Peter Ujfalusi
2014-03-09  8:41 ` Mark Brown
2014-03-10  2:25 ` Li.Xiubo
2014-03-10  7:53   ` Mark Brown
2014-03-10  9:54   ` 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=531D8BDE.9070507@ti.com \
    --to=peter.ujfalusi@ti.com \
    --cc=Li.Xiubo@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=lgirdwood@gmail.com \
    --cc=moinejf@free.fr \
    /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.