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.

TLV320DAC3100: how to configure the key-click sound

Part Number: TLV320DAC3100

Hello,

It describes that TLV320DAC3100 could generate key-click sound, but it doesn't include how to generate key-click in the Linux driver:./sound/soc/codecs/tlv320aic31xx.c

Below is  our customer's script, it is the same with ARM335 EVM.  It is normal of Play command with LInux. But he didn't generate key-click successfully, so the question is how to generate Key-click  using

I2Cset command to write registers manually. 

#!/bin/bash
##
##generate key click sound by i2cset
#
i2cset -y -f 0 0x18 0x00 00

i2cset -y -f 0 0x18 0x40 0x0c
sleep 1
i2cset -y -f 0 0x18 0x0b 0x02

i2cset -y -f 0 0x18 0x49 0x01

i2cset -y -f 0 0x18 0x4a 0x77
i2cset -y -f 0 0x18 0x4b 00
i2cset -y -f 0 0x18 0x4c 0x23

i2cset -y -f 0 0x18 0x4d 0xfb
i2cset -y -f 0 0x18 0x4e 0x7a
i2cset -y -f 0 0x18 0x4f 0xd7

i2cset -y -f 0 0x18 0x48 04
i2cset -y -f 0 0x18 0x47 0x84

i2cset -y -f 0 0x18 0x0b 0x80
i2cset -y -f 0 0x18 0x40 00

Best regards

Kailyn 

  • Hello,

    I need to check with one of our team members who is familiar with the part . I will let you know.

    Regards,

    Arash

  • Hi Kailyn,

    First of all, let me refer you to this document, it may be of interest as it describes in more detail how the beep generator works on this device.

    An important thing to consider when using the beep generator is that you must provide at least a few BCLK cycles to initialize the generator, please make sure you have BCLK enabled or at least enable it for a few miliseconds during initialization.
    Regarding the register configurations, you basically need to do the same configuration you do with EVM or i2c commands, if you need the register names I can take a look at the driver but the sequence should be the same.

    Best regards,
    -Ivan Salazar
    Applications Engineer