[alsa-devel] ASoC:simple-card: problem with multi-DAIs

Jean-Francois Moine moinejf at free.fr
Tue Sep 2 09:00:05 CEST 2014


Hi Kuninori,

In your patch
	ASoC: simple-card: remove dai_link->cpu_dai_name when DT
	(commit 179949bc04c7157a4b2279f62a842638b61f78f9
	 in /kernel/git/broonie/sound.git/)
you removed all 'cpu_dai_name's, and this creates problems in my system.

I have an audio controller with 2 DAIs. The audio system is defined as:

	sound {
		compatible = "simple-audio-card";
		simple-audio-card,name = "Cubox Audio";

		simple-audio-card,dai-link at 0 {		/* I2S - HDMI */
			format = "i2s";
			cpu {
				sound-dai = <&audio1 0>;
			};
			codec {
				sound-dai = <&hdmi 0>;
			};
		};

		simple-audio-card,dai-link at 1 {		/* S/PDIF - HDMI */
			cpu {
				sound-dai = <&audio1 1>;
			};
			codec at 0 {
				sound-dai = <&hdmi 1>;
			};
		};
		...
	}

The 'cpu_of_node' of both CPU DAIs is the same ('audio1'), and only the
cpu_dai_name permits to know the CPU DAI.

But, as you removed it, both DAI links are built with the 1st CPU DAI
(I2S), and the second link (via S/PDIF) does not work.

-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/


More information about the Alsa-devel mailing list