]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0806feb9cef94b6462066950a05823eb5f4bfea5
treee2d9821c979cea3b9917602b426a8de1021aac0a
parent9a08cb3c3c0c3caf0d3591302472bb39eff87acd
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