From: Takashi Iwai Date: Fri, 8 May 2009 13:57:59 +0000 (+0200) Subject: ALSA: hda - Clean up Realtek auto-mute unsol routines X-Git-Tag: v2.6.31-rc1~363^2~20^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9fd4f3fcdc7e5757424f7e5888f660cf34bb1a9;p=pandora-kernel.git 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 --- Reading git-diff-tree failed