Date: Thu, 17 Oct 2002 21:22:33 +0200 From: Steve O'Hara-Smith <steve@sohara.org> To: freebsd-multimedia@freebsd.org Cc: Charles Henrich <henrich@sigbus.com>, Alex Teslik <alex@acatysmoof.com>, Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> Subject: New full screen YUV patch for bktr driver. Message-ID: <20021017212233.1155f57b.steve@sohara.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021017212233.1155f57b.steve>