[alsa-devel] Configuring an audio path within ALSA

Vinod Koul vinod.koul at linux.intel.com
Tue Jun 26 11:43:18 CEST 2012


On Tue, 2012-06-26 at 13:22 +0530, rashmi narayan wrote:
Dont TOP Post!!

> Thank you Patrick .
> 
> Currently my codec driver SGTL5000.c has the following audio map
> static const struct snd_soc_dapm_route audio_map[] = {
>  {"ADC Mux", "LINE_IN", "LINE_IN"},
> {"ADC Mux", "MIC_IN", "MIC_IN"},
>  {"ADC", NULL, "ADC Mux"},
> {"DAC Mux", "DAC", "DAC"},
>  {"DAC Mux", "LINE_IN", "LINE_IN"},
> {"LO", NULL, "DAC"},
>  {"HP", NULL, "DAC Mux"},
> {"LINE_OUT", NULL, "LO"},
>  {"HP_OUT", NULL, "HP"},
> };
> 
> This map does not have a link from ADC to DAC.
> You mention "After a set of ALSA mixer commands is issued to create a
> path from one end point to another end point" , how do we issue those
> commands? to create a link , currently my alsa mixer shows no option for a
> ADC to DAC select.
Does the codec data sheet support it, if so please create the DAPM
widgets for this and add them in above map.

> 
> -Rashmi
> 
> 
> On Tue, Jun 26, 2012 at 8:26 AM, Patrick Lai <plai at codeaurora.org> wrote:
> 
> > On 6/25/2012 5:26 AM, rashmi narayan wrote:
> >
> >> Dear ALSA Folks,
> >>
> >> I am a newbie to ALSA .I am trying to configure a path within the driver
> >> to
> >> open up /power up the path within the codec from MIC-IN to LineOUT. How
> >> can
> >> I do this within ALSA. Please send me some pointers.
> >>
> >>  If your CODEC driver is written to plug into ASoC framework, ASoC
> > dynamic audio power management(DAPM) will be able to link MIC-IN to
> > Lineout. After a set of ALSA mixer commands is issued to create a path
> > from one end point to another end point, DAPM will kick in and enable
> > the path according to widgets and audio routing map defined in the
> > CODEC driver.
> >
> >  Thank you,
> >> Rashmi
> >> ______________________________**_________________
> >> Alsa-devel mailing list
> >> Alsa-devel at alsa-project.org
> >> http://mailman.alsa-project.**org/mailman/listinfo/alsa-**devel<http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>
> >>
> >
> >
> > --
> > Sent by an employee of the Qualcomm Innovation Center, Inc.
> > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
> >
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


-- 
~Vinod



More information about the Alsa-devel mailing list