ls /dev/snd/ should show up both pcmCxDxP/C sort of pcm devices and also
Controlx sort of control devices, for you to do an  amixer upon it.

alsa_aplay -L here I suppose shows only pcm devices you have ?

On Mon, Jun 7, 2010 at 2:52 PM, pramod <pramodkum...@gmail.com> wrote:
> Hi All,
>
> I am currently writing the asound.conf file for my hardware Sigma
> 8654.
> The alsa utils are working fine and detecting the card.
>
> # alsa_aplay -L
> default:CARD=EM8XXX
>    EM8xxx card, EM8xxx
>    Default Audio Device
> null
>    Discard all samples (playback) or generate zero samples (capture)
> #
> # alsa_aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: EM8XXX [EM8xxx card], device 0: em8xxx [EM8xxx]
>  Subdevices: 2/2
>  Subdevice #0: subdevice #0
>  Subdevice #1: subdevice #1
>
> Using the alsa_amixer i am able to get the below output.
>
> # alsa_amixer contents
> numid=1,iface=MIXER,name='Hardware Master Playback Volume'
>  ; type=INTEGER,access=rw------,values=2,min=0,max=73,step=0
>  : values=49,49
> numid=3,iface=MIXER,name='IEC958 Playback Con Mask'
>  ; type=IEC958,access=r-------,values=1
>  : values=[AES0=0xff AES1=0xff AES2=0xff AES3=0xff]
> numid=4,iface=MIXER,name='IEC958 Playback Switch'
>  ; type=BOOLEAN,access=rw------,values=1
>  : values=on
> numid=5,iface=MIXER,name='Decoder Weight'
>  ; type=INTEGER,access=rw------,values=2,min=0,max=73,step=0
>  : values=0,0
> numid=2,iface=PCM,name='IEC958 Playback Default'
>  ; type=IEC958,access=rw------,values=1
>  : values=[AES0=0x00 AES1=0x00 AES2=0x00 AES3=0x00]
>
> Looking at the above values i have written below configuration.
>
> pcm.AndroidPlayback {
>        type hooks
>        slave.pcm {
>                type hw
>                card 0
>                device 0
>        }
>        hooks.0 {
>                type ctl_elems
>                hook_args [
>        {
>                name 'Hardware Master Playback Volume'
>                value.0 49
>                value.1 49
>        }
>        {
>                name 'IEC958 Playback Default'
>                value [ 0x00 0x00 0x00 0x00 ]
>        }
>        {
>                name 'IEC958 Playback Con Mask'
>                value [ 0xff 0xff 0xff 0xff ]
>        }
>        {
>                name 'IEC958 Playback Switch'
>                value true
>        }
>        {
>                name 'Decoder Weight'
>                value.0 0
>                value.1 0
>        }
>
>                ]
>        }
> }
>
> But i am getting still the below errors while booting android.
>
> E/ALSALib ( 1332): external/alsa-lib/src/control/control.c:909:
> (snd_ctl_open_noupdate) Invalid CTL AndroidOut
> E/AudioHardwareALSA( 1332): Unable to attach mixer to device
> AndroidOut: No such file or directory
> E/AudioHardwareALSA( 1332): Unable to attach mixer to device default:
> No such file or directory
> E/ALSALib ( 1332): external/alsa-lib/src/control/control.c:909:
> (snd_ctl_open_noupdate) Invalid CTL AndroidIn
> E/AudioHardwareALSA( 1332): Unable to attach mixer to device
> AndroidIn: No such file or directory
> E/AudioHardwareALSA( 1332): Unable to attach mixer to device default:
> No such file or directory
>
> Please provide some directions for solving the above issue.
> Thanks in advance.
> Pramod
>
> --
> unsubscribe: android-porting+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>



-- 
--Pavan Savoy

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to