Skip to contentSkip to conversation

hdmi: audio infoframe log: corrected channel count

PATCH New Martin Bugge 1 participant 1 message Jun 29, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hdmi: audio infoframe log: corrected channel count

Audio channel count should start from 2.

Reference: CEA-861-F Table 27.

---
 drivers/video/hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/hdmi.c +1 -1
index 1cf907e..35c0408 100644
@@ -884,7 +884,7 @@ static void hdmi_audio_infoframe_log(const char *level,
 				  (struct hdmi_any_infoframe *)frame);
 
 	if (frame->channels)
-		hdmi_log("    channels: %u\n", frame->channels - 1);
+		hdmi_log("    channels: %u\n", frame->channels + 1);
 	else
 		hdmi_log("    channels: Refer to stream header\n");
 	hdmi_log("    coding type: %s\n",
Signature · 1 line
2.9.4