All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Liam Girdwood <lgirdwood@gmail.com>, Simon <horms@verge.net.au>,
	Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>
Subject: Re: How to specify data format if playback/capture were different ?
Date: Wed, 22 May 2013 13:41:09 +0200	[thread overview]
Message-ID: <519CAED5.3070201@metafoo.de> (raw)
In-Reply-To: <87fvxfl7hx.wl%kuninori.morimoto.gx@renesas.com>

On 05/22/2013 10:54 AM, Kuninori Morimoto wrote:
> 
> Hi Lars
> 
>>> struct snd_soc_dai_driver ak4554_playback_dai = {
>>> 	.name = "ak4554-playback",
>>> 	.playback = {
>>> 		...
>>> 	},
>>> }
>>>
>>> struct snd_soc_dai_driver ak4554_captrure_dai = {
>>> 	.name = "ak4554-captrure",
>>> 	.capture = {
>>> 		...
>>> 	},
>>> };
>>
>> You'll want to put both DAIs into an array which you can pass to
>> snd_soc_register_codec, but otherwise it looks ok.
>>
>>>
>>> But, ak4554 needs .symmetric_rates between playback <--> capture.
>>> Is it possible ?
>>> Or, am I misunderstanding ?
>>
>> Yes, that won't work, you'd have to implement this by hand.
> 
> OK, I understand, thank you.
> 
> But do you know why snd_soc_dai_set_fmt() doesn't support
> "setting for playback/capture only" ?
> Historical reason or system reason ?

I think it is rather unusual that you want or need to set different formats
for capture and playback. Especially when BCLK and LRCLK are shared. That's
probably why it isn't supported yet.

- Lars

  reply	other threads:[~2013-05-22 11:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21  2:47 How to specify data format if playback/capture were different ? Kuninori Morimoto
2013-05-21 11:58 ` Lars-Peter Clausen
2013-05-22  1:02   ` Kuninori Morimoto
2013-05-22  1:12     ` Kuninori Morimoto
2013-05-22  8:43       ` Lars-Peter Clausen
2013-05-22  8:54         ` Kuninori Morimoto
2013-05-22 11:41           ` Lars-Peter Clausen [this message]
2013-05-24  3:18             ` Kuninori Morimoto
2013-05-25 20:03               ` Mark Brown

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=519CAED5.3070201@metafoo.de \
    --to=lars@metafoo.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=horms@verge.net.au \
    --cc=kuninori.morimoto.gx@gmail.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=lgirdwood@gmail.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.