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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

3,240 次查看
srishan
Contributor III

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

标签 (3)
0 项奖励
回复
5 回复数

2,707 次查看
gfine
NXP Employee
NXP Employee

Hi srishan,

First you'd need a powered headset to test the audio output. There is no amplifier on the headset output. So I'd expect a low volume output to a headset.  

After testing I am able to reproduce.. 

BR,

Glen

0 项奖励
回复

2,707 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi,

Are you using the demo images on your board? And could you tell me which flash device are you download the images to, sd card or others?  You can tell me your procedure, I will test it on our NXP I.MX6ULL EVK board. Then give you reply.  Here I see that you also create a new case in our salesforce system, I will give reply in that system later.

Hope I can do help for you.
Have a nice day

Rita

0 项奖励
回复

2,707 次查看
srishan
Contributor III

Hi Rita,


I am using built images of yocto L4.9.11_1.0.0 BSP's for I.MX6ULL listed in NXP site.
I am using NAND flash as my storage
Am able to get playback working , but the volume is too low:
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:/#
Unable to get audio record via 'Main Board MIC' working ie., via P1401.
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 record.wav
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:/#


Requesting you to quickly try on your I.MX6ULL EVK, and keep me updated as early as possible, as am stuck with these from past two weeks still now no clues

Eagerly awaiting for your replies

Many Thanks in advance

0 项奖励
回复

2,707 次查看
gfine
NXP Employee
NXP Employee

Hi srishan,

Have you tried the following?

for main board mic. please try below settings
amixer cset name='Left Input Mixer Boost Switch' on
amixer cset name='Left Boost Mixer LINPUT1 Switch' on
amixer cset name='Left Boost Mixer LINPUT2 Switch' on
amixer cset name='Left Boost Mixer LINPUT3 Switch' on
amixer cset name='Right Input Mixer Boost Switch' on
amixer cset name='Right Boost Mixer RINPUT1 Switch' on
amixer cset name='Right Boost Mixer RINPUT2 Switch' on
amixer cset name='ADC PCM Capture Volume' 220
amixer cset name='ADC Data Output Select' 2

 

for headphone mic, please try this
amixer cset name='Left Input Mixer Boost Switch' on
amixer cset name='Left Boost Mixer LINPUT1 Switch' on
amixer cset name='Left Boost Mixer LINPUT2 Switch' on
amixer cset name='Left Boost Mixer LINPUT3 Switch' on
amixer cset name='Right Input Mixer Boost Switch' on
amixer cset name='Right Boost Mixer RINPUT1 Switch' on
amixer cset name='Right Boost Mixer RINPUT2 Switch' on
amixer cset name='ADC PCM Capture Volume' 220
amixer cset name='ADC Data Output Select' 1

If so please tell us if it worked or not, and if it did work close this issue.

Cheers,


Glen

0 项奖励
回复

2,707 次查看
srishan
Contributor III

May I know if there is was any updates regarding the above issue, as I am stuck with this issue from past one week still now as of now no clues

0 项奖励
回复