View | Details | Raw Unified | Return to bug 49112
Collapse All | Expand All

(-)xawtv/Makefile (+1 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	xawtv
8
PORTNAME=	xawtv
9
PORTVERSION=	3.85
9
PORTVERSION=	3.85
10
PORTREVISION=	1
10
CATEGORIES=	graphics
11
CATEGORIES=	graphics
11
MASTER_SITES=	http://bytesex.org/xawtv/
12
MASTER_SITES=	http://bytesex.org/xawtv/
12
DISTNAME=	${PORTNAME}_${PORTVERSION}
13
DISTNAME=	${PORTNAME}_${PORTVERSION}
(-)xawtv/files/patch-libng::grab-ng.h (+10 lines)
Line 0 Link Here
1
--- libng/grab-ng.h.orig	Mon Mar 10 20:49:19 2003
2
+++ libng/grab-ng.h	Mon Mar 10 20:17:01 2003
3
@@ -95,6 +95,7 @@
4
 #define ATTR_ID_HUE          8
5
 #define ATTR_ID_CONTRAST     9
6
 #define ATTR_ID_COUNT       10
7
+#define ATTR_ID_AUDIO       11
8
 
9
 #define CAN_OVERLAY          1
10
 #define CAN_CAPTURE          2
(-)xawtv/files/patch-libng::plugins::drv0-bsd.c (+53 lines)
Line 0 Link Here
1
--- libng/plugins/drv0-bsd.c.orig	Mon Mar 10 20:36:37 2003
2
+++ libng/plugins/drv0-bsd.c	Mon Mar 10 20:33:55 2003
3
@@ -154,8 +154,27 @@
4
     BT848_IFORM_F_RSVD,
5
 };
6
 
7
+static struct STRTAB audio[] = {
8
+    {  0, "Tuner"   },
9
+    {  1, "Extern"   },
10
+    {  2, "Intern"      },
11
+    { -1, NULL }
12
+};
13
+static int audio_map[] = {
14
+    AUDIO_TUNER,
15
+    AUDIO_EXTERN,
16
+    AUDIO_INTERN,
17
+};
18
+
19
 static struct ng_attribute bsd_attr[] = {
20
     {
21
+	id:       ATTR_ID_AUDIO,
22
+	name:     "audio",
23
+	type:     ATTR_TYPE_CHOICE,
24
+	choices:  audio,
25
+	read:     bsd_read_attr,
26
+	write:    bsd_write_attr,
27
+    },{
28
 	id:       ATTR_ID_NORM,
29
 	name:     "norm",
30
 	type:     ATTR_TYPE_CHOICE,
31
@@ -511,6 +530,12 @@
32
 	if (-1 != xioctl(h->tfd,get,&arg))
33
 	    value = arg;
34
 	break;
35
+    case ATTR_ID_AUDIO:
36
+	if (-1 != xioctl(h->tfd, BT848_GAUDIO, &arg))
37
+	    for (i = 0; i < sizeof(audio_map)/sizeof(int); i++)
38
+		if (arg == audio_map[i])
39
+		    value = i;
40
+	break;
41
     default:
42
 	break;
43
     }
44
@@ -541,6 +566,9 @@
45
 	bsd_get_range(attr->id,&get,&set);
46
 	arg = value;
47
 	xioctl(h->tfd,set,&arg);
48
+	break;
49
+    case ATTR_ID_AUDIO:
50
+	xioctl(h->tfd, BT848_SAUDIO,&audio_map[value]);
51
 	break;
52
     default:
53
 	break;

Return to bug 49112