From: Kuninori Morimoto Subject: simle-card DT style for DPCM Date: Sun, 31 Aug 2014 17:35:51 -0700 (PDT) Message-ID: <877g1o18ka.wl%kuninori.morimoto.gx@gmail.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-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by alsa0.perex.cz (Postfix) with ESMTP id 0BC54261B25 for ; Mon, 1 Sep 2014 02:35:53 +0200 (CEST) Received: by mail-pa0-f45.google.com with SMTP id bj1so10851854pad.18 for ; Sun, 31 Aug 2014 17:35:52 -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 , Lars-Peter Clausen Cc: Linux-ALSA , Kuninori Morimoto List-Id: alsa-devel@alsa-project.org Hi Mark, Lars I want to add DPCM support on simle-card driver. 1st reason is for "sampling-rate-convert". And, 2nd reason, our customer want to use 2 cpu 1 codec style. It works in my local environment. but, I need to know what is the good style for DT. I guss Xiubo's clean up patch seems good for me, so, below approach is based on his style. What do you think this ? -- normal style -- sound { compatible = "simple-audio-card"; ... simple-audio-card,dai-link { ... cpu { ... }; codec { ... }; } } -- use DPCM for sampling-rate-convert -- sound { compatible = "simple-audio-card"; ... simple-audio-card,dai-link { ... cpu { ... }; codec { ... fixed-sampling-rate = ; }; } } FE-cpu : cpu FE-codec : dummy BE-cpu : dummy BE-codec : codec -- use DPCM for multi DAI -- sound { compatible = "simple-audio-card"; ... simple-audio-card,dai-link { ... cpu@0 { ... }; cpu@1 { ... }; codec@1 { ... }; } } FE-cpu : cpu@0 FE-codec : dummy BE-cpu : cpu@1 BE-codec : codec@1 Best regards --- Kuninori Morimoto