2010/6/10 pramod <pramodkum...@gmail.com>

> hi xiangchao,
>
> Thanks for the direction. But i have few doubt.
>
> I am currently using the donut branch code. if i use the latest alsa-
> lib (eclair or even the master), will it work with the donut branch??
>
> i think so.

> I have written a small program to change the "group" permission of the
> device node soft links in "/dev/snd" folder using the "lchown". But
> still not able to get it working.
>
> This is the error which i am currently getting.
>
you can change permissions in init.rc.

>
> E/AudioHardwareALSA( 1591): Unable to attach mixer to device
> AndroidOut: Permission denied
> E/AudioHardwareALSA( 1591): Unable to attach mixer to device default:
> No such file or directory
> E/AudioHardwareALSA( 1591): Unable to attach mixer to device
> AndroidIn: Permission denied
> E/AudioHardwareALSA( 1591): Unable to attach mixer to device default:
> No such file or directory
>
>
> Thanks,
> Pramod
>
> On Jun 9, 8:08 pm, XingChao Wang <wxc...@gmail.com> wrote:
> > hi,
> >
> > i also met such issue,use latest alsa-lib and make sure /dev/snd/* right
> > permissions.
> >
> > thanks
> > --wang xingchao
> >
> > 2010/6/9 pramod <pramodkum...@gmail.com>
> >
> > > After changing the asound.conf slightly i am getting a permission
> > > denied error now.
> >
> > > Can anyone please tell me how to change the "group" field of the
> > > softlink in android.
> > > if i use chown to change group to "audio" then its changing the
> > > permission of the source file not the softlink.
> > > The chown -h option is missing in andriod, or else it could have been
> > > used.
> >
> > > Thanks,
> > > Pramod.
> >
> > > On Jun 7, 2:44 pm, pramod <pramodkum...@gmail.com> wrote:
> > > > Thanks for the reply.
> > > > The contents of my /dev/snd are given below.
> >
> > > > lrwxrwxrwx root     root              1970-01-01 00:00 timer -> /dev/
> > > > timer
> > > > lrwxrwxrwx root     root              1970-01-01 00:00 controlC0 -> /
> > > > dev/controlC0
> > > > lrwxrwxrwx root     root              1970-01-01 00:00 pcmC0D0p -> /
> > > > dev/pcmC0D0p
> > > > lrwxrwxrwx root     root              1970-01-01 00:00 pcmC0D0c -> /
> > > > dev/pcmC0D0c
> >
> > > > I am creating soft link from the /dev/ directory.
> > > > are these device nodes not enough??
> >
> > > > Pramod
> >
> > > > On Jun 7, 2:28 pm, Pavan Savoy <pavan.sa...@gmail.com> wrote:
> >
> > > > > 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<android-porting%2bunsubscr...@googlegroups.com>
> <android-porting%2bunsubscr...@googlegroups.com<android-porting%252bunsubscr...@googlegroups.com>
> >
> > > > > > website:http://groups.google.com/group/android-porting
> >
> > > > > --
> > > > > --Pavan Savoy
> >
> > > --
> > > unsubscribe: 
> > > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
> <android-porting%2bunsubscr...@googlegroups.com<android-porting%252bunsubscr...@googlegroups.com>
> >
> > > website:http://groups.google.com/group/android-porting
>
> --
> unsubscribe: 
> android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
> website: http://groups.google.com/group/android-porting
>

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

Reply via email to