Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/external/bsd/drm2/include/linux Pull up following rev...
details: https://anonhg.NetBSD.org/src/rev/1cfa002b3194
branches: netbsd-7
changeset: 799717:1cfa002b3194
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Nov 18 08:52:04 2015 +0000
description:
Pull up following revision(s) (requested by jmcneill in ticket #1039):
sys/external/bsd/drm2/include/linux/hdmi.h: revision 1.6
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 d6b2380cbdfb -r 1cfa002b3194 sys/external/bsd/drm2/include/linux/hdmi.h
--- a/sys/external/bsd/drm2/include/linux/hdmi.h Wed Nov 18 08:48:46 2015 +0000
+++ b/sys/external/bsd/drm2/include/linux/hdmi.h Wed Nov 18 08:52:04 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdmi.h,v 1.2.4.1 2015/01/11 05:59:17 snj Exp $ */
+/* $NetBSD: hdmi.h,v 1.2.4.2 2015/11/18 08:52:04 msaitoh 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