Lines Matching full:audio
31 * DOC: LPE Audio integration for HDMI or DP playback
36 * mode is unrelated to the LPE aka SST audio engine, the documentation refers
41 * subsystems, a bridge is setup between the hdmi-lpe-audio and i915:
44 * 3. Create IRQ chip to forward the LPE audio irqs.
45 * the hdmi-lpe-audio driver probes the lpe audio device and creates a new
50 * uninstall the hdmi-lpe-audio driver before uninstalling i915 module,
52 * platform device: even though hdmi-lpe-audio driver is released, the modules
58 * When forwarding LPE audio irqs, the flow control handler selection depends
80 #define HAS_LPE_AUDIO(dev_priv) ((dev_priv)->display.audio.lpe.platdev != NULL)
101 rsc[0].start = rsc[0].end = dev_priv->display.audio.lpe.irq; in lpe_audio_platdev_create()
103 rsc[0].name = "hdmi-lpe-audio-irq"; in lpe_audio_platdev_create()
110 rsc[1].name = "hdmi-lpe-audio-mmio"; in lpe_audio_platdev_create()
113 pinfo.name = "hdmi-lpe-audio"; in lpe_audio_platdev_create()
134 "Failed to allocate LPE audio platform device\n"); in lpe_audio_platdev_create()
153 platform_device_unregister(dev_priv->display.audio.lpe.platdev); in lpe_audio_platdev_destroy()
172 int irq = dev_priv->display.audio.lpe.irq; in lpe_audio_irq_init()
198 "HDaudio controller not detected, using LPE audio instead\n"); in lpe_audio_detect()
209 dev_priv->display.audio.lpe.irq = irq_alloc_desc(0); in lpe_audio_setup()
210 if (dev_priv->display.audio.lpe.irq < 0) { in lpe_audio_setup()
212 dev_priv->display.audio.lpe.irq); in lpe_audio_setup()
213 ret = dev_priv->display.audio.lpe.irq; in lpe_audio_setup()
217 drm_dbg(&dev_priv->drm, "irq = %d\n", dev_priv->display.audio.lpe.irq); in lpe_audio_setup()
223 "Failed to initialize irqchip for lpe audio: %d\n", in lpe_audio_setup()
228 dev_priv->display.audio.lpe.platdev = lpe_audio_platdev_create(dev_priv); in lpe_audio_setup()
230 if (IS_ERR(dev_priv->display.audio.lpe.platdev)) { in lpe_audio_setup()
231 ret = PTR_ERR(dev_priv->display.audio.lpe.platdev); in lpe_audio_setup()
233 "Failed to create lpe audio platform device: %d\n", in lpe_audio_setup()
246 irq_free_desc(dev_priv->display.audio.lpe.irq); in lpe_audio_setup()
248 dev_priv->display.audio.lpe.irq = -1; in lpe_audio_setup()
249 dev_priv->display.audio.lpe.platdev = NULL; in lpe_audio_setup()
254 * intel_lpe_audio_irq_handler() - forwards the LPE audio irq
257 * the LPE Audio irq is forwarded to the irq handler registered by LPE audio
267 ret = generic_handle_irq(dev_priv->display.audio.lpe.irq); in intel_lpe_audio_irq_handler()
270 "error handling LPE audio irq: %d\n", ret); in intel_lpe_audio_irq_handler()
274 * intel_lpe_audio_init() - detect and setup the bridge between HDMI LPE Audio
289 "failed to setup LPE Audio bridge\n"); in intel_lpe_audio_init()
296 * audio driver and i915
299 * release all the resources for LPE audio <-> i915 bridge.
308 irq_free_desc(dev_priv->display.audio.lpe.irq); in intel_lpe_audio_teardown()
310 dev_priv->display.audio.lpe.irq = -1; in intel_lpe_audio_teardown()
311 dev_priv->display.audio.lpe.platdev = NULL; in intel_lpe_audio_teardown()
315 * intel_lpe_audio_notify() - notify lpe audio event
316 * audio driver and i915
324 * Notify lpe audio driver of eld change.
338 pdata = dev_get_platdata(&dev_priv->display.audio.lpe.platdev->dev); in intel_lpe_audio_notify()
366 pdata->notify_audio_lpe(dev_priv->display.audio.lpe.platdev, port - PORT_B); in intel_lpe_audio_notify()