* [PATCH] HP nx6110 quirks
@ 2005-08-20 18:17 Sergey Vlasov
2005-08-20 18:41 ` Lee Revell
2005-08-22 12:43 ` Takashi Iwai
0 siblings, 2 replies; 5+ messages in thread
From: Sergey Vlasov @ 2005-08-20 18:17 UTC (permalink / raw)
To: alsa-devel
The HP nx6110 laptop needs to have Headphone Jack Sense enabled so
that the internal speakers will be turned off when headphones are
plugged in.
Also ac97_quirk=hp_only is needed to make a single Master volume in
the mixer instead of separate volumes for internal speakers and
headphones, which just confuses the user.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
---
The patch is for the current alsa-kernel CVS.
pci/ac97/ac97_patch.c | 1 +
pci/intel8x0.c | 6 ++++++
2 files changed, 7 insertions(+)
--- alsa-kernel/pci/ac97/ac97_patch.c.alt-hp-nx6110 2005-08-18 23:09:55 +0400
+++ alsa-kernel/pci/ac97/ac97_patch.c 2005-08-20 22:08:46 +0400
@@ -1629,6 +1629,7 @@ static void check_ad1981_hp_jack_sense(a
u32 subid = ((u32)ac97->subsystem_vendor << 16) | ac97->subsystem_device;
switch (subid) {
case 0x103c0890: /* HP nc6000 */
+ case 0x103c099c: /* HP nx6110 */
case 0x103c006d: /* HP nx9105 */
case 0x17340088: /* FSC Scenic-W */
/* enable headphone jack sense */
--- alsa-kernel/pci/intel8x0.c.alt-hp-nx6110 2005-08-20 22:08:49 +0400
+++ alsa-kernel/pci/intel8x0.c 2005-08-20 22:14:23 +0400
@@ -1826,6 +1826,12 @@ static struct ac97_quirk ac97_quirks[] _
},
{
.subvendor = 0x103c,
+ .subdevice = 0x099c,
+ .name = "HP nx6110", /* AD1981B */
+ .type = AC97_TUNE_HP_ONLY
+ },
+ {
+ .subvendor = 0x103c,
.subdevice = 0x129d,
.name = "HP xw8000",
.type = AC97_TUNE_HP_ONLY
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] HP nx6110 quirks
2005-08-20 18:17 [PATCH] HP nx6110 quirks Sergey Vlasov
@ 2005-08-20 18:41 ` Lee Revell
2005-08-20 19:34 ` Sergey Vlasov
2005-08-22 12:43 ` Takashi Iwai
1 sibling, 1 reply; 5+ messages in thread
From: Lee Revell @ 2005-08-20 18:41 UTC (permalink / raw)
To: Sergey Vlasov; +Cc: alsa-devel
On Sat, 2005-08-20 at 22:17 +0400, Sergey Vlasov wrote:
>
> Also ac97_quirk=hp_only is needed to make a single Master volume in
> the mixer instead of separate volumes for internal speakers and
> headphones, which just confuses the user.
The ALSA driver is supposed to expose all the hardware functionality.
It's up to the mixer apps to present it to the user in a sane way. So
if the hardware supports separate volume controls for the headphones and
internal speakers we should not disable this functionality. Why not
make three controls, Master, External Speakers and Headphones?
Lee
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] HP nx6110 quirks
2005-08-20 18:41 ` Lee Revell
@ 2005-08-20 19:34 ` Sergey Vlasov
2005-08-20 20:00 ` Lee Revell
0 siblings, 1 reply; 5+ messages in thread
From: Sergey Vlasov @ 2005-08-20 19:34 UTC (permalink / raw)
To: Lee Revell; +Cc: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]
On Sat, Aug 20, 2005 at 02:41:51PM -0400, Lee Revell wrote:
> On Sat, 2005-08-20 at 22:17 +0400, Sergey Vlasov wrote:
> >
> > Also ac97_quirk=hp_only is needed to make a single Master volume in
> > the mixer instead of separate volumes for internal speakers and
> > headphones, which just confuses the user.
>
> The ALSA driver is supposed to expose all the hardware functionality.
> It's up to the mixer apps to present it to the user in a sane way. So
> if the hardware supports separate volume controls for the headphones and
> internal speakers we should not disable this functionality. Why not
> make three controls, Master, External Speakers and Headphones?
Then we will need to create virtual controls - the chip has only two
volume control registers for this, so we will need to make three
virtual controls for volumes, then combine values and write them to
the chip. And this will need to be done inside the driver (otherwise
where the values of virtual controls will be stored while no ALSA
programs are running?). Would this be acceptable?
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] HP nx6110 quirks
2005-08-20 19:34 ` Sergey Vlasov
@ 2005-08-20 20:00 ` Lee Revell
0 siblings, 0 replies; 5+ messages in thread
From: Lee Revell @ 2005-08-20 20:00 UTC (permalink / raw)
To: Sergey Vlasov; +Cc: alsa-devel
On Sat, 2005-08-20 at 23:34 +0400, Sergey Vlasov wrote:
> Then we will need to create virtual controls - the chip has only two
> volume control registers for this, so we will need to make three
> virtual controls for volumes, then combine values and write them to
> the chip. And this will need to be done inside the driver (otherwise
> where the values of virtual controls will be stored while no ALSA
> programs are running?). Would this be acceptable?
Actually I was wrong, this is actually supposed to be handled by the new
abstract mixer layer in alsa-lib. You're right, it does not make sense
to make each mixer implement it.
I don't think it's well documented yet but AFAIK it should work.
Lee
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] HP nx6110 quirks
2005-08-20 18:17 [PATCH] HP nx6110 quirks Sergey Vlasov
2005-08-20 18:41 ` Lee Revell
@ 2005-08-22 12:43 ` Takashi Iwai
1 sibling, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2005-08-22 12:43 UTC (permalink / raw)
To: Sergey Vlasov; +Cc: alsa-devel
At Sat, 20 Aug 2005 22:17:30 +0400,
Sergey Vlasov wrote:
>
> The HP nx6110 laptop needs to have Headphone Jack Sense enabled so
> that the internal speakers will be turned off when headphones are
> plugged in.
>
> Also ac97_quirk=hp_only is needed to make a single Master volume in
> the mixer instead of separate volumes for internal speakers and
> headphones, which just confuses the user.
>
> Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Thanks, applied to CVS.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-08-22 12:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-20 18:17 [PATCH] HP nx6110 quirks Sergey Vlasov
2005-08-20 18:41 ` Lee Revell
2005-08-20 19:34 ` Sergey Vlasov
2005-08-20 20:00 ` Lee Revell
2005-08-22 12:43 ` Takashi Iwai
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.