]> git.ipfire.org Git - thirdparty/linux.git/commit - sound/pci/hda/patch_realtek.c
ALSA: hda - Get rid of action field from struct hda_jack_tbl
authorTakashi Iwai <tiwai@suse.de>
Thu, 11 Sep 2014 12:06:53 +0000 (14:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 11 Sep 2014 12:14:21 +0000 (14:14 +0200)
commit62f949bf6bf6ceb44872c44ef3913a96d93fb5d4
tree6fb4df39d050165aa24243b80c4dc763d6b8e8c9
parent998052b74574699bdd1e451b6556e4d7667a7a4e
ALSA: hda - Get rid of action field from struct hda_jack_tbl

The action value assigned to each hda_jack_tbl entry is mostly
superfluous.  The actually used values are either the widget NID or a
value specific to the callback.

The former case can be simply replaced by a reference to widget NID
itself.  The only place doing the latter is STAC/IDT codec driver for
the powermap handling.  But, the code doesn't need to check the action
field at all -- the function jack_update_power() is called either with
a specific pin or with NULL.  So the check of jack->action can be
removed completely there, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_generic.h
sound/pci/hda/hda_jack.c
sound/pci/hda/hda_jack.h
sound/pci/hda/patch_ca0132.c
sound/pci/hda/patch_cirrus.c
sound/pci/hda/patch_hdmi.c
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_via.c