From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kuninori Morimoto Subject: Re: How to specify data format if playback/capture were different ? Date: Wed, 22 May 2013 01:54:38 -0700 (PDT) Message-ID: <87fvxfl7hx.wl%kuninori.morimoto.gx@renesas.com> References: <87ppwl3v71.wl%kuninori.morimoto.gx@renesas.com> <519B615B.5070409@metafoo.de> <87y5b7ltcd.wl%kuninori.morimoto.gx@renesas.com> <87wqqrlswy.wl%kuninori.morimoto.gx@renesas.com> <519C8516.9050307@metafoo.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by alsa0.perex.cz (Postfix) with ESMTP id 233A6260310 for ; Wed, 22 May 2013 10:54:40 +0200 (CEST) Received: by mail-pd0-f170.google.com with SMTP id x10so1373038pdj.15 for ; Wed, 22 May 2013 01:54:40 -0700 (PDT) In-Reply-To: <519C8516.9050307@metafoo.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Lars-Peter Clausen Cc: Linux-ALSA , Mark Brown , Liam Girdwood , Simon , Kuninori Morimoto List-Id: alsa-devel@alsa-project.org 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 ? Can I try it ? Best regards --- Kuninori Morimoto