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.

TLV320AIC32X4SW-LINUX: Writing page 46 register in linux driver

Part Number: TLV320AIC32X4SW-LINUX
Other Parts Discussed in Thread: TLV320DAC3203

Tool/software:

Hi,

I intend to write a value into the register of page 46 inside the Linux driver (tlv320aic32x4.c) itself.

I have tried to write it by having a new macro of my register (eg: #define AIC32x4_DAC_COEF_BUF_AC65_HI        AIC32X4_REG(64, 28)) and extend the .range_max in aic32x4_regmap_pages.

It doesn't seem to be working.

Can I have some examples of that?

  • Just want to double confirm, TLV320DAC3203 doesnt support changes on DAC Coefficients Buffer-A C(65:76) right ? so writing to Page 46 / Register 28-75 won't be allowed?

  • Hi,

    It looks like the datasheet says these buffers are read-only, but I was able to write to them with I2C commands on an EVM with no errors. I wasn't testing the functionality though, so your mileage may vary...

    You can usually edit the default registers of the driver. I don't see that section in the aic32x4 driver, but you could maybe write the registers you want directly in a script to run after the register initializes the device?

    This driver doesn't look like it directly supports the DAC3203 so maybe that is why you cannot go up to page 46. It looks like the range_max is currently in page 1, and maybe the code that supports that range doesn't expect more pages? That is just a theory.

    Can you go more into what exactly you are trying to do? Have you tried running an extra script to initialize your I2C?

    Best,
    Mir