AnsweredAssumed Answered

wm8960 driver

Question asked by west chu on May 4, 2020
Latest reply on May 6, 2020 by west chu

Hi all,

I'm working on IMX6UL custom board with YOCTO sumo linux kernel 4.14.98.

I want to test if my wm8960 can play .wav file in user space with comment below:

root@imx6ulevk:/usr/share/sounds/alsa# aplay -D plughw:0,0 ./Front_Center.wav -v

and I got fail with followed error message:

Playing WAVE './Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
Plug PCM: Hardware PCM card 0 'wm8960-audio' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 48000
exact rate : 48000 (48000/1)
msbits : 16
buffer_size : 24000
period_size : 6000
period_time : 125000
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 6000
period_event : 0
start_threshold : 24000
stop_threshold : 24000
silence_threshold: 0
silence_size : 0
boundary : 1572864000
appl_ptr : 0
hw_ptr : 0

aplay: pcm_write:2051: write error: Input/output error  

My dmesg showed:

root@imx6ulevk:/usr/share/sounds/alsa# dmesg |grep wm8960
imx-wm8960 sound: wm8960-hifi <-> 202c000.sai mapping ok
imx-wm8960 sound: snd-soc-dummy-dai <-> 2034000.asrc mapping ok
imx-wm8960 sound: wm8960-hifi <-> 202c000.sai mapping ok
#0: wm8960-audio
wm8960 0-001a: ASoC: Right Boost Mixer DAPM update failed: -6

I don't know how to fix it,

could anyone help?

Outcomes