I did some experiments and it turns out you can make this card working
under Linux.
Appropriate entry looks like this:
[SAA7134_BOARD_AVERMEDIA_CARDBUS_PLUS] = {
.name = "AVerMedia Cardbus TV/Radio Plus",
.audio_clock = 0x187de7,
.tuner_type = TUNER_ALPS_TSBE5_PAL,
.tda9887_conf = TDA9887_PRESENT,
.inputs = {{
.name = name_tv,
.vmux = 1,
.amux = LINE2,
.tv = 1,
},{
.name = name_comp1,
.vmux = 3,
.amux = LINE2,
},{
.name = name_svideo,
.vmux = 8,
.amux = LINE2,
}},
.radio = {
.name = name_radio,
.amux = LINE1,
},
},
and
/* AVerMedia CardBus Plus */
.vendor = PCI_VENDOR_ID_PHILIPS,
.device = PCI_DEVICE_ID_PHILIPS_SAA7134,
.subvendor = 0x1461, /* Avermedia Technologies Inc */
.subdevice = 0xb7e9,
.driver_data = SAA7134_BOARD_AVERMEDIA_CARDBUS_PLUS,
(audio_clock is copied from SAA7134_BOARD_CINERGY400_CARDBUS, works by chance,
but sound quality is OK - if anybody is brave enough to open her card and
check the real value - please give me a shout). The trick is to actually
enable tda9887 in saa7134_board_init1:
case SAA7134_BOARD_AVERMEDIA_CARDBUS_PLUS:
/* power-up tuner chip & the blue LED */
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x08400000, 0x08400000);
saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x08400000, 0x08400000);
break;
After these changes card is functional (I've used tvtime and xawtv). To get
the sound working you have to set params to saa7134:
options saa7134 oss=1 oss_rate=32000
and then fire up sox pumping data to your main soundcard:
sox -t ossdsp -w -c2 -r 32000 /dev/dsp2 -t ossdsp /dev/dsp
(assuming that your TV card is visible as /dev/dsp2 and your main card
is /dev/dsp). When using alsa the sound is unfortunately choppy:
sox -t ossdsp -w -c2 -r 32000 /dev/dsp2 -t alsa /dev/snd/pcmC0D0p
I don't have any composite source, so I couldn't test any other sources.
Remaining problems:
1. kdetv does not work (tvtime and xawtv work OK):
kdetv: Set tuner min/max to: 48-720 32-578
v4ldev::grab() [read]: error: wanted 829440, got rc = -1
[above line repeated a few times]
Too many errors. Ending V4L grabbing.
Using v4l2 plugin it shows only noise. v4l plugin shows one frame and then
stops.
2. After every channel change I have to restart sox. Is there any program
which would that automatically (i.e. didn't require to run anything external
but instead handle the sound itself)? Or maybe it's a saa7134 problem?
3. IR works (after setting dev->has_remote=1 in saa7134_board_init1, and
adding SAA7134_BOARD_AVERMEDIA_CARDBUS_PLUS to saa7134_input_init1). I
guessed the settings would be the same as SAA7134_BOARD_AVERMEDIA_307, but
that didn't work:
Mar 12 10:31:00 marcin kernel: saa7134[0]/ir: build_key gpio=0x8c00004
mask=0x7c8 data=0
This line is shown every time I press any button on the remote (even remote
for my HiFi). I'd assume that it doesn't work correctly as "data=0" is shown
for every button pressed. How can I learn what are the correct settings?
4. I have no idea how to test FM - any clues?
5. The card refuses to work when it is inserted during bootup - I have to boot
with card unplugged and plug it later. Is this known saa7134 fault or maybe
some weird interaction with PCMCIA/hotplug/cardmgr/whatever (I'm using custom
2.6.11 on Debian unstable)
--
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
[Home]
[Older V4L]
[Linux DVB]
[Video Disk Recorder]
[Video Technology]
[Asterisk]
[Photo]
[DCCP]
[Netdev]
[Plasma TVs]
[Video Projectors]
[PDAs]
[Xorg]
[Util Linux NG]
[Xfree86]
[Devices]
[Big List of Linux Books]
[Free Photo Albums]
[LCD TVs]
[Fedora Users]
[Webcams]
[Fedora Women]
[HDTV]
[ALSA Users]
[ALSA Devel]
[Stuff]
[SSH]
[Linux USB]