diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-11-28 14:17:58 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-12-07 11:42:33 +0100 |
commit | e6ce180fa6df519b1e24dab9d1fcbe32ce618a5e (patch) | |
tree | c2689e3f5b4bf1bc52136c048c61ae24d9808820 /sound/pci/hda/hda_jack.h | |
parent | Merge branch 'for-linus' into for-next (diff) | |
download | linux-e6ce180fa6df519b1e24dab9d1fcbe32ce618a5e.tar.xz linux-e6ce180fa6df519b1e24dab9d1fcbe32ce618a5e.zip |
ALSA: hda - Add jack pointer and unsolicited event bits to callback
For allowing the callee to evaluate the associated jack information
and the unsolicited event data, add the new fields to
hda_jack_callback. They can be used, for example, to retrieve the
headset button state in the callback.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_jack.h')
-rw-r--r-- | sound/pci/hda/hda_jack.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_jack.h b/sound/pci/hda/hda_jack.h index e9814c0168ea..695a652cc6b3 100644 --- a/sound/pci/hda/hda_jack.h +++ b/sound/pci/hda/hda_jack.h @@ -24,6 +24,8 @@ struct hda_jack_callback { hda_nid_t nid; hda_jack_callback_fn func; unsigned int private_data; /* arbitrary data */ + unsigned int unsol_res; /* unsolicited event bits */ + struct hda_jack_tbl *jack; /* associated jack entry */ struct hda_jack_callback *next; }; |