Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Aug 2004 15:30:25 GMT
From:      Justin Hibbits <jrh29@po.cwru.edu>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/60599: [sound] No sound for ATI TV Wonder (stereo)
Message-ID:  <200408121530.i7CFUPAh030109@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/60599; it has been noted by GNATS.

From: Justin Hibbits <jrh29@po.cwru.edu>
To: ojo@force.sk, freebsd-gnats-submit@FreeBSD.org
Cc: freebsd-current@freebsd.org
Subject: Re: kern/60599: [sound] No sound for ATI TV Wonder (stereo)
Date: Thu, 12 Aug 2004 11:26:55 -0400

 --Apple-Mail-5-200582066
 Content-Type: multipart/mixed; boundary=Apple-Mail-4-200582057
 
 
 --Apple-Mail-4-200582057
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=US-ASCII;
 	format=flowed
 
 The following patch adds ATI TV Wonder autoconfiguration.  It was 
 posted to current@ before, but I cleaned up the patch(es), making them 
 this unified diff.
 
 Hopefully someone can figure out the audio part now, I'll keep working 
 on it.
 
 -Justin
 --
 "And now, if you'll excuse me, I'm in the middle of 15 things, all 
 annoying" -- Lt. Cmdr Susan Ivanova, Babylon 5
 
 --Apple-Mail-4-200582057
 Content-Transfer-Encoding: 7bit
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="bktr.patch"
 Content-Disposition: attachment;
 	filename=bktr.patch
 
 --- bktr_card.c	Thu Aug 12 11:17:06 2004
 +++ /local/src/sys/dev/bktr/bktr_card.c	Thu Aug 12 09:15:58 2004
 @@ -32,7 +32,7 @@
   */
  
  #include <sys/cdefs.h>
 -__FBSDID("$FreeBSD: /repoman/r/ncvs/src/sys/dev/bktr/bktr_card.c,v 1.24 2004/08/08 01:23:39 sanpei Exp $");
 +__FBSDID("$FreeBSD: src/sys/dev/bktr/bktr_card.c,v 1.23 2003/12/08 07:59:18 obrien Exp $");
  
  /*
   * This is part of the Driver for Video Capture Cards (Frame grabbers)
 @@ -368,6 +368,20 @@
  	   { 0x02, 0x00, 0x00, 0x00, 1 },	/* audio MUX values */
  	   0x18e0 },				/* GPIO mask */
  
 +        {  CARD_TVWONDER,                       /* the card id */
 +          "ATI TV Wonder",              /* the 'name' */
 +           NULL,                                /* the tuner */
 +           0,                                   /* the tuner i2c address */
 +           0,                                   /* dbx is optional */
 +           0,
 +	   0,
 +           0,                                   /* EEProm type */
 +           0,                                   /* EEProm size */
 +	   /* Tuner, Extern, Intern, Mute, Enabled */
 +//	   { 0x1002, 0x1002, 0x3003, 0x3003, 0x3003 },	/* audio MUX values */
 +//	   0x300f },				/* GPIO mask */
 +	   { 0x1002, 0x1002, 0x3003, 0x3003, 0x3003 },	/* audio MUX values */
 +	   0x300f },				/* GPIO mask */
  };
  
  struct bt848_card_sig bt848_card_signature[1]= {
 @@ -569,6 +583,7 @@
  #define PCI_VENDOR_FLYVIDEO_2	0x1852
  #define PCI_VENDOR_PINNACLE_ALT	0xBD11
  #define PCI_VENDOR_IODATA	0x10fc
 +#define PCI_VENDOR_ATI	0x1002
  
  #define MODEL_IODATA_GV_BCTV3_PCI	0x4020
  
 @@ -713,6 +728,12 @@
  		    bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
  		    goto checkTuner;
  		}
 +		if (subsystem_vendor_id == PCI_VENDOR_ATI) {
 +                    bktr->card = cards[ (card = CARD_TVWONDER) ];
 +		    bktr->card.eepromAddr = eeprom_i2c_address;
 +		    bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
 +                    goto checkTuner;
 +                }
  
                  /* Vendor is unknown. We will use the standard probe code */
  		/* which may not give best results */
 @@ -1131,6 +1152,11 @@
  	    goto checkDBX;
  	    break;
  
 +	case CARD_TVWONDER:
 +	    select_tuner( bktr, PHILIPS_NTSC ); /* ALPS_TSCH6, in fact. */
 +	    goto checkDBX;
 +	    break;
 +
  	} /* end switch(card) */
  
  
 @@ -1274,6 +1300,10 @@
  
  	/* Enable PLL mode for Video Highway Xtreme users */
  	if (card == CARD_VIDEO_HIGHWAY_XTREME)
 +		bktr->xtal_pll_mode = BT848_USE_PLL;
 +
 +	/* Enable PLL mode for Video Highway Xtreme users */
 +	if (card == CARD_TVWONDER)
  		bktr->xtal_pll_mode = BT848_USE_PLL;
  
  
 --- bktr_card.h	Thu Aug 12 11:17:06 2004
 +++ /local/src/sys/dev/bktr/bktr_card.h	Thu Aug 12 08:41:55 2004
 @@ -1,4 +1,4 @@
 -/* $FreeBSD: /repoman/r/ncvs/src/sys/dev/bktr/bktr_card.h,v 1.7 2004/08/08 01:23:39 sanpei Exp $ */
 +/* $FreeBSD: src/sys/dev/bktr/bktr_card.h,v 1.6 2003/02/02 17:46:00 orion Exp $ */
  
  /*
   * This is part of the Driver for Video Capture Cards (Frame grabbers)
 @@ -76,9 +76,10 @@
  #define CARD_ASKEY_DYNALINK_MAGIC_TVIEW	14
  #define CARD_LEADTEK		15
  #define CARD_TERRATVPLUS	16
 -#define	CARD_IO_BCTV3		17
 -#define	CARD_AOPEN_VA1000	18
 -#define	Bt848_MAX_CARD		19
 +#define CARD_IO_BCTV3		17
 +#define CARD_AOPEN_VA1000	18
 +#define CARD_TVWONDER		19
 +#define Bt848_MAX_CARD		20
  
  #define CARD_IO_GV		CARD_IO_BCTV2
  
 
 --Apple-Mail-4-200582057--
 
 --Apple-Mail-5-200582066
 content-type: application/pgp-signature; x-mac-type=70674453;
 	name=PGP.sig
 content-description: This is a digitally signed message part
 content-disposition: inline; filename=PGP.sig
 content-transfer-encoding: 7bit
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (Darwin)
 
 iD8DBQFBG4xEqt29EJDZlM4RAoxPAJ905NY++KwRJnprYyHK5YSCpkZ/rwCdFvpf
 au4UmWmHpO9f64u4+ZXNW1c=
 =etld
 -----END PGP SIGNATURE-----
 
 --Apple-Mail-5-200582066--
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408121530.i7CFUPAh030109>