snd_jack_set_key man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

SND_JACK_SET_KEY(9)	    Miscellaneous Functions	   SND_JACK_SET_KEY(9)

NAME
       snd_jack_set_key - Set a key mapping on a jack

SYNOPSIS
       int snd_jack_set_key(struct snd_jack * jack, enum snd_jack_types type,
			    int keytype);

ARGUMENTS
       jack
	   The jack to configure

       type
	   Jack report type for this key

       keytype
	   Input layer key type to be reported

DESCRIPTION
       Map a SND_JACK_BTN_ button type to an input layer key, allowing
       reporting of keys on accessories via the jack abstraction. If no
       mapping is provided but keys are enabled in the jack type then BTN_n
       numeric buttons will be reported.

       If jacks are not reporting via the input API this call will have no
       effect.

       Note that this is intended to be use by simple devices with small
       numbers of keys that can be reported. It is also possible to access the
       input device directly - devices with complex input capabilities on
       accessories should consider doing this rather than using this
       abstraction.

       This function may only be called prior to registration of the jack.

RETURN
       Zero if successful, or a negative error code on failure.

COPYRIGHT
Kernel Hackers Manual 3.11	 November 2013		   SND_JACK_SET_KEY(9)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net