dummy codec in i.mx6ul

cancel
Showing results for 
Search instead for 
Did you mean: 

dummy codec in i.mx6ul

167 Views
Shivasagar_myana
Contributor I

Hi 

we trying to use the i2s (SAI2 ) in our project, we are facing some errors. could any one resolve.

* we are using tef6638 in our project that will decode the i2s raw data, that will connect to the processor through SAI2 interface. 

* i searches there no codec driver for that so that we are planning to use the dummy codec driver.

-> how to configure the dummy codec, i got the information in so many links, but iam unable to enable the dummy codec card.

i have IMX6ul evk board on that wm8960 codec is there, with that iam able play the audio and able to hear the by using headset.

-> iam able to see the alsa sound cards while booting

  ALSA device list:
[ 3.376144] #0: Dummy 1
[ 3.378772] #1: Loopback 1

my question is can we use this dummy card and can we route that audio raw data through SAI2?. 

 

 

Labels (1)
0 Kudos
6 Replies

162 Views
igorpadykov
NXP TechSupport
NXP TechSupport
0 Kudos

158 Views
Shivasagar_myana
Contributor I

Hi igor

Iam able to get the audio by using wm8960, i want to use dummy codec, is it possible with out using the hardware codec can we transmits the date through i2s (SAI2).

 

Thanks & regards,

shivasagar.

0 Kudos

149 Views
igorpadykov
NXP TechSupport
NXP TechSupport

dummy codec and "simple-audio-card" is the same, from link:

 

1.jpg

 

Best regards
igor

0 Kudos

120 Views
Shivasagar_myana
Contributor I

Hi Igor,

Can you please provide the solution for forward the sound data directly to I2S with out codec hardware, i just want to send the audio data to i2s(SAI). 

Thanks & regards,

shivasagar.

 

0 Kudos

115 Views
igorpadykov
NXP TechSupport
NXP TechSupport
0 Kudos

140 Views
Shivasagar_myana
Contributor I

Hi Igor,

Thanks for helping....

we tried the configuration like mention in the above link with no luck.

sound {
compatible = "simple-audio-card";
simple-audio-card,name = "sound-i2s";
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <&dailink_master>;
simple-audio-card,frame-master = <&dailink_master>;
simple-audio-card,widgets =
"Microphone", "Mic Jack",
"Line", "Line In",
"Line", "Line Out",
"Speaker", "Speaker",
"Headphone", "Headphone Jack";
simple-audio-card,routing =
"Headphone Jack", "HP_L",
"Headphone Jack", "HP_R",
"Speaker", "SPK_LP",
"Speaker", "SPK_LN",
"Speaker", "SPK_RP",
"Speaker", "SPK_RN",
"LINPUT1", "Mic Jack",
"LINPUT3", "Mic Jack",
"RINPUT1", "Mic Jack",
"RINPUT2", "Mic Jack";
status = "okay";

 

simple-audio-card,cpu {
sound-dai = <&sai2>;
status = "okay";
};

dailink_master: simple-audio-card,codec {
sound-dai = <&codec>;
/* clocks = <&clks IMX6UL_CLK_SAI2>;*/
status = "okay";
};
}

codec: codec{
#sound-dai-cells = <0>;
compatible = "linux,snd-soc-dummy";
status = "okay";
};

&sai2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai2>;

assigned-clocks = <&clks IMX6UL_CLK_SAI2_SEL>,
<&clks IMX6UL_CLK_SAI2>;
assigned-clock-parents = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>;
assigned-clock-rates = <0>, <12288000>;
fsl,sai-mclk-direction-output;
status = "okay";
};

pinctrl_sai2: sai2grp {
fsl,pins = <
MX6UL_PAD_JTAG_TDI__SAI2_TX_BCLK 0x17088
MX6UL_PAD_JTAG_TDO__SAI2_TX_SYNC 0x17088
MX6UL_PAD_JTAG_TRST_B__SAI2_TX_DATA 0x11088
MX6UL_PAD_JTAG_TCK__SAI2_RX_DATA 0x11088
MX6UL_PAD_JTAG_TMS__SAI2_MCLK 0x17088
/* MX6UL_PAD_SNVS_TAMPER4__GPIO5_IO04 0x17059*/
>;
};

this is my dts file configuration, i am unable to get  sound card by using this configuration. 

Can you please verify this, what mistakes we are doing ?

Thanks& regards,

shivasagar.

 

0 Kudos