Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2004 23:17:00 +0100
From:      =?iso-8859-1?Q?Andreas_Dahl=E9n?= <andreas@dahlen.ws>
To:        <freebsd-multimedia@freebsd.org>
Subject:   RE: Hauppauge WinTV PVR 250 for FreeBSD 5.2
Message-ID:  <005401c40f92$3b0f0b20$6401000a@mikaela>
In-Reply-To: <405DA3E1.2070805@navab.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi!

I got the same problem, i.e. loading of the driver (LG Innotek tuner)
works fine, but when I try to do "cat /dev/cxm0 > file.mpeg", I get the
same error; "cat: /dev/cxm0: Device not configured" and dmesg says
"cxm0: video 
decoder isn't locked".

I investigated it a bit further and found that it is the function
"cxm_saa7115_detected_fps" in cxm_video.c that the error is raised.

/Andreas


-----Original Message-----
From: owner-freebsd-multimedia@freebsd.org
[mailto:owner-freebsd-multimedia@freebsd.org] On Behalf Of
u431839553@navab.net
Sent: den 21 mars 2004 15:17
To: freebsd-multimedia@freebsd.org
Subject: Re: Hauppauge WinTV PVR 250 for FreeBSD 5.2

FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004
    root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC

Followed the steps, the patch rejected:

iicbb.c.rej:
    ***************
    *** 340,344 ****
      }
 
      DRIVER_MODULE(iicbb, bti2c, iicbb_driver, iicbb_devclass, 0, 0);
      DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0);
      DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0);
    --- 361,366 ----
      }
 
      DRIVER_MODULE(iicbb, bti2c, iicbb_driver, iicbb_devclass, 0, 0);
    + DRIVER_MODULE(iicbb, cxm_iic, iicbb_driver, iicbb_devclass, 0, 0);
      DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0);
      DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0);

I replaced the three DRIVER_MODULE lines in iicbb.c with the four 
DRIVER_MODULE lines from iicbb.c.rej, did the cxm_extract_fm stuff, 
rebuilt the kernel etc.

When I load the modules, I get:

    cxm0: <Conexant iTVC16 MPEG Coder> mem 0xc8000000-0xcbffffff irq 21 
at device 11.0 on pci3
    cxm_iic0: <Conexant iTVC15 / iTVC16 I2C controller> on cxm0
    iicbb0: <I2C bit-banging driver> on cxm_iic0
    iicbus0: <Philips I2C bus> on iicbb0 master-only
    cxm0: LG Innotek TPI8PSB11D tuner
    cxm0: SAA7115 rev 1 video decoder
    cxm0: MSP3415G-B8 audio decoder
    cxm0: IR Remote
    cxm0: encoder firmware version 0x2040011

No decoder firmware version. When I try cat /dev/cxm0 > file.mpg I get 
"cat: /dev/cxm0: Device not configured" and dmesg says "cxm0: video 
decoder isn't locked".

 From my Linux box:
tvee: Hauppauge: model=32034, rev=B148, serial#=6914446
tvee: tuner=LG TP18PSB11D (idx=48, type=29)
tvee: tuner fmt=PAL(B/G) (eeprom=0x04, v4l2=0x00000007)
tvee: audio_processor=MSP3415 (type=6)

>[ This is the Mar 20, 2004 snapshot of my source tree.  Included are
>  changes to support some more ioctls and various PAL tuners. ]
>
>To use the Hauppauge PVR-250 / 350 on FreeBSD 4.9 / 5.2:
>
>  1) Use patch to apply Patch.iicbb so cxm can use the i2c bus and
>     avoid a crash when unloading.
>
>  2) Unshar the enclosed archive into /sys.
>
>  3) Place a current version of hcwpvrp2.sys from the
>     Hauppauge drivers into /sys/dev/cxm.  Extract the
>     the firmware by:
>
>       # cd /sys/dev/cxm
>       # cc -o cxm_extract_fw cxm_extract_fw.c
>       # ./cxm_extract_fw hcwpvrp2.sys
>
>  4) Rebuilt your kernel with:
>
>       device          iicbus
>       device          iicbb
>
>     as part of the configuration.
>
>  5) Install the new kernel and reboot.
>
>  6) Make and install the cxm driver by:
>
>       # cd /sys/modules/cxm
>       # make
>       # cp cxm/cxm.ko cxm_iic/cxm_iic.ko /modules
>       # kldload cxm_iic
>       # kldload cxm
>
>     At which point your console should say something like:
>
>       cxm0: <Conexant iTVC15 MPEG Coder> mem 0xd8000000-0xdbffffff irq
12
>         at device 10 .0 on pci0
>       cxm_iic0: <Conexant iTVC15 / iTVC16 I2C controller> on cxm0
>       iicbb0: <I2C bit-banging driver> on cxm_iic0
>       cxm0: Philips FI1236 MK2 tuner
>       cxm0: SAA7115 rev 1 video decoder
>       cxm0: MSP3435G-B6 audio decoder
>       cxm0: IR Remote
>       cxm0: encoder firmware version 0x2040011
>       cxm0: decoder firmware version 0x2020023
>
_______________________________________________
freebsd-multimedia@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
To unsubscribe, send any mail to
"freebsd-multimedia-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005401c40f92$3b0f0b20$6401000a>