BTTV - MSP34XX not detected --patch repost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Please find below. BTW, the reset piece is already in the current code (2.4.10).
 
Rehan
 
====================================
 
Erik B. Andersen   Web:    http://www.inconnect.com/~andersen/
                   email:  andersee@xxxxxxxxxx
--This message was written using 73% post-consumer electrons--

--- linux-2.1.132.virgin/drivers/char/bttv.c Mon Dec 28 18:28:41 1998
+++ linux/drivers/char/bttv.c Fri Jan  1 12:11:17 1999
@@ -73,6 +73,7 @@

static int find_vga(void);
static void bt848_set_risc_jmps(struct bttv *btv);
+static void hauppauge_msp_reset(struct bttv *btv);

/* Anybody who uses more than four? */
#define BTTV_MAX 4
@@ -401,6 +402,18 @@
 
/* ----------------------------------------------------------------------- */

+static void
+hauppauge_msp_reset(struct bttv *btv)
+{
+ /* Reset the MSP on some Hauppauge cards */
+ /* Thanks to Kyösti Mälkki (kmalkki@xxxxxxxxx)! */
+ /* Can this hurt cards without one? What about Miros with MSP? */
+ btaor(32, ~32, BT848_GPIO_OUT_EN);
+ btaor(0, ~32, BT848_GPIO_DATA);
+ udelay(2500);
+ btaor(32,! ~32, BT848_GPIO_DATA);
+ /* btaor(0, ~32, BT848_GPIO_OUT_EN); */
+}

struct tvcard
{
@@ -2434,6 +2447,13 @@
                         btv->tuner_type=((btread(BT848_GPIO_DATA)>>10)-1)&7;
                 }
}
+
+ /* Make the Hauppauge cards do sound -- otherwise they stay
+ * deathly silent.  This makes things work much better
+ */
+ if (btv->type == BTTV_HAUPPAUGE || btv->type == BTTV_HAUPPAUGE878) {
+ hauppauge_msp_reset(btv);
+ }

         if (I2CRead(&(btv->i2c), I2C_TDA9850) >=0)
         {
@@ -2572,17 +2592,6 @@
/* reset the bt848 */
btwrite(0, BT848_SRESET);
DEBUG(printk(KERN_D! EBUG "bttv%d: bt848_mem: 0x%08x\n",i,(unsigned int) btv->bt848_mem));
-
-#ifdef RESET_MSP_HAUPPAUGE
-        /* Reset the MSP on some Hauppauge cards */
-        /* Thanks to Kyösti Mälkki (kmalkki@xxxxxxxxx)! */
-        /* Can this hurt cards without one? What about Miros with MSP? */
-        btaor(32, ~32, BT848_GPIO_OUT_EN);
-        btaor(0, ~32, BT848_GPIO_DATA);
-        udelay(2500);
-        btaor(32, ~32, BT848_GPIO_DATA);
-        btaor(0, ~32, BT848_GPIO_OUT_EN);
-#endif

/* default setup for max. PAL s! ize in a 1024xXXX hicolor framebuffer */

 
I'm not getting to ultraviolet server. Can you repost the
patch? Please.

bob phillips

At 03:10 AM 9/29/2001, you wrote:
>I recently downloaded the latest kernel as well as the
>latest bttv drivers (stable version 0.7.78) to my
>linux machine. I am using a WinTV PVR card from
>Hauppauge. While the compilation and installation went
>fine (even with kernel 2.4.9 version of bttv), I am
>facing an interesting problem. I get no audio when
>running the xawtv application. However, when I boot
>into Win2k and run the WinTV200 application and then
>immediately reboot into linux, everything works
>perfectly. I have gone through all the faqs and also
>numerous mailing lists. The only messages that I find
>relevant to my problem date back to 1998/1999. In that
>case, Erik Andersen has posted a patch to t! he file
>bttv.c. Obviously, the file is not even to be found in
>the current versions. I am reproducing the URL for
>your convenience
>(http://www.ultraviolet.org/mail-archives/linux-kernel.1999/0192.html).
>I am also providing the output
>(/var/log/messages) for the cards before booting into
>win2k and after. It is obvious that the MSP34xx chip
>is detected only after I have already initialized it
>in Win2k. Any insight you can offer will be highly
>appreciated as I have already spent a lot of time on
>this problem with no results. I am a relative newcomer
>to Linux.
>
>Thanks,
>
>Rehan Khamaruddin
>
>System:
>SMP: Dual P3 550 on Tyan S1832DL
! >Video: Diamond V770 TNT2/Ultra 32MB
>Creative SbLive
>Creative SB16 Vibra
>Slackware 8.0 with 2.4.9 (SMP) (kernel recompiled with
>all options for v4l enabled)
>
>log before win2k:
>
>Sep 24 18:29:01 rsk1 kernel: bttv: driver version
>0.7.72 loaded
>Sep 24 18:29:01 rsk1 kernel: bttv: using 2 buffers
>with 2080k (4160k total) for capture
>Sep 24 18:29:01 rsk1 kernel: bttv: Host bridge needs
>ETBF enabled.
>Sep 24 18:29:01 rsk1 kernel: bttv: Bt8xx card found
>(0).
>Sep 24 18:29:01 rsk1 kernel: bttv0: Bt878 (rev 17) at
>00:13.0, irq: 19, latency: 64, memory: 0xfc8fe000
>Sep 24 18:29:01 rsk1 kernel: bttv0: subsystem:
>0070:13eb  => Hauppauge WinTV  => card=10
>Sep 24 18:29:01 rsk1 kernel: bttv0: model! :
>BT878(Hauppauge old) [insmod option]
>Sep 24 18:29:01 rsk1 kernel: bttv0: i2c: checking for
>MSP34xx @ 0x80... not found
>Sep 24 18:29:01 rsk1 kernel: bttv0: i2c: checking for
>TDA9875 @ 0xb0... not found
>Sep 24 18:29:01 rsk1 kernel: bttv0: i2c: checking for
>TDA7432 @ 0x8a... not found
>Sep 24 18:29:01 rsk1 kernel: tvaudio: TV audio decoder
>+ audio/video mux driver
>Sep 24 18:29:01 rsk1 kernel: tvaudio: known chips:
>tda9840,tda9873h,tda9850,tda9855,tea6300,tea6420,tda8425,pic16c54
>(PV951)
>
>
>Log after Win2k:
>
>Sep 24 19:00:05 rsk1 kernel: Linux video capture
>interface: v1.00
>Sep 24 19:00:05 rsk1 kernel: bttv: driver version
>0.7.78 loaded
>Sep 24 19:00:05 rsk1 kernel: bttv: using 2 buffers
>with 2080k (4160k total) for capture
>Sep 24 19:00:05 rsk1 kernel: bttv: Host bridge is
>Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
>Sep 24 19:00:05 rsk1 kernel: bttv: Host bridge needs
>ETBF enabled.
>Sep 24 19:00:05 rsk1 kernel: bttv: Bt8xx card found
>(0).
>Sep 24 19:00:05 rsk1 kernel: bttv0: Bt878 (rev 17) at
>00:13.0, irq: 19, latency: 64, memory: 0xfc8fe000
>Sep 24 19:00:05 rsk1 kernel: bttv0: detected:
>Hauppauge WinTV [card=10], PCI subsystem ID is
>0070:13eb
>Sep 24 19:00:05 rsk1 kernel: bttv0: using:
>BT878(Hauppauge old) [card=2,insmod option]
>Sep 24 19:00:05 rsk1 kernel: bttv0: Hauppauge/Voodoo
>msp34xx: reset line init [5]
>Sep 24 19:00:06 rsk1 kernel: bttv0: Hauppauge eeprom:
>model=45231, tuner=Philips FM1236 (2), radio=yes!
>Sep 24 19:00:06 rsk1 kernel: bttv0: i2c: checking for
>MSP34xx @ 0x80... found
>Sep 24 19:00:06 rsk1 kernel: msp34xx: init:
>chip=MSP3435G-B6, has NICAM support
>Sep 24 19:00:06 rsk1 kernel: bttv0: i2c: checking for
>TDA9875 @ 0xb0... not found
>Sep 24 19:00:06 rsk1 kernel: bttv0: i2c: checking for
>TDA7432 @ 0x8a... not found
>Sep 24 19:00:06 rsk1 kernel: tvaudio: TV audio decoder
>+ audio/video mux driver
>Sep 24 19:00:06 rsk1 kernel: tvaudio: known chips:
>tda9840,tda9873h,tda9850,tda9855,tea6300,tea6420,tda8425,pic16c54
>(PV951)
>
>
>
>


Get your FREE download of MSN Explorer at http://explorer.msn.com

[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux