Daniel Jacobowitz schrieb: > On Thu, Jan 11, 2007 at 03:54:55PM +0100, Ingo Müller wrote: >> 1) A mute/unmute function. I think this is the most easy job. > > I've got code for this lying around somewhere, though I'm not sure > where. But... Sounds great! That'd be awesome if this would find its way into the official alsa code! > Take a look at the "ganged volume" patch I posted to this list, at the > beginning of the month. In general, when the kernel master volume > only controls the front channels, that's because it's how the card's > control registers work; ganged volume lets you add a kernel control > that moves things up and down in sync. It's a bit better than using > softvol, because you don't have to do any processing of the samples > as they pass through. > > It's to solve exactly what you're describing. That sounds good, too! Unfortunately, I don't understand C code very well, and nothing of kernel programming at all. I doubt whether I would be able to apply the patch, even if I used the same module as you do (which I don't). On Sat, Oct 14, 2006 at 04:37:37PM -0400, Daniel Jacobowitz wrote: > Here's an implementation of a ganged volume control. I suspect it > could be improved with advice from a maintainer; I'm happy to revise > it. It works in every way I've been able to test it. I suspect plenty > of other devices could benefit from this; probably even some not AC97 > based, so maybe it ought to move elsewhere, but at least it's a start. I do also think that this piece of code (as far as I understan it) should be used more often or more centrally! On many sound cards, the master volume doesn't seem to control the volume of all channels (which it should definitely). Greetings, Ingo ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel