drm/i915/audio: fix audio code enable/disable pipe logging
Need to use pipe_name(pipe) instead of pipe directly. Fixes: 1f31e35f2e88 ("drm/i915/audio: unify audio codec enable/disable debug logging") Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220512161638.272601-1-jani.nikula@intel.com (cherry picked from commit 945ae909aa76f55ac8c9e95feb3683512d39134a)
This commit is contained in:
parent
58606220a2
commit
d91e9be0f0
@ -827,7 +827,7 @@ void intel_audio_codec_enable(struct intel_encoder *encoder,
|
||||
drm_dbg_kms(&dev_priv->drm, "[CONNECTOR:%d:%s][ENCODER:%d:%s] Enable audio codec on pipe %c, %u bytes ELD\n",
|
||||
connector->base.id, connector->name,
|
||||
encoder->base.base.id, encoder->base.name,
|
||||
pipe, drm_eld_size(connector->eld));
|
||||
pipe_name(pipe), drm_eld_size(connector->eld));
|
||||
|
||||
/* FIXME precompute the ELD in .compute_config() */
|
||||
if (!connector->eld[0])
|
||||
@ -888,7 +888,7 @@ void intel_audio_codec_disable(struct intel_encoder *encoder,
|
||||
|
||||
drm_dbg_kms(&dev_priv->drm, "[CONNECTOR:%d:%s][ENCODER:%d:%s] Disable audio codec on pipe %c\n",
|
||||
connector->base.id, connector->name,
|
||||
encoder->base.base.id, encoder->base.name, pipe);
|
||||
encoder->base.base.id, encoder->base.name, pipe_name(pipe));
|
||||
|
||||
if (dev_priv->audio.funcs)
|
||||
dev_priv->audio.funcs->audio_codec_disable(encoder,
|
||||
|
Loading…
x
Reference in New Issue
Block a user