AnsweredAssumed Answered

Unable to get aplay and arecord working with WM8960 on NXP's I.MX6ULL EVK

Question asked by Shan on May 9, 2018
Latest reply on May 10, 2018 by Shan

Dear Technical Support Team,

I have the following Audio coddec bringup issues (WM8960) on NXP's I.MX6ULL EVK, could you please help me in resolving the below issues

1. I am able to do the playback using aplay, but I am unable to increase/decrease the playback volume, where I hv connected my headhones at J1401


logs:
root@imx6ull14x14evk:/# amixer set Headphone 127
Simple mixer control 'Headphone',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [6.00dB]
Front Right: Playback 127 [100%] [6.00dB]
root@imx6ull14x14evk:/#

2. I am unable to hear the audio data recorded using arecord (arecord [-Dplughw:0,0] -r 44100 -f S16_LE -c 2 -d 20 record.wav) or am not sure whether the audio is recorded in the attached .wav file, am trying to capture the audio data via P1401 (Main Board MIC), I have done the following amixer settings, I am wondering whether this required MICBAIS to be enabled for this or what?, if it is this case, could you please let me know how to enable this or if not, could you please let me know where else could be the issue and how this can be resolved?

Or Could you please let me know if am doing any thing wrong in executing the below sequence?

root@imx6ull14x14evk:/# amixer cset name='Right Boost Mixer RINPUT1 Switch' on
numid=48,iface=MIXER,name='Right Boost Mixer RINPUT1 Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
root@imx6ull14x14evk:/# amixer cset name='Right Boost Mixer RINPUT2 Switch' on
numid=46,iface=MIXER,name='Right Boost Mixer RINPUT2 Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
root@imx6ull14x14evk:/# amixer cset name='ADC PCM Capture Volume' 220
numid=36,iface=MIXER,name='ADC PCM Capture Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
: values=220,220
| dBscale-min=-97.50dB,step=0.50dB,mute=1
root@imx6ull14x14evk:/# amixer cset name='ADC PCM Capture Volume' 255
numid=36,iface=MIXER,name='ADC PCM Capture Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
: values=255,255
| dBscale-min=-97.50dB,step=0.50dB,mute=1


root@imx6ull14x14evk:/# amixer cset name='ADC Data Output Select' 0
numid=41,iface=MIXER,name='ADC Data Output Select'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Left Data = Left ADC; Right Data = Right ADC'
; Item #1 'Left Data = Left ADC; Right Data = Left ADC'
; Item #2 'Left Data = Right ADC; Right Data = Right ADC'
; Item #3 'Left Data = Right ADC; Right Data = Left ADC'
: values=0
root@imx6ull14x14evk:/# amixer cset name='ADC Data Output Select' 2
numid=41,iface=MIXER,name='ADC Data Output Select'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Left Data = Left ADC; Right Data = Right ADC'
; Item #1 'Left Data = Left ADC; Right Data = Left ADC'
; Item #2 'Left Data = Right ADC; Right Data = Right ADC'
; Item #3 'Left Data = Right ADC; Right Data = Left ADC'
: values=2
ord.wavx6ull14x14evk:/# arecord [-Dplughw:0,0] -r 44100 -f S16_LE -c 2 -d 20 rec
Recording WAVE '[-Dplughw:0,0]' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Recording WAVE 'record.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
root@imx6ull14x14evk:/#


Kindly do the needful as early as possible, as I am stuck with this issue from past one week, still am unable to get any clues

Many Thanks in advance

Attachments

Outcomes