[Sound-open-firmware] [RFC PATCH 2/5] topology: utils: Add kdapm macro for route with kcontrol

Ranjani Sridharan ranjani.sridharan at linux.intel.com
Thu May 31 03:16:31 CEST 2018


On Thu, 2018-05-31 at 09:02 +0800, Keyon Jie wrote:
> 
> On 2018年05月30日 17:51, Xiuli Pan wrote:
> > From: Pan Xiuli <xiuli.pan at linux.intel.com>
> > 
> > mixer with kcontrol need the path name match the kcontrol name.
> > Add the macro to include the kcontrol in the dapm route
> 
> Thinking it more, I realize that we don't need the LBM switch to be 
> added between other 2 widgets, it only change the content of the
> capture 
> pipeline, but not any on/off for playback/capture pipelines, from
> this 
> aspect, it is somewhat like a muxer.

Maybe I am missing the point here but why cant we tap the buffer
feeding into the DAI for the loopback mode? 

Is the idea to also be able to play the audio on the SSP? 
> 
> Thanks,
> ~Keyon
> 
> > 
> > Signed-off-by: Pan Xiuli <xiuli.pan at linux.intel.com>
> > ---
> >   topology/m4/utils.m4 | 4 ++++
> >   1 file changed, 4 insertions(+)
> > 
> > diff --git a/topology/m4/utils.m4 b/topology/m4/utils.m4
> > index 73faae6..3af586a 100644
> > --- a/topology/m4/utils.m4
> > +++ b/topology/m4/utils.m4
> > @@ -26,6 +26,10 @@ define(`MEMCAPS', `pushdef(`i', $#) pushdef(`j',
> > `1') SUM_LOOP($@)')
> >   dnl create direct DAPM/pipeline link between 2 widgets)
> >   define(`dapm', `"$1, , $2"')
> >   
> > +dnl create DAPM/pipeline link between 2 widgets with kcontrol)
> > +define(`kdapm', `"$1, $2, $3"')
> > +
> > +
> >   dnl COMP_SAMPLE_SIZE(FMT)
> >   define(`COMP_SAMPLE_SIZE',
> >   `ifelse(
> > 
> 
> _______________________________________________
> Sound-open-firmware mailing list
> Sound-open-firmware at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/sound-open-firmware


More information about the Sound-open-firmware mailing list