Hi:
i want to use imx-dummy as the pcm interface for bluetooth, to record calls voice. the platform i use is imx6qdl linux system, imx6qdl is the slave mode, set as follow:
imx6qdl-sabresd.dtsi:
codec_dummy: codec_dummy {
compatible = "linux,snd-soc-dummy";
};
sound-dummy {
compatible = "fsl,imx-audio-dummy";
model = "imx-audio-dummy";
audio-cpu = <&ssi2>;
audio-codec = <&codec_dummy>;
mux-int-port = <2>;
mux-ext-port = <6>;
};
&ssi2 {
fsl,mode ="i2s-slave";
status = "okay";
};
pinctrl_audmux6: audmux6grp {
fsl,pins = <
MX6QDL_PAD_DI0_PIN4__AUD6_RXD 0x130b0 //PCM_OUT
MX6QDL_PAD_DI0_PIN2__AUD6_TXD 0x110b0 //PCM_IN
MX6QDL_PAD_DI0_PIN15__AUD6_TXC 0x130b0 //PCM_CLK
MX6QDL_PAD_DI0_PIN3__AUD6_TXFS 0x130b0 //PCM_SYNC
MX6QDL_PAD_DISP0_DAT6__AUD6_RXC 0x130b0 //PCM_CLK slave
MX6QDL_PAD_DISP0_DAT5__AUD6_RXFS 0x130b0 //PCM_SYNC slave
>;
};
and the sound card 'imxaudiodummy' will be generate,
root@Freescale_iMX6 /mnt/nfs# cat /proc/asound/cards
0 [imxaudiodummy ]: imx-audio-dummy - imx-audio-dummy
imx-audio-dummy
1 [imxaudiosgtl500]: imx-audio-sgtl5 - imx-audio-sgtl5000
imx-audio-sgtl5000
2 [imxhdmisoc ]: imx-hdmi-soc - imx-hdmi-soc
imx-hdmi-soc
but use the command "arecord -D hw:0,0 -f S16_LE test.wav",When i call via bluetooth, BT module's PCM_CLK/PCM_SYNC/PCM_OUT all have signal output, but platform is not record.
How can i do? Is there a patch to support this requirement?
The imx-dummy.c file i used on imx6mq-evk android system.,is there are differents betwen?
Could you provide the corresponding imx-dummy.c file for imx6qdl platform?
I don't know if the file used now is correct.
Hi Haibo
one can look at
[alsa-devel] Imx6 i2s master driver without i2c
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------