[PATCH v9 08/14] drm/bridge: it6505: drop the audio input FS debug print
From: Daniel Golle
Date: Thu Nov 19 2026 - 19:04:04 EST
it6505_enable_audio() reads REG_AUDIO_INPUT_FREQ only to print the
measured audio sample rate, dividing by the readback. The register is
a read-only counter of the input audio frequency, which the driver
otherwise only uses to check whether an I2S bit clock is present. It
reads back 0 when no audio clock has been latched, and it6505_read()
returns a negative errno on i2c failure, while the arguments of the
debug print are evaluated even with debug output disabled.
The value is only informational in the enable path and remains
accessible through the regmap debugfs interface, so drop the read and
the print instead of guarding the division.
Fixes: b5c84a9edcd4 ("drm/bridge: add it6505 driver")
Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
---
drivers/gpu/drm/bridge/ite-it6505.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c
index 9357996c2eb38..17f4f6497b34d 100644
--- a/drivers/gpu/drm/bridge/ite-it6505.c
+++ b/drivers/gpu/drm/bridge/ite-it6505.c
@@ -1606,7 +1606,6 @@ static void it6505_disable_audio(struct it6505 *it6505)
static void it6505_enable_audio(struct it6505 *it6505)
{
struct device *dev = it6505->dev;
- int regbe;
DRM_DEV_DEBUG_DRIVER(dev, "start");
it6505_disable_audio(it6505);
@@ -1624,9 +1623,6 @@ static void it6505_enable_audio(struct it6505 *it6505)
AUDIO_FIFO_RESET);
it6505_set_bits(it6505, REG_AUDIO_SRC_CTRL, AUDIO_FIFO_RESET, 0x00);
it6505_set_bits(it6505, REG_RESET_CTRL, AUDIO_RESET, 0x00);
- regbe = it6505_read(it6505, REG_AUDIO_INPUT_FREQ);
- DRM_DEV_DEBUG_DRIVER(dev, "regbe:0x%02x audio input fs: %d.%d kHz",
- regbe, 6750 / regbe, (6750 % regbe) * 10 / regbe);
it6505_set_bits(it6505, REG_DATA_MUTE_CTRL, EN_AUD_MUTE, 0x00);
}
--
2.56.1