From: Mikael Magnusson <mikaelmagnusson@glocalnet.net>
To: alsa-devel@alsa-project.org
Subject: [PATCH 1/5] emu10k1 SB Live: Master volume and front channels via fxbus 8,9
Date: Mon, 21 Feb 2005 20:44:58 +0100 [thread overview]
Message-ID: <421A3A3A.6070009@glocalnet.net> (raw)
[-- 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 */
next reply other threads:[~2005-02-21 19:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-21 19:44 Mikael Magnusson [this message]
2005-02-22 8:31 ` [PATCH 1/5] emu10k1 SB Live: Master volume and front channels via fxbus 8,9 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
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=421A3A3A.6070009@glocalnet.net \
--to=mikaelmagnusson@glocalnet.net \
--cc=alsa-devel@alsa-project.org \
/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.