[PATCH] [UBUNTU:sound/pci/ac97/] Add codec ID to Jack Sense blacklist (ac97_patch)
crimsun at fungus.sh.nu
crimsun at fungus.sh.nu
Fri Jun 30 00:57:22 UTC 2006
Subject: [PATCH] [UBUNTU:sound/pci/ac97/] Add codec ID to Jack Sense blacklist (ac97_patch)
UpstreamStatus: Not merged
Edison Espinoza <ejem2005 at gmail.com> reported in freenode/#kubuntu that
his volume was inaudible. This commit adds his codec's ID to a new Jack
Sense blacklist. He has confirmed that muting both 'Headphone Jack
Sense' and 'Line Jack Sense' made the volume audible.
Signed-off-by: Daniel T Chen <crimsun at ubuntu.com>
---
sound/pci/ac97/ac97_patch.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
70239419195f6f03f72342bd6f77431b1015a948
diff --git a/sound/pci/ac97/ac97_patch.c b/sound/pci/ac97/ac97_patch.c
index 212fa20..75cd5cd 100644
--- a/sound/pci/ac97/ac97_patch.c
+++ b/sound/pci/ac97/ac97_patch.c
@@ -1641,6 +1641,11 @@ static unsigned int ad1981_jacks_blackli
0 /* end */
};
+static unsigned int ad1985_jacks_blacklist[] = {
+ 0x8086e002, /* confirmed by ejem2005 at gmail.com */
+ 0 /* end */
+};
+
static int check_list(ac97_t * ac97, const unsigned int * list)
{
u32 subid = ((u32)ac97->subsystem_vendor << 16) | ac97->subsystem_device;
@@ -1916,6 +1921,8 @@ static int patch_ad1985_specific(ac97_t
if ((err = patch_ad1980_specific(ac97)) < 0)
return err;
+ if (check_list(ac97, ad1985_jacks_blacklist))
+ return 0;
return patch_build_controls(ac97, snd_ac97_ad1985_controls, ARRAY_SIZE(snd_ac97_ad1985_controls));
}
--
1.1.3
--
Daniel T. Chen crimsun at ubuntu.com
GPG key: www.sh.nu/~crimsun/pubkey.gpg.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20060629/04190a31/attachment.sig>
More information about the kernel-team
mailing list