Skip to content

RFC Get optimal audio frequency and channels

Mitul Golani intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/i915/hdmi: Optimize source audio parameter handlingdrivers/gpu/drm/i915/display/g4x_dp.c drivers/gpu/drm/i915/display/g4x_hdmi.c drivers/gpu/drm/i915/display/intel_audio.c +9 more+32 -320 replies
2/3drm/i915/display: Configure and initialize HDMI audio capabilitiesdrivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_hdmi.c drivers/gpu/drm/i915/display/intel_hdmi.h+42 -00 replies
3/3drm/i915/display: Add wrapper to Compute SADdrivers/gpu/drm/i915/display/intel_audio.c drivers/gpu/drm/i915/display/intel_audio.h drivers/gpu/drm/i915/display/intel_hdmi.c+69 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Intel-gfx] [RFC 0/3] Get optimal audio frequency and channels

Currently we do not check if there is enough bandwidth for audio, and what channels and freq it can really support. Also sometimes there can be HW constraints e.g. GLK where audio channels supported are only 2.

https://patchwork.freedesktop.org/series/107647/

Obtain the optimal audio rate and channel based on available display timing constraints.

This can be achieved by:
- Retrieve the supported channel and rate information from SADs
- Adding audio-related config parameters in the CRTC state, such as audio support, rate, and channel.
- Initializing the audio config parameters with the maximum supported rate and channel by the audio source.
- Computing the SADs based on the audio source's capabilities.

Mitul Golani (3):
drm/i915/hdmi: Optimize source audio parameter handling drm/i915/display: Configure and initialize HDMI audio capabilities drm/i915/display: Add wrapper to Compute SAD

 drivers/gpu/drm/i915/display/g4x_dp.c         |  4 +-
 drivers/gpu/drm/i915/display/g4x_hdmi.c       | 16 ++---
 drivers/gpu/drm/i915/display/intel_audio.c    | 72 ++++++++++++++++++-
 drivers/gpu/drm/i915/display/intel_audio.h    |  1 +
 drivers/gpu/drm/i915/display/intel_cdclk.c    |  6 +-
 .../drm/i915/display/intel_crtc_state_dump.c  |  4 +-
 drivers/gpu/drm/i915/display/intel_ddi.c      |  2 +-
 drivers/gpu/drm/i915/display/intel_display.c  |  4 +-
 .../drm/i915/display/intel_display_types.h    | 12 +++-
 drivers/gpu/drm/i915/display/intel_dp.c       |  2 +-
 drivers/gpu/drm/i915/display/intel_dp_mst.c   |  2 +-
 drivers/gpu/drm/i915/display/intel_hdmi.c     | 39 +++++++++-
 drivers/gpu/drm/i915/display/intel_hdmi.h     |  1 +
 drivers/gpu/drm/i915/display/intel_sdvo.c     | 10 +--
 14 files changed, 143 insertions(+), 32 deletions(-)
Signature · 1 line
2.25.1