PVR-350 and mplayer

Greg 'groggy' Lehey grog at FreeBSD.org
Sat Dec 9 15:17:29 PST 2006


On Saturday,  9 December 2006 at 23:31:59 +0100, Anders Troback wrote:
> Hi,
>
> I'm running a PVR-350 on my FBSD 6.2 system.
>
> If I do "mplayer /dev/cxm0" mplayer are showing "slow" picutre with
> good sound at first and after a few secs good picture and crappy
> sound.

Yes, I've seen this, and I'm working on it.  You should also be seeing
this kind of message in /var/log/messages:

  Nov  3 17:04:58 afa0001 kernel: cxm0: encoder dma not enough buffer space free

Try this patch:

--- /usr/ports/multimedia/pvr250/work/dev/cxm/cxm.h     Sat Dec  9 13:28:01 2006
+++ /usr/ports/multimedia/pvr250/work-in-progress/dev/cxm/cxm.h Thu Nov 30 18:30:15 2006
@@ -64,7 +64,7 @@
        enum cxm_byte_order byte_order;
 };

-#define CXM_SG_BUFFERS 50
+#define CXM_SG_BUFFERS 500

 struct cxm_buffer_pool {
        bus_dma_tag_t           dmat;

Then rebuild the module, unload the old module and install the new
one.  Please let me know how it goes, whether or not it works.  I'm
currently in the process of importing this driver into the source
tree, and this is one of the things I'm planning to make a tuneable.

Greg
--
See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20061209/9cd72a01/attachment.pgp


More information about the freebsd-multimedia mailing list