ALSA: hda/realtek - Manage GPIO bits commonly
authorTakashi Iwai <tiwai@suse.de>
Tue, 19 Jun 2018 20:22:41 +0000 (22:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Jun 2018 08:04:22 +0000 (10:04 +0200)
commit5579cd6f6629bc1e09b3b2d13ab7a1ed371c5ac2
treee2d9821c979cea3b9917602b426a8de1021aac0a
parent1c76aa5fb48d8357f38fb2f1d2cef742a617d695
ALSA: hda/realtek - Manage GPIO bits commonly

Currently the GPIO bits are managed by individual verbs in some cases
while toggled dynamically in other cases.  For simplifying the GPIO
management, define the GPIO mask, dir and data bits in alc_spec
fields, and refer to / set them consistently from all places.

As a first step, along with the definition of the new gpio_* fields,
this patch replaces the static verbs that are used at initialization
and fixups with the common helper functions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c