From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rajeev kumar Subject: Re: Linux Kernel-3.5 crashed as dapm is not supported by codec Date: Fri, 9 Nov 2012 16:47:07 +0530 Message-ID: <509CE633.1070002@st.com> References: <505AFB0B.7010306@st.com> <20120920114951.GJ17666@opensource.wolfsonmicro.com> <505BE5BB.5010008@st.com> <5098E929.7040404@st.com> <509BC3EC.4030503@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eu1sys200aog115.obsmtp.com (eu1sys200aog115.obsmtp.com [207.126.144.139]) by alsa0.perex.cz (Postfix) with ESMTP id 13D83261672 for ; Fri, 9 Nov 2012 12:17:13 +0100 (CET) In-Reply-To: <509BC3EC.4030503@ti.com> 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: =?ISO-8859-1?Q?P=E9ter_Ujfalusi?= Cc: "alsa-devel@alsa-project.org" , Mark Brown List-Id: alsa-devel@alsa-project.org Hello Peter, On 11/8/2012 8:08 PM, P=E9ter Ujfalusi wrote: > On 11/06/2012 11:40 AM, Rajeev kumar wrote: >> Please find below the implementation for dapm. >> >> static const struct snd_soc_dapm_widget sta529_dapm_widgets[] =3D { >> SND_SOC_DAPM_DAC("DAC", "Play", SND_SOC_NOPM , 0, 0), >> SND_SOC_DAPM_ADC("ADC", "Capture", SND_SOC_NOPM, 0, 0), >> SND_SOC_DAPM_OUTPUT("HPL"), >> SND_SOC_DAPM_OUTPUT("HPR"), >> SND_SOC_DAPM_OUTPUT("SPKL"), >> SND_SOC_DAPM_OUTPUT("SPKR"), >> SND_SOC_DAPM_INPUT("MIC1"), >> }; >> >> static const struct snd_soc_dapm_route sta529_audio_map[] =3D { >> {"DAC", NULL, "output"}, >> {"ADC", NULL, "input"}, >> {"HPL", NULL, "HP Left Out"}, >> {"HPR", NULL, "HP Right Out"}, >> {"SPKL", NULL, "SPK Left Out"}, >> {"SPKR", NULL, "SPK Right Out"}, >> }; > > If this is all you have for DAPM routing I just wonder what the core will= do > with these... I mean you don't appear to have valid routing: no sign of > "output", "input", "HP Left Out", etc. > > But it is really odd that you can not have at least some power control bi= ts > along the paths. Yes I have a single bit in a register which will do power bridge = OFF/ONN. Right now depending on biasing level this bit is getting = manipulated. With the DAPM macros how can I control this bit? Please share your opinion. > > This would look odd also but at least connects the widgets: > static const struct snd_soc_dapm_route sta529_audio_map[] =3D { > {"HPL", NULL, "DAC"}, > {"HPR", NULL, "DAC"}, > {"ADC", NULL, "MIC1"}, > }; > > Don't you have messages during boot or module loading about DAPM route er= ror? > Right now I am working on it. Yes with the given sta529_dapm_widgets and = audio_map I am getting "Failed to add route output->DAC". I have to work = on this. With the sta529_audio_map suggested by you, There is no any error I am = getting during boot time. Thanks for your valuable suggestion. As I dont have any event based dapm control, how can I test my dapm = support whether it is working or not? Best Regards Rajeev