From: Takashi Iwai Date: Wed, 19 Nov 2014 11:16:14 +0000 (+0100) Subject: ALSA: hda/realtek - Clean up mute/mic GPIO LED handling X-Git-Tag: omap-for-v3.19/fixes-rc1~126^2~21^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f32fd1900e6b972f289416dbd75e92772b630cb;p=pandora-kernel.git ALSA: hda/realtek - Clean up mute/mic GPIO LED handling There are a few duplicated codes handling the mute and mic-mute LEDs via GPIO pins. Let's consolidate to single helpers. Here we introduced two new fields to alc_spec, gpio_mute_led_mask and gpio_mic_led_mask, to contain the bit mask to set/clear. Also, mute_led_polarity is evaluated as well. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed