mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Old kernel headers didn't define the input_id structure. Therefore we cannot
rely on it. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@386 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
c5bee95cdf
commit
719223825e
1 changed files with 12 additions and 1 deletions
|
|
@ -49,6 +49,17 @@ PA_MODULE_USAGE("device=<evdev device> sink=<sink name>")
|
||||||
|
|
||||||
#define DEFAULT_DEVICE "/dev/input/event0"
|
#define DEFAULT_DEVICE "/dev/input/event0"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This isn't defined in older kernel headers and there is no way of
|
||||||
|
* detecting it.
|
||||||
|
*/
|
||||||
|
struct _input_id {
|
||||||
|
__u16 bustype;
|
||||||
|
__u16 vendor;
|
||||||
|
__u16 product;
|
||||||
|
__u16 version;
|
||||||
|
};
|
||||||
|
|
||||||
static const char* const valid_modargs[] = {
|
static const char* const valid_modargs[] = {
|
||||||
"device",
|
"device",
|
||||||
"sink",
|
"sink",
|
||||||
|
|
@ -136,7 +147,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) {
|
||||||
struct pa_modargs *ma = NULL;
|
struct pa_modargs *ma = NULL;
|
||||||
struct userdata *u;
|
struct userdata *u;
|
||||||
int version;
|
int version;
|
||||||
struct input_id input_id;
|
struct _input_id input_id;
|
||||||
char name[256];
|
char name[256];
|
||||||
uint8_t evtype_bitmask[EV_MAX/8 + 1];
|
uint8_t evtype_bitmask[EV_MAX/8 + 1];
|
||||||
assert(c && m);
|
assert(c && m);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue