Assuming that device is initialized for its sampling parameters (sample size n freq.), channels etc. following piece of code will help in controlling the volume.
int ret = 0, arg; static int vol_ctrl = 0; //init with user volume parameter const int VOL_STEP = 5; // MIN->MAX in 79 steps ideally vol_ctrl += VOL_STEP; arg = vol_ctrl; ret = ioctl(Fd, SOUND_MIXER_WRITE_VOLUME, &arg); If someone knows where it is documented, I am also interested. Cheers! Shreshtha Kumar _____ From: Will Tucker [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 17, 2007 1:52 AM To: [email protected] Subject: Audio Volume Control Has Any one been able to control the Audio volume on the Davinci. Please point me to documentation on it and possibly the file that controls it. Thanks, Will T. _____ Ahhh...imagining that irresistible "new car" smell? Check out new <http://us.rd.yahoo.com/evt=48245/*http:/autos.yahoo.com/new_cars.html;_ylc= X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-> cars at Yahoo! Autos.
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
