From owner-freebsd-multimedia Sat Apr 5 11:42:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA23565 for multimedia-outgoing; Sat, 5 Apr 1997 11:42:30 -0800 (PST) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA23557 for ; Sat, 5 Apr 1997 11:42:26 -0800 (PST) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.5/8.7.3) with ESMTP id LAA00322 for ; Sat, 5 Apr 1997 11:42:25 -0800 (PST) Message-Id: <199704051942.LAA00322@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: multimedia@freebsd.org Subject: Bt848 Missing frames fix Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="===_0_Sat_Apr__5_11:41:47_PST_1997" Date: Sat, 05 Apr 1997 11:42:25 -0800 From: Amancio Hasty Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This is a multipart MIME message. --===_0_Sat_Apr__5_11:41:47_PST_1997 Content-Type: text/plain; charset=us-ascii Hi, I managed to solved the problem of frames dropping with resolutions higher than 320x240. The patch is against the bt848 driver in freebsd 3.0 -current. Please try it out and let us know if it fixes the problem. Enjoy, Amancio --===_0_Sat_Apr__5_11:41:47_PST_1997 Content-Type: application/octet-stream Content-Description: patch Content-Transfer-Encoding: base64 KioqIGJyb29rdHJlZTg0OC5jLm9yaWcJU2F0IEFwciAgNSAxMToyNzoxMSAxOTk3Ci0tLSBi cm9va3RyZWU4NDguYwlTYXQgQXByICA1IDExOjI5OjQ1IDE5OTcKKioqKioqKioqKioqKioq CioqKiAyMDM5LDIwNDUgKioqKgogIAlidWZmZXIgPSB0YXJnZXRfYnVmZmVyOwogIAogIAkv KiBjb250cnVjdCBzeW5jIDogZm9yIHZpZGVvIHBhY2tldCBmb3JtYXQgKi8KISAJKmRtYV9w cm9nKysgPSBPUF9TWU5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