diff --git a/hald/linux/addons/addon-input.c b/hald/linux/addons/addon-input.c index 96d422d..26256bf 100644 --- a/hald/linux/addons/addon-input.c +++ b/hald/linux/addons/addon-input.c @@ -248,6 +248,11 @@ event_io (GIOChannel *channel, GIOCondition condition, gpointer data) case SW_HEADPHONE_INSERT: name = "headphone_insert"; break; +#ifdef SW_RADIO + case SW_RADIO: + name = "radio"; + break; +#endif } if (name != NULL) { long bitmask[NBITS(SW_MAX)]; diff --git a/hald/linux/device.c b/hald/linux/device.c index 8e4e808..6ec71d1 100644 --- a/hald/linux/device.c +++ b/hald/linux/device.c @@ -239,6 +239,10 @@ input_test_switch (HalDevice *d, const char *sysfs_path) hal_device_property_set_string (d, "button.type", "tablet_mode"); } else if (test_bit (SW_HEADPHONE_INSERT, bitmask)) { hal_device_property_set_string (d, "button.type", "headphone_insert"); +#ifdef SW_RADIO + } else if (test_bit (SW_RADIO, bitmask)) { + hal_device_property_set_string (d, "button.type", "radio"); +#endif } } diff --git a/hald/linux/probing/probe-input.c b/hald/linux/probing/probe-input.c index 6ace0fa..14b22b4 100644 --- a/hald/linux/probing/probe-input.c +++ b/hald/linux/probing/probe-input.c @@ -81,6 +81,10 @@ main (int argc, char *argv[]) sw = SW_TABLET_MODE; else if (strcmp (button_type, "headphone_insert") == 0) sw = SW_HEADPHONE_INSERT; +#ifdef SW_RADIO + else if (strcmp (button_type, "radio") == 0) + sw = SW_RADIO; +#endif else goto out;