HI, we use DM8168, RDK4.0.
I'm new to audio.
Our board uses AIC3101 for capture.
How can I do?
Thanks.
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.
HI, we use DM8168, RDK4.0.
I'm new to audio.
Our board uses AIC3101 for capture.
How can I do?
Thanks.
RDK 4.0 demo code already does TVP5158 audio capture. You can refer and use AIC device name instead of TVP5158. Refer the audio app note for more details.
Check 16ch progressive vcap -> venc -> vdec -> vdis demo. It has audio capture (tvp5158) / encode / playback feature added. There are audio framework apis to support this - but based on tvp5158. Audio app notes tell how to use this framework for non-tvp5158 devices.
You can enable audio without audio framework by directly using alsa apis.
Yes, I run the case of Encode and Decode, it can normally write the files.
The alsa apis are the apis in pcm.h, is it right?
And how to understand the audio framework?
Thanks.
I found the init function is Audio_InitCaptureDevice(), does I only need to change the device name and it will be OK?
The TVP5158 device name is plughw:0,0, how can I know the device name of AIC3101?
Thanks very much for your help?
Use arecord -l in cmd line. It will show the device names.
Just replacing device name alone is not enough. Audio framework by default assumes 16ch input (tvp). There is hook to add other device data processing which should be coded & used.
Hi, sivagamy
I change the device name and the ACAP_CHANNELS_MAX to 1.
There has no error printed, the encoded file is zero.
I also printf the len before err = Audio_captureData(captureBuf, &len);
the information as following just prints only once.
0813--0813--0813--0813--0813--0813--0813--the len = 1024...
BTW, if I want to play the decoded data from Line-out, what should I do?
Thanks very much.