03-27-2022, 07:20 AM
I think the kernel driver just maps the button to a key such as KEY_PLAYPAUSE using snd_jack_set_key. To do anything with double or triple clicks you would need either the application to detect and handle them, or a daemon like input-remapper to generate the key events for the alternate functions.
https://github.com/sezanzeb/input-remapper
https://github.com/sezanzeb/input-remapper