This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[AM335X] ALSA: no soundcard

Other Parts Discussed in Thread: AM3352

Hello,

I'm using the latest SDK 07.00. We're trying to make audio work. Our board is loosely based on the beaglebone, except for the audio part, which is basically:

AM3352:mcasp ( so I²S ) => FPGA

As you can see, there is no codec in play here, as we really just want to send data out over the I²S lines, to the FPGA and the FPGA then decodes this. I think i'll need a dummy/generic codec or something to fake a soundcard?

This is what I have in my DT:

am33xx_pinmux: pinmux@44e10800 {
..
..
mcasp0_pins: mcasp0_pins { pinctrl-single,pins = < 0x190 (PIN_OUTPUT | MUX_MODE0) /* mcasp0aclkx.mcasp0_aclkx */ 0x1ac (PIN_OUTPUT | MUX_MODE0) /* mcasp0aclkx.mcasp0_ahclkx */ 0x194 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp0fsx.mcasp0_fsx */ 0x198 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp0axr0.mcasp0axr0 */ 0x1a8 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp0axr1.mcasp0axr1 */ >; }; mcasp0_sleep_pins: mcasp0_sleep_pins { pinctrl-single,pins = < 0x190 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0aclkx.mcasp0_aclkx */ 0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0aclkx.mcasp0_ahclkx */ 0x194 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0fsx.mcasp0_fsx */ 0x198 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0axr0.mcasp0axr0 */ 0x1a8 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* mcasp0axr1.mcasp0axr1 */ >; };
}

&mcasp0 {
		pinctrl-names = "default", "sleep";
		pinctrl-0 = <&mcasp0_pins>;
		pinctrl-1 = <&mcasp0_sleep_pins>;

		status = "okay";

		op-mode = <0>;          /* MCASP_IIS_MODE */
		tdm-slots = <2>;
		/* 16 serializer */
		serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
			0 0 0 1 1
		>;
		tx-num-evt = <32>;
		rx-num-evt = <32>;
};

ocp{

..
..
      sound {
			compatible = "ti,da830-evm-audio";
			ti,model = "my audio output";
			ti,mcasp-controller = <&mcasp0>;
			ti,codec-clock-rate = <24000000>;
			ti,audio-routing =
				"Headphone Jack",       "HPLOUT",
				"Headphone Jack",       "HPROUT";
		};
..
..
}

Kind regards,

Arend