I am building a mediaplayer ffplay (ffmpeg + sdl") in imx6q.but the audio driver has error as
"asoc : platform imx-pcm-audio.1 hw params failed."
" Audio write: Invalidargument"
"SNDCTL_DSP_GETFMTS: Invalid argument"
How can I do?Give me a driver source of wm8960?Thanks.
Hi 谢骆冰 谢
suggest to look at attached file Chapter 8 Porting Audio Codecs to a Custom Board
and links below
Linux/sound/soc/codecs/wm8960.c - Linux Cross Reference - Free Electrons
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
thanks for igor,the problem has solved。my fs /dev/snd directory is lack of nods,and then I has rebuild the kernel image,then it's all right!