Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux hdmi_audio_infoframe_pac...
details: https://anonhg.NetBSD.org/src/rev/23e50fb83bfa
branches: trunk
changeset: 811775:23e50fb83bfa
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Nov 14 18:04:05 2015 +0000
description:
hdmi_audio_infoframe_pack: Initialize the entire output buffer.
hdmi_infoframe_checksum: Fix HDMI infoframe checksum calculations.
diffstat:
sys/external/bsd/drm2/include/linux/hdmi.h | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r cd5c846299a6 -r 23e50fb83bfa sys/external/bsd/drm2/include/linux/hdmi.h
--- a/sys/external/bsd/drm2/include/linux/hdmi.h Sat Nov 14 16:25:48 2015 +0000
+++ b/sys/external/bsd/drm2/include/linux/hdmi.h Sat Nov 14 18:04:05 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdmi.h,v 1.5 2014/11/24 01:27:07 riastradh Exp $ */
+/* $NetBSD: hdmi.h,v 1.6 2015/11/14 18:04:05 jmcneill Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -217,7 +217,7 @@
uint8_t checksum = 0;
while (length--)
- checksum = *p++;
+ checksum += *p++;
p = buf;
p[3] = (256 - checksum);
@@ -283,7 +283,13 @@
p[4] = __SHIFTIN(frame->downmix_inhibit? 1 : 0, __BIT(7));
- /* XXX p[5], p[6], p[7], p[8], p[9]? */
+ /* PB6 to PB10 are reserved */
+ p[5] = 0;
+ p[6] = 0;
+ p[7] = 0;
+ p[8] = 0;
+ p[9] = 0;
+
CTASSERT(HDMI_AUDIO_INFOFRAME_SIZE == 10);
hdmi_infoframe_checksum(buf, length);
Home |
Main Index |
Thread Index |
Old Index