Skip to content

Commit

Permalink
ALSA: hda - Clean up Realtek auto-mute unsol routines
Browse files Browse the repository at this point in the history
Most of unsol handlers defined in patch_realtek.c can be classified to
two types, mute via amp of pins and mute via ctl bits of pins.
Thus there are a big room to generalize each implementation.

This patch creates two generic functions, alc_automute_amp() and
alc_automute_pin().  The latter is actually changed from the previous
alc_sku_automute().  Each caller needs to initialize hp_pins and
speaker_pins properly at own init_hook.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed May 8, 2009
1 parent b72519b commit a9fd4f3
Showing 1 changed file with 311 additions and 590 deletions.
Loading

0 comments on commit a9fd4f3

Please sign in to comment.