Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: amixer: Unable to find simple control 'PCM',0
PostPosted: Mon Dec 27, 2010 9:15 am 
Offline

Joined: Fri Nov 26, 2010 8:54 am
Posts: 5
hi all:
I transplant alsa-lib-1.0.22 & alsa-utils-1.0.22 for AT91SAM9G20;
when i use aplay or arecord; there is no error, but also no sound;

amixer set Master 70%
amixer set Capture 70%
amixer set PCM 70%
amixer: Unable to find simple control 'PCM',0

amixer contents :
numid=2,iface=MIXER,name='Master Playback ZC Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=1,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw------,values=2,min=0,max=127,step=0
: values=121,121
numid=4,iface=MIXER,name='Line Capture Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=5,iface=MIXER,name='Mic Boost (+20dB)'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=8,iface=MIXER,name='ADC High Pass Filter Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=6,iface=MIXER,name='Capture Mic Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=3,iface=MIXER,name='Capture Volume'
; type=INTEGER,access=rw------,values=2,min=0,max=31,step=0
: values=23,23
numid=10,iface=MIXER,name='Playback De-emphasis'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'None'
; Item #1 '32Khz'
; Item #2 '44.1Khz'
; Item #3 '48Khz'
: values=0
numid=11,iface=MIXER,name='Input Mux'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 'Line In'
; Item #1 'Mic'
: values=0
numid=14,iface=MIXER,name='Output Mixer HiFi Playback Swit'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=12,iface=MIXER,name='Output Mixer Line Bypass Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=13,iface=MIXER,name='Output Mixer Mic Sidetone Switc'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=7,iface=MIXER,name='Sidetone Playback Volume'
; type=INTEGER,access=rw------,values=1,min=0,max=3,step=0
: values=3
numid=9,iface=MIXER,name='Store DC Offset Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
I can not find the PCM control;


cat /proc/asound/card0/oss_mixer
VOLUME "Master" 0
BASS "" 0
TREBLE "" 0
SYNTH "" 0
PCM "" 0
SPEAKER "" 0
LINE "Line" 0
MIC "" 0
CD "" 0
IMIX "" 0
ALTPCM "" 0
RECLEV "" 0
IGAIN "Capture" 0
OGAIN "" 0
LINE1 "" 0
LINE2 "" 0
LINE3 "" 0
DIGITAL1 "" 0
DIGITAL2 "" 0
DIGITAL3 "" 0
PHONEIN "" 0
PHONEOUT "" 0
VIDEO "" 0
RADIO "" 0
MONITOR "" 0


so what is the problem???
Thanks!


Top
 Profile  
 
 Post subject: Re: amixer: Unable to find simple control 'PCM',0
PostPosted: Tue Dec 27, 2011 10:35 pm 
Offline

Joined: Sun Oct 30, 2011 4:23 pm
Posts: 3
I had the same issue in my custom board.

I am using kernel 2.6.30 on AT91SAM9G20 board.

Any suggestion to solve the problem?

thanks.


Top
 Profile  
 
 Post subject: Re: amixer: Unable to find simple control 'PCM',0
PostPosted: Wed Dec 28, 2011 1:38 am 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 204
Location: USA
Hi there

Have you performed the standard sanity checks?
. verify that all necessary drivers are properly configured and installed;
. check `dmesg` (i.e. syslog) for any driver messages
. the device node numbers and attributes (char?) in /dev match the driver code.

If you still cannot figure it out, then it's time to add printk()s to the driver and recompile. If you still get nothing and you're really stumped, then be sure to output messages from the probe, load and unload routines to catch driver module issues.

Regards


Top
 Profile  
 
 Post subject: Re: amixer: Unable to find simple control 'PCM',0
PostPosted: Wed Dec 28, 2011 6:45 pm 
Offline

Joined: Sun Oct 30, 2011 4:23 pm
Posts: 3
this is the module loaded:

root@vulcano-g20:~# lsmod
Module Size Used by
snd_soc_sam9g20_wm8731 4000 0
snd_soc_atmel_ssc_dai 5328 1 snd_soc_sam9g20_wm8731
snd_soc_atmel_pcm 5116 1 snd_soc_sam9g20_wm8731
snd_soc_wm8731 12332 1 snd_soc_sam9g20_wm8731
snd_soc_core 46604 4 snd_soc_sam9g20_wm8731,snd_soc_atmel_ssc_dai,snd_soc_atmel_pcm,snd_soc_wm8731
g_serial 21796 0

I tried to play an mp3 with the command:

mplayer -ao alsa -mixer-channel 'Master' /home/root/music.mp3

It seems is reading and playing the music but nothing is present on the LHPOUT or RHPOUT

the dmesg report the following messages:

i2c-adapter i2c-0: master_xfer[0] W, addr=0x1b, len=2
i2c-adapter i2c-0: NAK from device addr 0x1b msg #0
i2c-adapter i2c-0: master_xfer[0] W, addr=0x1b, len=2
i2c-adapter i2c-0: NAK from device addr 0x1b msg #0
i2c-adapter i2c-0: master_xfer[0] W, addr=0x1b, len=2
i2c-adapter i2c-0: NAK from device addr 0x1b msg #0
i2c-adapter i2c-0: master_xfer[0] W, addr=0x1b, len=2
i2c-adapter i2c-0: NAK from device addr 0x1b msg #0
i2c-adapter i2c-0: master_xfer[0] W, addr=0x1b, len=2
i2c-adapter i2c-0: NAK from device addr 0x1b msg #0
i2c-adapter i2c-0: master_xfer[0] W, addr=0x1b, len=2


Any suggestions?

Thanks.


Top
 Profile  
 
 Post subject: Re: amixer: Unable to find simple control 'PCM',0
PostPosted: Thu Dec 29, 2011 11:29 am 
Offline

Joined: Sun Oct 30, 2011 4:23 pm
Posts: 3
Some more info...
I think it is strange that aplay-L doesn't report any PCM device!?!
Any suggestion is welcome.

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AT91SAMG20EK [AT91SAMG20-EK], device 0: WM8731 PCM WM8731-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

aplay -L
null
Discard all samples (playback) or generate zero samples (capture)


cat /proc/asound/
AT91SAMG20EK/ cards oss/ seq/ version
card0/ devices pcm timers

cat /proc/asound/cards
0 [AT91SAMG20EK ]: WM8731 - AT91SAMG20-EK
AT91SAMG20-EK (WM8731)

cat /proc/asound/pcm
00-00: WM8731 PCM WM8731-0 : : playback 1 : capture 1

cat /proc/asound/devices
0: [ 0] : control
1: : sequencer
16: [ 0- 0]: digital audio playback
24: [ 0- 0]: digital audio capture
33: : timer


Top
 Profile  
 
 Post subject: Re: amixer: Unable to find simple control 'PCM',0
PostPosted: Fri Jan 06, 2012 11:27 am 
Offline

Joined: Fri Jan 21, 2011 6:39 am
Posts: 10
Hi

Post the dmesg and /etc/asound.state output.


Top
 Profile  
 
 Post subject: Re: amixer: Unable to find simple control 'PCM',0
PostPosted: Fri Feb 24, 2012 8:14 pm 
Offline

Joined: Fri Oct 28, 2011 12:44 pm
Posts: 5
Hi, was there any solution to this issue? I've got the same problem!

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: