From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: Exporting playback and capture capability to user space Date: Tue, 22 Nov 2011 13:08:23 +0000 Message-ID: <20111122130822.GE21029@opensource.wolfsonmicro.com> References: <4E65E934.2070706@st.com> <20110906180138.GC2924@opensource.wolfsonmicro.com> <4E66EFC3.2070706@st.com> <4EC50DB2.6090009@st.com> <4EC9E656.1050706@st.com> <1321856626.1516.208.camel@vkoul-udesk3> <4ECB24C7.4080908@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id F045B2412D for ; Tue, 22 Nov 2011 14:08:24 +0100 (CET) Content-Disposition: inline In-Reply-To: <4ECB24C7.4080908@st.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Rajeev kumar Cc: Vinod Koul , "alsa-devel@alsa-project.org" , "lrg@slimlogic.co.uk" List-Id: alsa-devel@alsa-project.org On Tue, Nov 22, 2011 at 09:57:51AM +0530, Rajeev kumar wrote: > > static struct snd_soc_dai_driver sta529_dai = { > .rates = SPEAR_PCM_RATES, > .formats = SPEAR_PCM_FORMAT, This looks wrong... > cpu dai: In case of cpu dai, we are passing the playback and capture > capability from the platform code and depending on the capability we > are filling the cpu dai structure in probe function, like Why are you doing this? Your driver should export the capabilities of the hardware and let the machine driver pick any specific configuration that's needed.