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.

TLV320AIC3262: Driver for Linux kernel v6.1 - 64bit

Part Number: TLV320AIC3262
Other Parts Discussed in Thread: TLV320AIC3263, TLV320AIC3268

Tool/software:

Hi,

I found the Linux driver of TLV320AIC3262 for Linux kernel v5.10 at the 7z file(0572.current.7z) of Shenghao Ding from e2e.ti.com/.../tlv320aic3263-linux-kernel-v5-4-driver.

Is there any Linux driver of TLV320AIC3262 for Linux kernel v6.1?


Shenghao Ding says "We have no driver code directly supporting aic3263, but we can reuse aic3262 driver code. The main difference with AIC3262 is enhanced miniDSP (clocking definitely, memory maybe) and 4 CICs which enabled four digital mics." But what to do in the driver code is vague.


So my second question is What are the exact things to do in the driver's code of TLV320AIC3262 to reuse it for TLV320AIC3263?

  • Hi,

    It looks like the drivers are for TLV320AIC326x devices, so the 3262 and 3263 should use the same driver. Here is the link to the c code for the driver currently released by TI: https://git.ti.com/cgit/ti-analog-linux-kernel/dmurphy-analog/tree/sound/soc/codecs/tlv320aic326x.c?id=07adbd28685347b6dad5c6dd651f8b2bfa0ddaf8

    When you connect the device, does it show up in your audio devices? You can run "aplay --list-devices" in your terminal to see if the kernel has drivers already built in for the device. If it doesn't, try editing the driver file to 3263 in the sections where it specifies the device. 

    Let me know if you need more help, sorry we do not have anyone currently on the team who supports Linux drivers at this low level.

    Best,
    Mir

  • Hi Mir Jeffres,

    You say "It looks like the drivers for TLV320AIC326x devices, so the 3262 and 3263 should use the same driver", but as Shenghao Ding they are not completely compatible. When I try the driver for TLV320AIC326x, I get the error "Device is not a TLV320AIC3262" as others get that can be found at e2e.ti.com/.../tlv320aic3263-linux-kernel-v5-4-driver as Yusuf Bavas said.

    It looks like the driver was written for only TLV320AIC3262 and there is no code for TLV320AIC3263 and TLV320AIC3268. Because when you examine the code you see the device ID returning from the device is 3 and no switch case for 6. Check Yusuf's mention at the same link. Thus as an answer to your question "When you connect the device, does it show up in your audio devices? You can run "aplay --list-devices" in your terminal to see if the kernel has drivers already built in for the device.", no unfortunately the driver breaks.

    It is quite weird that if you make a driver named TLV320AIC326x, we expect it to support all derivatives of AIC326.

    You say " If it doesn't, try editing the driver file to 3263 in the sections where it specifies the device. ", yes I have already asked all the details to be done.

    I asked two questions. So as far as I understand as an answer to the first question, there is no up-to-date driver for Linux kernel 6.1
    For the second question, as you say there is no one to support that kind of thing.
    Thanks