Name

vga_switcheroo_set_dynamic_switch — helper for driver power control

Synopsis

void vga_switcheroo_set_dynamic_switch (struct pci_dev * pdev,
 enum vga_switcheroo_state dynamic);
 

Arguments

pdev

client pci device

dynamic

new power state

Description

Helper for GPUs whose power state is controlled by the driver's runtime pm. When the driver decides to power up or down, it notifies vga_switcheroo thereof using this helper so that it can (a) power the audio device on the GPU up or down, and (b) update its internal power state representation for the device.