i.MX 6UltraLite EVK board wm8960 audio codec issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX 6UltraLite EVK board wm8960 audio codec issue

1,215 Views
chunqiaohe
Contributor II

Hi all,

     i have a i.MX 6UltraLite EVK board,  this EVK board's audio codec is  WM8960.  Audio function is normal , i can use the cmd "aplay" to play a audio file , but why the "i2cdump and i2cset" can not use.  i use the "i2cdump -f -y 1 0x1a"  , the I2C cann't dump the WM8960's register. also the "i2cset" cmd  cann't use.  if your have a i.MX 6UltraLite EVK board, you can see the issue.

    i have new board design same as i.MX 6UltraLite EVK board, i use the audio codec is WM8974. the I2C driver is ok, I want to use the "i2cset" to control the codec's register. but i have the problem same as the EVK board.

    how to modify the driver, or  the "I2cdump and i2cset" tool cann't use on wolfson's codec chips, I see form the wm8960 and wm8974 datasheet, wlofson's codec chip is 7bit address and 9bit data.

   thanks!

pastedImage_3.png

pastedImage_1.png

pastedImage_2.png

Labels (2)
Tags (2)
0 Kudos
1 Reply

661 Views
jamesbone
NXP TechSupport
NXP TechSupport

Hello Chunghia,

WM8960G i2c interface is not standard i2c(if there is any standard :) ) For most i2c chip, it is address(7bit) + write/read(1bit) + register address(8bit) + register data(8bit), so command “i2cdump” will work on such chip. Unfortunately, WM8960G is not such chip :P. Its I2C format is address(7bit) + write(1bit, write only) + register address(7bit) + register data(9bit), so we must calculate such register before we use it.

i2cset -y 0 0x1a 0x1e 0x00 i2cset -y 0 0x1a 0x0e 0x02 i2cset -y 0 0x1a 0x08 0x05 i2cset -y 0 0x1a 0x68 0x07 i2cset -y 0 0x1a 0x6a 0x86 i2cset -y 0 0x1a 0x6c 0xc2 i2cset -y 0 0x1a 0x6e 0x26 i2cset -y 0 0x1a 0x32 0xc0 i2cset -y 0 0x1a 0x35 0xe1 i2cset -y 0 0x1a 0x5e 0x0c i2cset -y 0 0x1a 0x45 0x00 i2cset -y 0 0x1a 0x4b 0x00 i2cset -y 0 0x1a 0x0a 0x00 i2cset -y 0 0x1a 0x05 0xf8 i2cset -y 0 0x1a 0x07 0xf8



Have a great day,
Jaime

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos