From: Klaas De Craemer <klaasdc@gmail.com>
To: alsa-devel@alsa-project.org
Subject: [PATCH] Sigmatel stac92hd71b7 low HP volume
Date: Sun, 5 Oct 2008 22:10:46 +0200 [thread overview]
Message-ID: <200810052210.46360.klaasdc@gmail.com> (raw)
Hello,
A few days ago, I posted a patch to the linux kernel list, but afterwards I realised that it is
more appropriate for the alsa list. So I repost it here.
Below is my patch for an issue on Dell E6500 notebooks with the Sigmatel stac92hd71b7 codec. In
the default snd-hda-intel configuration, the sound going to the headphone jack
goes comes directly from the DAC, resulting in very low volume output. The patch changes the
codec's widget connections so that the internal mixer is put in between and sets its
input amplifiers to the maximum value. The output to the internal speaker port has been left
untouched.
I have tested this and it gives a much better output.
Klaas De Craemer
diff -uNr linux-2.6.26.5/sound/pci/hda/patch_sigmatel.c
linux-2.6.26.5.new/sound/pci/hda/patch_sigmatel.c
--- linux-2.6.26.5/sound/pci/hda/patch_sigmatel.c 2008-09-08 19:40:20.000000000 +0200
+++ linux-2.6.26.5.new/sound/pci/hda/patch_sigmatel.c 2008-10-02 20:08:51.000000000 +0200
@@ -624,6 +624,22 @@
{}
};
+static struct hda_verb stac92hd71b7_core_init[] = {
+ /* set master volume and direct control */
+ { 0x28, AC_VERB_SET_VOLUME_KNOB_CONTROL, 0xff},
+ /* connect headphone jack to mixer */
+ { 0x0a, AC_VERB_SET_CONNECT_SEL, 0x02},
+ /* unmute right and left channels for nodes 0x0a, 0xd, 0x0f */
+ { 0x0a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)},
+ { 0x0d, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)},
+ { 0x0f, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)},
+
+ /* Increase mixer volume for the two dac's */
+ { 0x17, 0x370, 0x7f },
+ { 0x17, 0x371, 0x7f },
+ {}
+};
+
static struct hda_verb stac92hd71bxx_core_init[] = {
/* set master volume and direct control */
{ 0x28, AC_VERB_SET_VOLUME_KNOB_CONTROL, 0xff},
@@ -3642,6 +3658,10 @@
spec->mixer = stac92hd71bxx_mixer;
spec->init = stac92hd71bxx_core_init;
break;
+ case 0x111d76b2: /* Dell E6500 stac92hd71b7 configuration */
+ spec->mixer = stac92hd71bxx_mixer;
+ spec->init = stac92hd71b7_core_init;
+ break;
default:
spec->mixer = stac92hd71bxx_analog_mixer;
spec->init = stac92hd71bxx_analog_core_init;
next reply other threads:[~2008-10-05 20:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-05 20:10 Klaas De Craemer [this message]
2008-10-06 9:44 ` [PATCH] Sigmatel stac92hd71b7 low HP volume Takashi Iwai
[not found] ` <200810061248.43643.klaasdc@gmail.com>
2008-10-06 10:57 ` Takashi Iwai
2008-10-06 17:10 ` Klaas De Craemer
2008-10-07 5:44 ` Takashi Iwai
2008-10-07 9:46 ` Klaas De Craemer
2008-10-07 10:07 ` Takashi Iwai
2008-10-07 22:41 ` Klaas De Craemer
2008-10-08 6:36 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2008-10-02 19:45 Klaas De Craemer
2008-10-08 21:50 ` Andrew Morton
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=200810052210.46360.klaasdc@gmail.com \
--to=klaasdc@gmail.com \
--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.