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.
Tool/software:
HI Ti engineer,
We currently have a requirement that the controller cannot call the functions in the snd_soc_dai_ops structure in the TS2562 driver, as shown in the following figure:
However, we can configure the registers in the TAS2562 driver.
My question is: In this case, can TAS2562 support playing audio with any sampling rate (8k, 16k, 32k, 48k) and any sampling bit number (16bit, 32bit)?
Hello,
I am re-assigning this thread to the right person. Since today is US holiday, someone will be get back to you before the end of tomorrow. Thank you for your patience.
Regards,
Nayeem
Where you get the driver? what the operating system on your platform? If Linux or Android, kindly let me know the kernel version.
the default setting of TAS2562 can detect the sampling rate automatically, so you won't care what the sample rate of input audio stream. What you care is the bitwidth, that is sampling bit member. this parameter can be passed via hw_param interface in Linux system.
Hi Shenghao,
Thanks for help.
The code used is: https://github.com/torvalds/linux/commits/master/sound/soc/codecs/tas2562.c
According to the soc chip we use and the actual needs of the project, we cannot call the function in the snd_soc_dai_ops structure in the code, as shown in the following figure:
Can we play audio with any sampling rate (8000, 16000, 32000, 44100, 48000) and any sampling bit number (8, 16, 32) by configuring the registers? I can ensure that the soc gives the correct and standard i2s timing.
First you must register i2c device, then register the sound card. So what kind of hardware platform do you use?
there're two different hardware register, one is ACPI, the other is devicetree.
Here is the sample for device tree
After successful hardware register, the system can call tas2562_speaker_dai_ops.