All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Gladkikh <batyi@mail.ru>
To: alsa-devel@lists.sourceforge.net
Subject: alsa-lib: Volume control emulation plugin
Date: Sat, 18 Dec 2004 23:10:50 +0600	[thread overview]
Message-ID: <41C4649A.9090608@mail.ru> (raw)

Hello.

I have on-board sound card which has been mentioned for example in bug
"[ALSA - driver 0000725]: Intel8x0, chip CMI9761A - no volume control, 
sound mixer broken"
AFAIK this sound card indeed has no hardware PCM volume control and its 
"Master" volume control affects only sound which comes from analog 
inputs. IMHO following solutions which were offered elsewhere look not 
very elegant (at leas for me ;)
1. "I suggest that forget the mixer and tune the speaker volume."
2. "To reduce the volume, decrease the output level in the application." 
(I just unable to rewrite every application I need)
3. "use Intel8x0 driver and an extra sound demon (e.g. KDE's artsd)"
4. "use CMedia's OSS driver (avail. at 
http://www.cmedia.com.tw/download/e_UDA9738_linux_01.htm)"
5. "curse CMedia for building such a crappy chip; curse them again for 
not releasing an ALSA driver; curse NVidia for using such a crappy chip 
(older nforce boards had a better chip on-board..); in the end, buy an 
extra sound card and be happy :)"

It seems then that the right solution is to write an ALSA lib plug-in which
1. Accepts input in some format and puts it out being multiplied by some 
coefficient 0.0..1.0
2. Provides software emulated volume control which can change the 
coefficient (so ALSA applications can use it)

"route" plug-in is almost there but it allows to set volume in 
configuration file not dynamically, and I do not know how to emulate 
volume control in ALSA lib with it.

So here is the question: does anyone have written/going to write such 
plug-in? If so how can I help to make it happen (testing, write some 
code)? (I do not have experience with ALSA to write it completely by 
myself).

BTW I was unable to read bug track database even for read-only due to 
denied access. Is there any anonymous access?

/ Petr Gladkikh





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

                 reply	other threads:[~2004-12-18 17:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41C4649A.9090608@mail.ru \
    --to=batyi@mail.ru \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.