-----Original Message----- From: Mark Brown [mailto:broonie@kernel.org] Sent: Wednesday, November 04, 2015 3:26 AM To: Fang, Yang A Cc: lgirdwood@gmail.com; alsa-devel@alsa-project.org; 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@intel.com wrote:
From: M Naveen naveen.m@intel.com
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