Issue with Integrating the codec wm8960 to IMX6UL

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

Issue with Integrating the codec wm8960 to IMX6UL

814 Views
dhanushvenugopa
Contributor I

I am integrating the wm8960 codec to IMX6UL processor,But im facing  some issue while playing the audio wav file.Problem is that when i give aplay <audio_file>, no sound through the speaker and wave file is also not getting terminated.

Integration --- integrated wm8960 codec on phytec som with imx6ul processor

BSP  used --- PD-BSP-Yocto-i.MX6UL-PD19.1.0

Kernel        ---- linux mainline 4.14.93

Scenarios:

----------------

1.when playing wav file no sound through speaker and wav file is not getting terminated.

LOG:

root@phyboard-segin-imx6ul-2:~# aplay /usr/share/sounds/alsa/Front_Right.wav

Playing WAVE '/usr/share/sounds/alsa/Front_Right.wav' : Signed 16 bit Little Endian, Rate 48000 H, Mono

############################################################################################

2.when I give aplay -v I am geting following log

LOG:

Plug PCM: Linear conversion PCM (S24_LE)

Its setup is:

stream : PLAYBACK

access : RW_INTERLEAVED

format : U8

subformat : STD

channels : 1

rate : 8000

exact rate : 8000 (8000/1)

msbits : 8

buffer_size : 4000

period_size : 1000

period_time : 125000

tstamp_mode : NONE

tstamp_type : MONOTONIC

period_step : 1

avail_min : 1000

period_event : 0

start_threshold : 4000

stop_threshold : 4000

silence_threshold: 0

silence_size : 0

boundary : 2097152000

----------------------------------------------------------------------------------------------

Slave: Hardware PCM card 0 'wm8960-audio' device 0 subdevice 0

Its setup is:

stream : PLAYBACK

access : MMAP_INTERLEAVED

format : S24_LE

subformat : STD

channels : 1

rate : 8000

exact rate : 8000 (8000/1)

msbits : 32

buffer_size : 4000

period_size : 1000

period_time : 125000

tstamp_mode : NONE

tstamp_type : MONOTONIC

period_step : 1

avail_min : 1000

period_event : 0

start_threshold : 4000

stop_threshold : 4000

silence_threshold: 0

silence_size : 0

boundary : 2097152000

appl_ptr : 0

hw_ptr : 0

###############################################################################

3.Codec Driver has been detected.

LOG:

root@phyboard-segin-imx6ul-2:~#  i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- --

###############################################################################

4.soundcard is also detected.

LOG:

root@phyboard-segin-imx6ul-2:~# aplay -l


**** List of PLAYBACK Hardware Devices ****
card 0: wm8960audio [wm8960-audio], device 0: HiFi wm8960-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: wm8960audio [wm8960-audio], device 1: HiFi-ASRC-FE (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0

###################################################################################

Above issue is not able to resolve,please  suggest the solution to resolve the issue as soon as possible.

Labels (1)
0 Kudos
3 Replies

702 Views
igorpadykov
NXP Employee
NXP Employee

Hi Dhanush

linux mainline 4.14.93 is not supported by nxp, but wm8960 is working fine

on i.MX6UL EVK with L4.19.35 linux from source.codeaurora.org/external/imx/linux-imx

imx6ul-14x14-evk.dts\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

Documentation

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

0 Kudos

702 Views
dhanushvenugopa
Contributor I

Hi igorpadykov,

Thanks for your reply,

Please can you guide me how to make the linux mainline as 4.19.35.

regards,

Dhanush V

On Thu, Nov 28, 2019 at 12:19 PM igorpadykov <admin@community.nxp.com>

0 Kudos

702 Views
igorpadykov
NXP Employee
NXP Employee

Hi Dhanush

for linux mainline as 4.19.35 suggest to post issue on

meta-freescale@lists.yoctoproject.org | Home 

Best regards
igor

0 Kudos