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.

OpenWRT and TLV320AIC23

Hello!


I am trying to write a program for recording the data from TLV320 microphone input. The mail problem is it's my first openWRT project and am not very familiar how exactly to write it. I have found this library for the module:  http://lxr.free-electrons.com/source/sound/soc/codecs/tlv320aic23.c Unfortunately it's not commented, there is no example code, so I can have some template how to write it, and honestly have no idea where to start. :'(


Can anyone help me how to make it work. I would really appreciate some code example, because I don't know how to write a basic code for recording.

I have already installed cross-compiling environment and have makefile for the (non existing) program.

  • Hi, Karolina,

    Welcome to E2E and thank you for your interest in our products!

    Please take a look at the following script. It describes which registers must be written for a recording function:

    Config_example.txt
    REG	VALUE		COMMENTS
    
    0x00	0 0001 0111	Left input line volume
    0x01	0 0001 0111	Right input line volume
    0x06	0 0001 1000	Device power up; ADC, analog inputs on
    0x08	x xxxx xxxx	The sample rate depends of the MCLK frequency
    

    Please let me know if you have more questions or comments.

    Best regards,
    Luis Fernando Rodríguez S.