vga_switcheroo: Add a helper function to get the client state
authorTakashi Iwai <tiwai@suse.de>
Thu, 7 Jun 2012 10:15:15 +0000 (12:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 8 Jun 2012 09:24:12 +0000 (11:24 +0200)
commitc8e9cf7bb240049117d2fa64d1540476c289396d
treeccd86aa58f08cde50dcc0da35d2ea4b745d99abd
parent8260ef075bd9848ce6a8004ec73b7454d410cc15
vga_switcheroo: Add a helper function to get the client state

Add vga_switcheroo_get_client_state() to get the current state of the
client.  This is necessary to determine the proper initial state of
audio clients in HD-audio driver.

Acked-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/gpu/vga/vga_switcheroo.c
include/linux/vga_switcheroo.h