From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752417AbcDFN6b (ORCPT ); Wed, 6 Apr 2016 09:58:31 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:40602 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751967AbcDFN6a (ORCPT ); Wed, 6 Apr 2016 09:58:30 -0400 Message-ID: <1459951105.28748.12.camel@mtksdaap41> Subject: Re: [PATCH] ASoC: mediatek: Add second I2S on mt8173-rt5650 machine driver From: PC Liao To: Mark Brown CC: "tiwai@suse.de" , srv_heupstream , "linux-mediatek@lists.infradead.org" , "s.hauer@pengutronix.de" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "alsa-devel@alsa-project.org" , "Koro Chen =?UTF-8?Q?=28=E9=99=B3=E6=80=9D=E7=BF=B0=29?=" Date: Wed, 6 Apr 2016 21:58:25 +0800 In-Reply-To: <20160402170404.GG2350@sirena.org.uk> References: <1458877325-33980-1-git-send-email-pc.liao@mediatek.com> <20160328191115.GE2350@sirena.org.uk> <1459258103.3747.7.camel@mtksdaap41> <20160329160703.GN2350@sirena.org.uk> <1459479052.24414.3.camel@mtksdaap41> <20160402170404.GG2350@sirena.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On Sun, 2016-04-03 at 01:04 +0800, Mark Brown wrote: > On Fri, Apr 01, 2016 at 10:50:52AM +0800, PC Liao wrote: > > On Wed, 2016-03-30 at 00:07 +0800, Mark Brown wrote: > > > > This sort of arrangement is very common - it's often needed to get > > > different sample rates for playback and capture. Normally it'd be > > > represented in the DT by having the two DAI links specified normally and > > > then having the driver look at the DT to see what's connected to work > > > out what mode to use. > > > Could you please suggest the reference driver about this? > > Any driver that can identify an individual DAI within a device by using > sound-dai references, even simple-card does this. Thanks for suggestion. This machine driver is based on DPCM. Should I add BE DAI and use DAPM, then using ucm-config(mixer control) to control the path? Or, do I think the wrong direction? Thanks!