From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001318]: Volume control per PCM Date: Sun, 5 Feb 2006 14:42:03 +0100 Message-ID: <381579adf69902fa905f71c80c07b42b@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 2E312193 for ; Sun, 5 Feb 2006 14:42:04 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: darkbrain Assigned To: ====================================================================== Project: ALSA - driver Issue ID: 1318 Category: PCI - cs46xx Reproducibility: N/A Severity: feature Priority: normal Status: new Distribution: Kernel Version: ====================================================================== Date Submitted: 08-07-2005 14:45 CEST Last Modified: 02-05-2006 14:42 CET ====================================================================== Summary: Volume control per PCM Description: Hi, i'm trying to implement a volume control per PCM streams, i've attached a function that does the job. Unfortunally when it change the volume it also change the equalizer cutting off low frequencyes. I think there is a problem with the second poke, infact withot that poke, the volume works correctly for left case. Any suggestion? Any documentation? Thanks, Dino ====================================================================== ---------------------------------------------------------------------- darkbrain - 02-05-06 13:19 ---------------------------------------------------------------------- For now we can simply add a vomune control per pcm in the mixer, after that it should be proposed a new alsa api (just proposed) and than it should be usable in a program. My target is to add this feature into openal just to speed up a bit the library. ---------------------------------------------------------------------- Raymond - 02-05-06 14:42 ---------------------------------------------------------------------- For those soundcard which support hardware mixing (usually device 0 have multiple subdevices). pcm volume kcontrol with .iface = SNDRV_CTL_ELEM_IFACE_PCM snd_pcm_set_hardvol(snd_pcm_t *pcm, float *dB) Function : to set the volume in deciBel of the different(2/4/....) channels of the pcm substream using the hardware mixer of the sound card. Issue History Date Modified Username Field Change ====================================================================== 08-07-05 14:45 darkbrain New Issue 08-07-05 14:45 darkbrain File Added: volume.c 08-13-05 10:43 darkbrain Note Added: 0005802 01-10-06 12:55 darkbrain Note Added: 0007548 02-05-06 04:55 Raymond Note Added: 0007929 02-05-06 05:33 Raymond Note Edited: 0007929 02-05-06 13:19 darkbrain Note Added: 0007932 02-05-06 14:42 Raymond Note Added: 0007934 ====================================================================== ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642