[alsa-devel] [PATCH] ASoC: pxa: remove duplicated snd_soc_component_driver ops

Robert Jarzmik robert.jarzmik at free.fr
Tue Sep 11 22:57:27 CEST 2018


Robert Jarzmik <robert.jarzmik at free.fr> writes:

> Acked-by: Robert Jarzmik <robert.jarzmik at free.fr>
> Tested-by: Robert Jarzmik <robert.jarzmik at free.fr>

Mmh actually no, there is still a potential issue :
 - the ac97 aplay works in my platform_data mioa701 board
 - but it doesn't work anymore with the devicetree version ... until I revert
   this patch where it works again.

The error I get is :
	root at mioa701:~# aplay mp3/Avril\ Lavigne\ Joie.wav 
	aplay: main:722: audio open error: Invalid argument

The relevant devicetree extract is :
	sound {
		compatible = "simple-audio-card";
		simple-audio-card,name = "MioA701";
		simple-audio-card,widgets =
		"Speaker", "Front Speaker",
		"Speaker", "Rear Speaker",
		"Microphone", "Headset",
		"Microphone", "GSM Line Out",
		"Line", "GSM Line In",
		"Microphone", "Headset Mic",
		"Microphone", "Front Mic";
		simple-audio-card,routing =
			/* Call Mic */
			"Mic Bias", "Front Mic",
			"MIC1", "Mic Bias",
			/* Headset Mic */
			"LINEL", "Headset Mic",
			"LINER", "Headset Mic",
			/* GSM Module */
			"MONOIN", "GSM Line Out",
			"PCBEEP", "GSM Line Out",
			"GSM Line In", "MONO",
			/* headphone connected to HPL, HPR */
			"Headset", "HPL",
			"Headset", "HPR",
			/* front speaker connected to HPL, OUT3 */
			"Front Speaker", "HPL",
			"Front Speaker", "OUT3",
			/* rear speaker connected to SPKL, SPKR */
			"Rear Speaker", "SPKL",
			"Rear Speaker", "SPKR";

		simple-audio-card,cpu {
			sound-dai = <&ac97>;
		};
		simple-audio-card,codec {
			sound-dai = <&wm9713>;
		};
		simple-audio-card,plat {
			sound-dai = <&pxa_pcm_audio>;
		};
	};

Cheers.

-- 
Robert


More information about the Alsa-devel mailing list