You can use aumix to do this.
 
We put the following line in the /etc/rc.d/rc.local to set the required values 
at boot time...
 
/usr/bin/aumix -m R -m 100 -v 80
 
This sets the mic input as the record source, sets the mic volume to 100% and 
the output volume to 80%
 
If you want to see the values first, an 'aumix -q' will do that (according to 
the man page - I do not currently have a DM355 available to try it on). 
 
Regards
 
Phil Q
 
Phil Quiney, Principal Software Engineer
Trinity Convergence
Cambridge Business Park
Cowley Road
Cambridge CB4 0WZ, UK
T: +44(0)1223-435536
F: +44(0)1223-435560
www.trinityconvergence.com <http://www.trinityconvergence.com/> 

 

________________________________

From: ashish pareek [mailto:[EMAIL PROTECTED] 
Sent: 22 October 2008 11:00
To: Phil Quiney
Cc: [email protected]
Subject: Re: Re: RE: Audio demo (AIC33)



  Hi ,
How mixer settings are done ? I want mic in settings with 100% gain .
Before that i want to see existing settings .


Ashish

>On Tue, 07 Oct 2008 Phil Quiney wrote :
> >Hi,
> >
> >Can you not just open /dev/dsp and read that device, writing to FLASH as & 
> >when you need to.
> >
> >You can configure the device for sample rate and bits/sample via OSS ioctls.
> >
> >The attached program could be used as a starting point. This is one of our 
> >test programs we use when validating audio on a target.
> >
> >Just run it with...
> >
> >./trinity_au -f 16000 -r somefile.wav
> >
> >That will record at 16bit 16kHz and write out a .wav file. If you omit the 
> >.wav it will write a raw file (which may be closer to what you need).
> >
> >If you omit the -f option it will do 44.1kHz. Note that the number of 
> >channels defaults to 2 (stereo). You should be able to set it to mono by 
> >specifying -c 1 but this does not work on the davinci as the driver is 
> >stereo only.
> >
> >Run it with -h for a full list of options - I can't guarantee that all of 
> >them work though.
> >
> >Regards
> >
> >Phil Q
> >
> >Phil Quiney, Senior Software Engineer
> >Trinity Convergence
> >Cambridge Business Park
> >Cowley Road
> >Cambridge CB4 0WZ, UK
> >T: +44(0)1223-435536
> >F: +44(0)1223-435560
> >www.trinityconvergence.com <http://www.trinityconvergence.com/>
> >
> >
> >
> >________________________________
> >
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ashish pareek
> >Sent: 07 October 2008 09:58
> >To: [email protected]
> >Subject: Audio demo (AIC33)
> >
> >
> >
> >
> >Hi All,
> >
> >My application requires to use TLV320AIC33 stereo audio codec IC to store 
> >audio samples every quarter of sec to nand .I am new to such application 
> >.Could any one help me with some demo /reference code .
> >
> >I will appreciate such help.
> >
> >Ashish
> >
> >
> >
> >Black578x38_banner2.gif 
> ><http://adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/signature-home.htm/[EMAIL
> > PROTECTED]/2606998_2599290/2602379/1?PARTNER=3&OAS_QUERY=null>




Rediff Shopping  
<http://adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/signature-home.htm/[EMAIL
 PROTECTED]/2206641_2199021/2201650/1?PARTNER=3&OAS_QUERY=null>   
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to