Project

General

Profile

Actions

Bug #10619

open

audiohd ignores digital output pins such as HDMI/DP

Added by Hans Rosenfeld about 3 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Category:
-
Start date:
2019-03-31
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

The audiohd driver currently makes no attempt to drive digital output pins that are associated with HDMI or DisplayPort devices.

Actions #1

Updated by Hans Rosenfeld about 3 years ago

Webrev: https://grumpf.hope-2000.org/illumos-10619/

One of the problems with the audiohd driver is that it needs to know how many channels there are at attach time. This is normally true for any other audiohd device, but in case of HDMI/DP that can change any time when a user plugs in a display. This change uses a simple approach to make this work in 2-channel mode only. I don't have any other hardware to test so there isn't really much of a point in trying to support anything else right now.

While code is there to get the EDID-like data from the attached display when it is plugged in, nothing is really done with this data yet. It proved to be helpful for debugging this and will be useful for extending this to support devices with more channels, and perhaps also to make this more dynamic.

I have tested this with a nVIDIA GTX 1080 only due to lack of other hardware. It works on both HDMI and DP outputs and keeps working when plugging the display cable into a different connector while audio is playing. Of course, DPMS power-off will also turn off audio output, but there is little that can be done here. I've also verified that it doesn't break "regular" audiohd output (on my ThinkPad).

Actions

Also available in: Atom PDF