igorpadykov kirjoitti:
Hi Ari
one can follow steps described in attached Porting Guide
Chapter 8 Porting Audio Codecs to a Custom Board
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I found drivers from kernel 4.4 tree for Maxim 98357a , so now I have alsa device in kernel. Files which was adapted and edited was max98357a.c and storm.c
So now we have
- CPU DAI fsl-ssi
- CODEC DAI max98357a (from kernel 4.4)
- DAI LINK Driver imx-pt10ex (from kernel 4.4 storm.c and edited acoordingly)
I created dts bindings also so now there is alsa device in /proc/asound/cards
900001:~# cat /proc/asound/cards
0 [pt10ex ]: pt10ex - pt10ex
pt10ex
1 [imxhdmisoc ]: imx-hdmi-soc - imx-hdmi-soc
imx-hdmi-soc
And drivers gets loaded normally
900001:~# dmesg | grep 'max\|pt10ex\|ssi'
imx-sdma 20ec000.sdma: no iram assigned, using external mem
max98357a:max98357a_platform_probe
fsl_ssi:fsl_ssi_probe OK
pt10ex-audio:pt10ex_parse_of OK
max98357a:max98357a_codec_probe OK
pt10ex-audio sound.29: HiFi <-> 2028000.ssi mapping ok
pt10ex-audio:pt10ex_platform_probe OK, ret=0, name=pt10ex, Long name=(null), dev->init_name=(null)
#0: pt10ex
pt10ex-audio: pt10ex_ops_hw_params OK
For some reason there is no sound when I try to test card.
900001:~# aplay -f S16_LE -Dhw:0,0 /dev/urandom
Playing raw data '/dev/urandom' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Aborted by signal Interrupt...
Can I debug trace SSI bus somehow in kernel side so I can find that data is sended to max98357a codec?
Ari