瀏覽代碼

ALSA: hda - Clean up Realtek auto-mute unsol routines

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>
Takashi Iwai 16 年之前
父節點
當前提交
a9fd4f3fcd
共有 1 個文件被更改,包括 230 次插入429 次删除
  1. 230 429
      sound/pci/hda/patch_realtek.c

File diff suppressed because it is too large
+ 230 - 429
sound/pci/hda/patch_realtek.c


Some files were not shown because too many files changed in this diff