mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00

Pull the audio min cdclk calculation into a helper and hide
it inside intel_audio.c in order to keep most audio related
details in one place.
The one audio related thing that remains in intel_cdclk.c
is commit 451eaa1a61
("drm/i915: Bump GLK CDCLK frequency when
driving multiple pipes") but given that's implemented in terms
of the cdclk_state I think it should stay put.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241029215217.3697-5-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
37 lines
1.4 KiB
C
37 lines
1.4 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_AUDIO_H__
|
|
#define __INTEL_AUDIO_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_connector_state;
|
|
struct drm_i915_private;
|
|
struct intel_crtc_state;
|
|
struct intel_encoder;
|
|
|
|
void intel_audio_hooks_init(struct drm_i915_private *dev_priv);
|
|
bool intel_audio_compute_config(struct intel_encoder *encoder,
|
|
struct intel_crtc_state *crtc_state,
|
|
struct drm_connector_state *conn_state);
|
|
void intel_audio_codec_enable(struct intel_encoder *encoder,
|
|
const struct intel_crtc_state *crtc_state,
|
|
const struct drm_connector_state *conn_state);
|
|
void intel_audio_codec_disable(struct intel_encoder *encoder,
|
|
const struct intel_crtc_state *old_crtc_state,
|
|
const struct drm_connector_state *old_conn_state);
|
|
void intel_audio_codec_get_config(struct intel_encoder *encoder,
|
|
struct intel_crtc_state *crtc_state);
|
|
void intel_audio_cdclk_change_pre(struct drm_i915_private *dev_priv);
|
|
void intel_audio_cdclk_change_post(struct drm_i915_private *dev_priv);
|
|
int intel_audio_min_cdclk(const struct intel_crtc_state *crtc_state);
|
|
void intel_audio_init(struct drm_i915_private *dev_priv);
|
|
void intel_audio_register(struct drm_i915_private *i915);
|
|
void intel_audio_deinit(struct drm_i915_private *dev_priv);
|
|
void intel_audio_sdp_split_update(const struct intel_crtc_state *crtc_state);
|
|
|
|
#endif /* __INTEL_AUDIO_H__ */
|