All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: Takashi Iwai <tiwai@suse.de>
Cc: Jaroslav Kysela <perex@suse.cz>,
	alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: Major problem with the current alsa mixer.
Date: Fri, 12 Sep 2003 16:44:38 +0100	[thread overview]
Message-ID: <3F61E9E6.10403@superbug.demon.co.uk> (raw)
In-Reply-To: <s5h7k4egjve.wl@alsa2.suse.de>

Takashi Iwai wrote:
> At Fri, 12 Sep 2003 13:46:39 +0100,
> James Courtier-Dutton wrote:
>>
>>Zero as a minimum value is not very meaningfull in audio terms. With a 
>>mixer, the zero dB point is probably more use. The minimum value of a 
>>slider should be the equivalent of mute, so I think that instead of a 
>>minimum value, it should display "mute" for the user.
> 
> 
> it's not always true.  some codes provide the minimum value which
> doesn't mean mute.  in this case, another lower value would be needed
> as the meaming of really minimum "mute".
> 
> 
>>The user should be able to reduce the volume, and if they hit the 
>>minimum, mute automatically becomes active, but if they increase the 
>>volume again, mute automatically is disabled. I am thinking about the 
>>way a TV volume/mute control works. If one is muted, turning volume up 
>>or down automatically un-mutes the sound. This programming could 
>>probably be done at the application level, but I think that as so many 
>>people would want it that way, it should maybe move to alsa-lib.
> 
> 
> hmm, it's a question whether it should go into alsa-lib.
> another upper library seems better for me.
> 
> note that i don't mean against this idea at all - i'm absolutely for
> this :)
> the real problem is, of course, how to implement it for _all_
> soundcards and architectures...
>  
> 
> Takashi
> 
> 
So, if we can agree on how the mixers will behave consistently in the 
application. I prefer the dB range myself, with 0 dB or -3.4 dB meaning 
the same thing for all sound cards, and minimul volume causing a "mute" 
to happen. (I think most TV and HiFi's work that way)
If a user has two different sound cards, the same mixer value on both 
cards should give the exact same volume out of the speakers.

We then modify alsa-lib and alsa-kernel to apply this behaviour to all 
sound cards.
I only initially thought that alsa-kernel was the best place, because 
the snd-emu10k1 happens to have a volume lookup table already, so I 
thought that it would be easy to apply that to all sound cards. It seems 
sensible to me, to do all hardware specific activity in a kernel module, 
and anything that it not strictly hardware specific in alsa-lib if 
possible. The kernel module will know if the minimum volume value in the 
volume register is mute or not, and can decide to activate a separate 
mute register if needed. I don't think alsa-lib can really provide this 
hardware specific functionallity.

Are there any sound cards where this "consistency in the application" is 
not possible?

Cheers
James



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  reply	other threads:[~2003-09-12 15:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-12  0:14 Major problem with the current alsa mixer James Courtier-Dutton
2003-09-12  7:23 ` Jaroslav Kysela
2003-09-12  8:57   ` Takashi Iwai
2003-09-12 10:31     ` Jaroslav Kysela
2003-09-12 10:37       ` Takashi Iwai
2003-09-12 10:50         ` Jaroslav Kysela
2003-09-12 12:46   ` James Courtier-Dutton
2003-09-12 14:29     ` Takashi Iwai
2003-09-12 15:44       ` James Courtier-Dutton [this message]
2003-09-12 16:05         ` Takashi Iwai
2003-09-15 11:26           ` tom burkart

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=3F61E9E6.10403@superbug.demon.co.uk \
    --to=james@superbug.demon.co.uk \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=perex@suse.cz \
    --cc=tiwai@suse.de \
    /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.