Hi,
I think I remember that a while ago someone mentioned that in the wm8775 all 4 mixer inputs are activated and that someone posted a patch to make the mixer selection configurable via a module parameter.
I didn't find the patch quickly, so I re-did it. I can now select the different audio sources when I load the wm8775 module.
The new parameter: (mixer) is four bit wide (not checked, use only values 0 to 15) and each bit selects one audio source.
I did the change on ivtv-0.3.2d. The patch has to be applied in the .../driver directory.
The only thing still missing for me is VBI. (Enabling ivtvctl to set the mixer selection would be convenient, though)
The card:
pvr 150, tuner=52, PAL (Germany), model 1048 (cx25840, cx23416, wm8775)
tveeprom: Hauppauge: model = 26034, rev = C197, serial# = 7702916 tveeprom: tuner = <unknown> (idx = 97, type = 4) tveeprom: tuner fmt = PAL(D/K) (eeprom = 0x44, v4l2 = 0x00000e07) tveeprom: audio_processor = MSP3400C (type = 4)
regards Uli
--- wm8775.c 2005-02-27 17:19:08.000000000 +0100
+++ wm8775-mixsel.c 2005-02-27 17:18:56.000000000 +0100
@@ -50,6 +50,10 @@
static int debug = 10;
MODULE_PARM(debug, "i");
MODULE_PARM_DESC(debug, "Debug level (0-1)");
+static int mixer = 0xf;
+MODULE_PARM(mixer, "i");
+MODULE_PARM_DESC(mixer, "Mixer select (0-f)");
+
#define MOD_NAME "wm8775"
@@ -427,7 +431,7 @@
// {MAXATTEN, 11},
// R21 0x102 AMX=2 LRBOTH=1
{LRBOTH, 1},
- {AMX, 0x0f}
+ {AMX, mixer}
};
state = kmalloc(sizeof(*state), GFP_KERNEL);
if (!state) { kfree(client); return -ENOMEM; }
