search for: nouveau_reenable_hdmi_device

Displaying 2 results from an estimated 2 matches for "nouveau_reenable_hdmi_device".

2013 Jul 24
4
[PATCH] [RFC] drm/nouveau: bring back hdmi audio device after switcheroo power down
...drm * diff --git a/drivers/gpu/drm/nouveau/nouveau_vga.c b/drivers/gpu/drm/nouveau/nouveau_vga.c index 25d3495..d8af49c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_vga.c +++ b/drivers/gpu/drm/nouveau/nouveau_vga.c @@ -27,6 +27,22 @@ nouveau_vga_set_decode(void *priv, bool state) } static void +nouveau_reenable_hdmi_device(struct drm_device *dev) +{ + struct nouveau_drm *drm = nouveau_drm(dev); + struct nouveau_device *device = nv_device(drm->device); + uint32_t val; + + if (!drm->hdmi_device) + return; + + /* write magic value into magic place */ + val = nv_rd32(device, 0x88488); + val |= (1 << 25); + n...
2013 Jul 24
0
[PATCH] [RFC] drm/nouveau: bring back hdmi audio device after switcheroo power down
...au/nouveau_vga.c b/drivers/gpu/drm/nouveau/nouveau_vga.c > index 25d3495..d8af49c 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_vga.c > +++ b/drivers/gpu/drm/nouveau/nouveau_vga.c > @@ -27,6 +27,22 @@ nouveau_vga_set_decode(void *priv, bool state) > } > > static void > +nouveau_reenable_hdmi_device(struct drm_device *dev) > +{ > + struct nouveau_drm *drm = nouveau_drm(dev); > + struct nouveau_device *device = nv_device(drm->device); > + uint32_t val; > + > + if (!drm->hdmi_device) > + return; > + > + /* write magic value into magic place */ > + val = nv_rd...