vga_switcheroo: Enable/disable audio clients at the right time
authorTakashi Iwai <tiwai@suse.de>
Sat, 9 Jun 2012 06:46:42 +0000 (08:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 9 Jun 2012 10:14:43 +0000 (12:14 +0200)
commitc91c3faea500da34d42a14735f1f67bb137b6413
treebd475cbbc47c2fa527b1e4dbe0b9028a7a2a15d4
parent8393ec4a13889339bacfb8b038fb13716eef7a2b
vga_switcheroo: Enable/disable audio clients at the right time

The audio clients have to be disabled before disabling the VGA and
switching.  Similarly, enabling the audio client should be done at
last.  Otherwise the audio-side operation stalls, eventually leading
to Oops or lockups.

Tested-by: Jörg-Volker Peetz <jvpeetz@web.de>
Acked-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/gpu/vga/vga_switcheroo.c