From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kuninori Morimoto Subject: How to specify data format if playback/capture were different ? Date: Mon, 20 May 2013 19:47:50 -0700 (PDT) Message-ID: <87ppwl3v71.wl%kuninori.morimoto.gx@renesas.com> 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-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by alsa0.perex.cz (Postfix) with ESMTP id DF67D2616E7 for ; Tue, 21 May 2013 04:47:52 +0200 (CEST) Received: by mail-pa0-f48.google.com with SMTP id kp6so221336pab.21 for ; Mon, 20 May 2013 19:47:51 -0700 (PDT) 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: Mark Brown Cc: Linux-ALSA , Simon , Liam Girdwood , Kuninori Morimoto List-Id: alsa-devel@alsa-project.org Hi Mark, and ALSA ML Now, I'm creating ak4554 AD/DA. My question is about data format. If my understand is correct, we can specify cpu/codec deivce data format by using snd_soc_dai_set_fmt(dai, SND_SOC_DAIFMT_xxx); But, ak4554 case, data formats are playback : SND_SOC_DAIFMT_RIGHT_J capture : SND_SOC_DAIFMT_LEFT_J and, it can't exchange this data format. CPU driver should set these information for ak4554 when playback/capture. Then, how to specify these data format on ALSA SoC ? Best regards --- Kuninori Morimoto