Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1561
b: refs/heads/master
c: 091bf4d
h: refs/heads/master
i:
  1559: aa968b0
v: v3
  • Loading branch information
Ville Syrjala authored and Jaroslav Kysela committed May 29, 2005
1 parent 06b1ed1 commit 46abd9a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: db68d15da00f64bef2c8c822baab42aff39ae774
refs/heads/master: 091bf4dcab10b083f944d4eafbe0c734786485fe
12 changes: 12 additions & 0 deletions trunk/sound/pci/maestro3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,18 @@ snd_m3_chip_init(m3_t *chip)
DISABLE_LEGACY);
pci_write_config_word(pcidev, PCI_LEGACY_AUDIO_CTRL, w);

/*
* Volume buttons on some HP OmniBook laptops (500 and 6000 at least)
* don't work correctly. This makes them work for the most part.
* Volume up and down buttons on the laptop side work perfectly.
* Fn+cursor_up (volme up) works, Fn+cursor_down (volume down) doesn't,
* Fn+F8 (mute) works acts as volume up.
*/
outw(~(GPI_VOL_DOWN|GPI_VOL_UP), io + GPIO_MASK);
outw(inw(io + GPIO_DIRECTION) & ~(GPI_VOL_DOWN|GPI_VOL_UP), io + GPIO_DIRECTION);
outw((GPI_VOL_DOWN|GPI_VOL_UP), io + GPIO_DATA);
outw(0xffff, io + GPIO_MASK);

pci_read_config_dword(pcidev, PCI_ALLEGRO_CONFIG, &n);
n &= ~HV_BUTTON_FROM_GD;
n |= HV_CTRL_ENABLE | REDUCED_DEBOUNCE;
Expand Down

0 comments on commit 46abd9a

Please sign in to comment.