lkml.org 
[lkml]   [1999]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[bttv patch] (fix for) AVEC InterCapture support

The attached patch against 2.3.6 fixes the previous AVEC patch of mine.

It still doesn't implement the TEA6320 fader/mixer support fully (its
based on the TEA6300 support, which doesn't seem to be complete either --
does not support input switching!). Is moving to the style of audio
support that Ralph's bttv uses a 2.3 project? Or will it be included in
the v4l2 renovations? Including audio fader/mixer support in bttv.c
doesn't do much for code reusability.

af/mid

---
Adam Fritzler
{ mid@auk.cx, afritz@iname.com}
http://www.auk.cx/~mid/
"Behold the power of cheese." -- National Dairy Council
diff -ur linux-ia32/2.3.6.clean/drivers/char/bttv.c linux/drivers/char/bttv.c
--- linux-ia32/2.3.6.clean/drivers/char/bttv.c Thu Jun 10 08:05:59 1999
+++ linux/drivers/char/bttv.c Thu Jun 10 08:26:02 1999
@@ -547,7 +547,7 @@
/* "Leadtek WinView 601", */
{ 3, 1, 0, 2, 0x8300f8, { 2, 3, 1, 1,0}, {0x4fa007,0xcfa007,0xcfa007,0xcfa007,0xcfa007,0xcfa007}},
/* AVEC Intercapture */
- { 3, 1, 9, 2, 0, { 2, 3, 1, 1}, { 0, 0, 0, 0, 0}},
+ { 3, 2, 0, 2, 0, { 2, 3, 1, 1}, { 1, 0, 0, 0, 0}},
};
#define TVCARDS (sizeof(tvcards)/sizeof(tvcard))

diff -ur linux-ia32/2.3.6.clean/drivers/char/bttv.h linux/drivers/char/bttv.h
--- linux-ia32/2.3.6.clean/drivers/char/bttv.h Thu Jun 10 08:05:59 1999
+++ linux/drivers/char/bttv.h Thu Jun 10 08:29:44 1999
@@ -274,7 +274,7 @@
#define TEA6320_S 0x07 /* switch register */
/* values for those registers: */
#define TEA6320_S_SA 0x01 /* stereo A input */
-#define TEA6320_S_SB 0x02 /* stereo B */
+#define TEA6320_S_SB 0x07 /* stereo B -- databook wrong? this works */
#define TEA6320_S_SC 0x04 /* stereo C */
#define TEA6320_S_GMU 0x80 /* general mute */
\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.051 / U:12.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site