Re: [PATCH] ASoC: nau8825: fix stream_name conflicting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Mark Brown [mailto:broonie@xxxxxxxxxx]
> Sent: Wednesday, November 04, 2015 3:26 AM
> To: Fang, Yang A
> Cc: lgirdwood@xxxxxxxxx; alsa-devel@xxxxxxxxxxxxxxxx; Nujella,
> Sathyanarayana; Koul, Vinod; M, Naveen; Sripathi, Srinivas; Konno, Joe; Patel,
> Vedang
> Subject: Re: [PATCH] ASoC: nau8825: fix stream_name conflicting
> 
> On Tue, Nov 03, 2015 at 04:13:39PM -0800, yang.a.fang@xxxxxxxxx wrote:
> > From: M Naveen <naveen.m@xxxxxxxxx>
> >
> > There is naming conflict with dai stream_name defined in dmic.c so
> > assign different name
> 
> What sort of conflict?  All names are scoped within their device, conflicts are
> inevitable since we support havig more than one instance of a device in the
> system.
Hi Mark,
For skylake there are two cpu BE dai  1)ssp1 Rx 2) DMIC01 Rx
In our machine driver we want to connect ssp1 Rx to Nuvuton codec and Connect DMIC01 Rx
To DMIC codec(sound/soc/codecs/dmic.c)

In our machine driver route table is like below
static const struct snd_soc_dapm_route skylake_map[] = {
{ "ssp1 Rx", NULL, " Capture" }, 
{ "DMIC01 Rx", NULL, "Capture" },
}
If we use same Capture name. When we open dmic capture we saw it is connected to SSP1-Codec
Instead of dmic01

[   53.594602]  Skl Audio Capture Port: ASoC: found 3 audio capture paths
[   53.601910]  Skl Audio Capture Port: connected new DPCM capture path Skl Audio Capture Port <- dmic01
[   53.612234]  Skl Audio Capture Port: connected new DPCM capture path Skl Audio Capture Port <- SSP1-Codec
[   53.622929]  Skl Audio Capture Port: ASoC: found 2 new BE paths
[   53.629550]  SSP1-Codec: ASoC: open capture BE SSP1-Codec

Is there a better way to differentiate the name in route map?
Thanks
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux