This patch adds new parameter to bttv module to control automatic audio off when reception is poor.
Without it audio on some channels goes off and on and off ...
Kernel version is 2.4.16.
--- linux/drivers/media/video/bttv-driver.c-orig Wed Oct 17 23:19:20 2001
+++ linux/drivers/media/video/bttv-driver.c Thu Nov 29 23:59:21 2001
@@ -70,6 +70,7 @@
static unsigned int gbufsize = BTTV_MAX_FBUF;
static unsigned int combfilter = 0;
static unsigned int lumafilter = 0;
+static unsigned int audio_allways_on = 0;
static int video_nr = -1;
static int radio_nr = -1;
static int vbi_nr = -1;
@@ -98,6 +99,8 @@
MODULE_PARM_DESC(gbufsize,"size of the capture buffers, default is 0x208000");
MODULE_PARM(combfilter,"i");
MODULE_PARM(lumafilter,"i");
+MODULE_PARM_DESC(audio_allways_on,"leave audio on even if reception is poor, default is 0 (no)");
+MODULE_PARM(audio_allways_on,"i");
MODULE_PARM(video_nr,"i");
MODULE_PARM(radio_nr,"i");
@@ -2801,7 +2804,7 @@
if ((dstat&BT848_DSTATUS_HLOC) || (btv->radio))
audio(btv, AUDIO_ON,0);
else
- audio(btv, AUDIO_OFF,0);
+ if (!audio_allways_on) audio(btv, AUDIO_OFF,0);
}
count++;
--
Artur Zaprzała