From patchwork Sun Jan 23 17:22:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Karcher X-Patchwork-Id: 499221 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0NHhncI028332 for ; Sun, 23 Jan 2011 17:43:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751219Ab1AWRnh (ORCPT ); Sun, 23 Jan 2011 12:43:37 -0500 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:50157 "EHLO outpost1.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197Ab1AWRng (ORCPT ); Sun, 23 Jan 2011 12:43:36 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 23 Jan 2011 17:43:50 +0000 (UTC) X-Greylist: delayed 1256 seconds by postgrey-1.27 at vger.kernel.org; Sun, 23 Jan 2011 12:43:36 EST Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1Ph3eA-0004o3-FI>; Sun, 23 Jan 2011 18:22:38 +0100 Received: from i577b7113.versanet.de ([87.123.113.19] helo=localhost.localdomain) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1Ph3eA-0004hH-AS>; Sun, 23 Jan 2011 18:22:38 +0100 From: Michael Karcher To: lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] Probe for output switch method when searching video devices. Date: Sun, 23 Jan 2011 18:22:34 +0100 Message-Id: <1295803354-5298-1-git-send-email-kernel@mkarcher.dialup.fu-berlin.de> X-Mailer: git-send-email 1.7.2.3 X-Originating-IP: 87.123.113.19 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index 42d3d72..5af3479 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -82,6 +82,11 @@ long acpi_is_video_device(struct acpi_device *device) if (!device) return 0; + /* Is this device able to support video switching ? */ + if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_DOD", &h_dummy)) || + ACPI_SUCCESS(acpi_get_handle(device->handle, "_DOS", &h_dummy))) + video_caps |= ACPI_VIDEO_OUTPUT_SWITCHING; + /* Is this device able to retrieve a video ROM ? */ if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_ROM", &h_dummy))) video_caps |= ACPI_VIDEO_ROM_AVAILABLE;