All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] emu10k1 SB Live: Master volume and front channels via fxbus 8,9
@ 2005-02-21 19:44 Mikael Magnusson
  2005-02-22  8:31 ` Jaroslav Kysela
  0 siblings, 1 reply; 12+ messages in thread
From: Mikael Magnusson @ 2005-02-21 19:44 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

This is the first in a set of five patches that add master volume and 
switch controls and front pcm channels via fxbus 8,9 to SB Live.

master_volume.patch:

Adds "Master Digital Playback Volume" which controls all six pcm 
playback channels.

Signed-Off-By: Mikael Magnusson <mikma@users.sourceforge.net>

[-- Attachment #2: master_volume.patch --]
[-- Type: text/x-patch, Size: 1020 bytes --]

diff -u alsa-kernel/pci/emu10k1/emufx.c alsa-kernel/pci/emu10k1/emufx.c
--- alsa-kernel/pci/emu10k1/emufx.c	21 Feb 2005 13:33:30 -0000
+++ alsa-kernel/pci/emu10k1/emufx.c	21 Feb 2005 13:33:52 -0000
@@ -934,7 +934,7 @@
 	return err;
 }
 
-#define SND_EMU10K1_GPR_CONTROLS	41
+#define SND_EMU10K1_GPR_CONTROLS	43
 #define SND_EMU10K1_INPUTS		10
 #define SND_EMU10K1_PLAYBACK_CHANNELS	8
 #define SND_EMU10K1_CAPTURE_CHANNELS	4
@@ -1780,6 +1780,19 @@
 	}
 
 	/*
+	 * Master Volume
+	 */
+	for (z = 0; z < 6; z++) {
+		SWITCH(icode, &ptr, playback + z, playback + z, gpr + 0);
+		VOLUME(icode, &ptr, playback + z, playback + z, gpr + 1);
+	}
+
+	snd_emu10k1_init_mono_onoff_control(controls + i++, "Master Digital Playback Switch", gpr + 0, 0);
+	snd_emu10k1_init_mono_control(controls + i++, "Master Digital Playback Volume", gpr + 1, 0);
+	gpr += 2;
+
+
+	/*
 	 *  Process tone control
 	 */
 	OP(icode, &ptr, iACC3, GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 0), GPR(playback + 0), C_00000000, C_00000000); /* left */

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-02-25 16:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-21 19:44 [PATCH 1/5] emu10k1 SB Live: Master volume and front channels via fxbus 8,9 Mikael Magnusson
2005-02-22  8:31 ` Jaroslav Kysela
2005-02-22 10:19   ` Mikael Magnusson
2005-02-22 10:19     ` Jaroslav Kysela
2005-02-22 11:38       ` Mikael Magnusson
2005-02-22 12:01         ` Jaroslav Kysela
2005-02-22 22:04   ` Lee Revell
2005-02-23  8:22     ` Jaroslav Kysela
2005-02-23  8:57       ` Mikael Magnusson
2005-02-23  9:00         ` Jaroslav Kysela
2005-02-23 10:22           ` Takashi Iwai
2005-02-25 16:59             ` Lee Revell

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.