summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia_codec.c
diff options
context:
space:
mode:
authorDeanna Phillips <deanna@cvs.openbsd.org>2007-09-11 05:17:48 +0000
committerDeanna Phillips <deanna@cvs.openbsd.org>2007-09-11 05:17:48 +0000
commit2705b0e801d004d3287f309fb2b7729ec1a56332 (patch)
treee1d27e994ef130c54e479d2dc6e63ad26a990ec9 /sys/dev/pci/azalia_codec.c
parent0b0518f4451548e9da85e038543b4407a055051e (diff)
For STAC9221 Macs - no need to max the DAC volumes now that a master
is available.
Diffstat (limited to 'sys/dev/pci/azalia_codec.c')
-rw-r--r--sys/dev/pci/azalia_codec.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c
index cea2f2dd83f..0667ec6a325 100644
--- a/sys/dev/pci/azalia_codec.c
+++ b/sys/dev/pci/azalia_codec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia_codec.c,v 1.34 2007/09/11 05:14:42 deanna Exp $ */
+/* $OpenBSD: azalia_codec.c,v 1.35 2007/09/11 05:17:47 deanna Exp $ */
/* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */
/*-
@@ -2550,25 +2550,6 @@ azalia_stac9221_apple_mixer_init(codec_t *this)
azalia_generic_mixer_set(this, 0x0d, MI_TARGET_PINDIR, &mc); /* line out */
azalia_generic_mixer_set(this, 0x0f, MI_TARGET_PINDIR, &mc); /* another line out */
- /* max all volumes except master */
- mc.type = AUDIO_MIXER_VALUE;
- mc.un.value.num_channels = 2;
- mc.un.value.level[0] = azalia_generic_mixer_max(this, 0x02, MI_TARGET_OUTAMP);
- mc.un.value.level[1] = mc.un.value.level[0];
- azalia_generic_mixer_set(this, 0x02, MI_TARGET_OUTAMP, &mc);
-
- mc.un.value.level[0] = azalia_generic_mixer_max(this, 0x03, MI_TARGET_OUTAMP);
- mc.un.value.level[1] = mc.un.value.level[0];
- azalia_generic_mixer_set(this, 0x03, MI_TARGET_OUTAMP, &mc);
-
- mc.un.value.level[0] = azalia_generic_mixer_max(this, 0x04, MI_TARGET_OUTAMP);
- mc.un.value.level[1] = mc.un.value.level[0];
- azalia_generic_mixer_set(this, 0x04, MI_TARGET_OUTAMP, &mc);
-
- mc.un.value.level[0] = azalia_generic_mixer_max(this, 0x05, MI_TARGET_OUTAMP);
- mc.un.value.level[1] = mc.un.value.level[0];
- azalia_generic_mixer_set(this, 0x05, MI_TARGET_OUTAMP, &mc);
-
azalia_stac9221_gpio_unmute(this, 0);
azalia_stac9221_gpio_unmute(this, 1);