|
@@ -46,7 +46,6 @@
|
|
|
|
|
|
#define PREFIX "ACPI: "
|
|
#define PREFIX "ACPI: "
|
|
|
|
|
|
-#define ACPI_VIDEO_CLASS "video"
|
|
|
|
#define ACPI_VIDEO_BUS_NAME "Video Bus"
|
|
#define ACPI_VIDEO_BUS_NAME "Video Bus"
|
|
#define ACPI_VIDEO_DEVICE_NAME "Video Device"
|
|
#define ACPI_VIDEO_DEVICE_NAME "Video Device"
|
|
#define ACPI_VIDEO_NOTIFY_SWITCH 0x80
|
|
#define ACPI_VIDEO_NOTIFY_SWITCH 0x80
|
|
@@ -1445,7 +1444,8 @@ static void acpi_video_bus_notify(struct acpi_device *device, u32 event)
|
|
case ACPI_VIDEO_NOTIFY_SWITCH: /* User requested a switch,
|
|
case ACPI_VIDEO_NOTIFY_SWITCH: /* User requested a switch,
|
|
* most likely via hotkey. */
|
|
* most likely via hotkey. */
|
|
acpi_bus_generate_proc_event(device, event, 0);
|
|
acpi_bus_generate_proc_event(device, event, 0);
|
|
- keycode = KEY_SWITCHVIDEOMODE;
|
|
|
|
|
|
+ if (!acpi_notifier_call_chain(device, event, 0))
|
|
|
|
+ keycode = KEY_SWITCHVIDEOMODE;
|
|
break;
|
|
break;
|
|
|
|
|
|
case ACPI_VIDEO_NOTIFY_PROBE: /* User plugged in or removed a video
|
|
case ACPI_VIDEO_NOTIFY_PROBE: /* User plugged in or removed a video
|
|
@@ -1475,7 +1475,8 @@ static void acpi_video_bus_notify(struct acpi_device *device, u32 event)
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
- acpi_notifier_call_chain(device, event, 0);
|
|
|
|
|
|
+ if (event != ACPI_VIDEO_NOTIFY_SWITCH)
|
|
|
|
+ acpi_notifier_call_chain(device, event, 0);
|
|
|
|
|
|
if (keycode) {
|
|
if (keycode) {
|
|
input_report_key(input, keycode, 1);
|
|
input_report_key(input, keycode, 1);
|