From owner-freebsd-multimedia Thu Oct 17 12:22:44 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6216137B401; Thu, 17 Oct 2002 12:22:42 -0700 (PDT) Received: from smtp6.wanadoo.nl (smtp6.wanadoo.nl [194.134.35.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2BA643E4A; Thu, 17 Oct 2002 12:22:41 -0700 (PDT) (envelope-from steve@sohara.org) Received: from ams-gw.sohara.org (rot2-p2444.dial.wanadoo.nl [194.134.139.140]) by smtp6.wanadoo.nl (Postfix) with SMTP id BD4EC6FC9E; Thu, 17 Oct 2002 21:22:36 +0200 (CEST) Date: Thu, 17 Oct 2002 21:22:33 +0200 From: Steve O'Hara-Smith To: freebsd-multimedia@freebsd.org Cc: Charles Henrich , Alex Teslik , Mario Sergio Fujikawa Ferreira Subject: New full screen YUV patch for bktr driver. Message-Id: <20021017212233.1155f57b.steve@sohara.org> X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i386-portbld-freebsd4.7) X-Face: %]+HVL}K`P8>+8ZcY-WGHP6j@&mxMo9JH6_WdgIgUGH)JX/usO0%jy7T~IVgqjumD^OBqX,Kv^-GM6mlw(fI^$"QRKyZ$?xx/ Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I have placed a new version of bktr.patch on ftp.sohara.org in /pub. It fixes the problem rather than working around it, that is if I've got it straight about what's going on. Of course it needs wider *testing* please anyone. Many thanks go to Charles for giving me a deeper understanding of the bt848 and it's amazing DMA controller, and even more so for walking me to the heart of the problem (an extra odd frame interrupt) and the chunk of offending RISC code. OK I'll be bad - I'll waste bandwidth and include the (massive) patch (and note that BKTR_RESYNC == 1 << 15). Index: sys/dev/bktr/bktr_core.c =================================================================== RCS file: /ncvs/src/sys/dev/bktr/bktr_core.c,v retrieving revision 1.103.2.4 diff -u -r1.103.2.4 bktr_core.c --- sys/dev/bktr/bktr_core.c 1 Nov 2000 09:36:14 -0000 1.103.2.4 +++ sys/dev/bktr/bktr_core.c 16 Oct 2002 17:51:04 -0000 @@ -3127,7 +3127,7 @@ dma_prog = (u_long * ) bktr->odd_dma_prog; /* sync vre */ - *dma_prog++ = OP_SYNC | 1 << 24 | 1 << 15 | BKTR_FM1; + *dma_prog++ = OP_SYNC | BKTR_RESYNC | BKTR_FM1; *dma_prog++ = 0; /* NULL WORD */ for (i = 0; i < (rows/interlace) ; i++) { ----------------------------- stop here ------------------------- PS: I think I grok that RISC code enough to attempt to add YUV420P to tbe bktr driver, which would lighten the load on libavcodec codecs. -- C:>WIN | Directable Mirrors The computer obeys and wins. |A Better Way To Focus The Sun You lose and Bill collects. | licenses available - see: | http://www.sohara.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message