Kworld Sound Cards & Media Devices Driver



Assuming your soundcard is card 0 add the following to /etc/modprobe.conf (or /etc/modprobe.d/saa7134). This code block will auto install the saa7134 modules as sound card 1, (allowing the video to fall where it may usually /dev/video0). This means that to access the audio input stream you would select /dev/dsp1 as your audio input.

Warning: This page has been locked and archived on September 28, 2010. The official documentation for this card can be found at KWorld_Studio_TV_Terminator. This page remains as there is significant information herein not included in the official documentation. Please migrate any such information to the proper location.

Kworld Sound Cards & Media Devices Driver
  • 4HOWTO with Mythdora
  • 5HOWTO with KnoppMyth
  • To get sound from the NTSC tuner via the PCI bus (i.e. Without a loopback cable) you need to load one more module. This is not necessary for ATSC/QAM. Use 'index=1' if you only have one sound card. If you open 'alsamixer -c 0' or 'alsamixer -c 1', you should see what sound card is what in the upper left hand corner of the screen.
  • When I installed the Card and turned on the computer I heard a loud pop in my Logitec 5.1 Speakers and now 2 channels are blown and my 5.1 sound card does not work right any more. Will not make clear copy's from my video camera. Had to go bye the cable to hook up the sound cards, It was supposed to be in the installation kit.

General

(Version: VS-LTV7131RF) This (very inexpensive) card has been successfully set up on FC6 and FC8. Also has an FM tuner and an IR receiver and remote. The MSI TV@nywhere Plus PCI is nearly identical to the KWorld Global TV Terminator. I have also found that the KWorld TV Studio Terminator is also compatible with these directions.

Card information:

Kworld Sound Cards & Media Devices Driver

Audio capture device information:

Assuming your soundcard is card 0 add the following to /etc/modprobe.conf (or /etc/modprobe.d/saa7134). This code block will auto install the saa7134 modules as sound card 1, (allowing the video to fall where it may usually /dev/video0). This means that to access the audio input stream you would select /dev/dsp1 as your audio input:

Use v4lctl to display/set the card attributes: Note this may not work for users who are using v4l2-ctl as the output has changed. If you find yourself using v4l2-ctl try using the '--all' switch to see the output but be warned that things are not formatted the same. - meaje 2008-10-22

If you setup saa7134-alsa as card 1 you will refer to it as /dev/dsp1 in mythtv-setup when setting up the capture card.

Remote

The remote has 36 buttons of which 32 send unique codes. The remote is not fully supported in the kernel but the knowledge exists on how to get it working by patching the kernel. It is apparently a combined GPIO/i2c remote and a patch has been posted to the v4l mailing list and modified a few times for similar remotes (see Henry Wong patch). There are changes needed in the ir-kbd-i2c and saa7134 modules. Here is a full description on how I got the remote working with Fedora 7 and the 2.6.22 kernel: Terminator Remote Kernel Patch Fedora HOWTO

Kworld Sound Cards & Media Devices Drivers

Here are alternative versions of Henry Wong's patch:Ubuntu FeistyUbuntu Hardy (kernel 2.6.24)Debian Etch

Problems

Video but no sound? You may need to turn the volume up on the capture. Assuming /dev/dsp1 again run the following command:

Not working in MythTV? Try it with mplayer. If this works (you may need to modify device, chanlist, adevice, or norm) then you have MythTV misconfigured somehow.

HOWTO with Mythdora

This is a How To for setting this card up in MythDora(specifically 4.0). Much of this was taken from the wiki already and this is just here to make it easier to decipher which commands should be used and also to show that it works when hardware shopping. It was written on 08/03/07.

Video

Uses the saa7134 driver, which will automatically be loaded by Mythdora, but you need to pass the parameters card=65 tuner=54 when the module is loaded. To do this automatically, create a file called saa7134 in /etc/modprobe.d/ with the following contents:

Now every time the module is loaded, it will be passed these parameters.

You should now see your card show up in the Mythtv setup of capture cards.

I am not certain that this is correct, but I used it as a V4L capture card and it worked.

Audio

Unlike Knoppmyth Mythdora uses the saa7134-alsa module. However it usually starts with the volume turned all the way down. Use the fix below to adjust the sound of the card:

This is assuming the audio of the card is /dev/dsp1 (if not change the 1 at the end to the card number) again run the following command:

Finally to get sound working you may need to go into Utilities/Setup> Setup> General and on the 3rd page you will see info on how your sound is output from Mythtv. Make sure it is using the right soundcard and you may also have to change the Passthrough to the Alsa option.

HOWTO with KnoppMyth

Kworld Sound Cards & Media Devices Driver

This is a mini HOWTO for getting the video, audio, and remote of the KWorld Global TV Terminator working with KnoppMyth (specifially, version 5E50). The information may be useful to other distributions. It was created on Feb 20, 2007.

Video

Uses the saa7134 driver, which will automatically be loaded by KnoppMyth, but you need to pass the parameters card=65 tuner=54 when the module is loaded. To do this automatically, create a file called saa7134 in /etc/modprobe.d/ with the following contents:

Now everytime the module is loaded, it will be passed these parameters.

That's it for video. You should now see your card show up in the KnoppMyth setup of capture cards.

Audio

A lot of the documentation I found said to use the saa7134-alsa module for sound; this module is not loaded by KnoppMyth by default, and I found that when I loaded it, it caused a kernel panic.

However, there is another module that provides sound for the saa7134 and that is saa7134-oss. This module worked great for me.

Loading this module should create /dev/dsp1 (or a higher number if another device is already using /dev/dsp1). You need to tell KnoppMyth to use this audio device in the capture card setup.

By default, the sound may be muted, the volume may be too low, and automute may be on (not sure what effect automute has). In order to ensure these settings allow sound to come through, you need to use the video4linux 2 control utility (v4l2-ctl) to change them:

This should be it to get audio working, but you'll probably want these steps to be taken every time the computer boots. To do this, I placed the following lines in /etc/init.d/rc.local (after the line '. /lib/lsb/init-functions'):

and then added rc.local to the system startup by issuing the command:

Remote

The remote is the most difficult piece to get to work. It requires patching the kernel.

In order to do this, you need to download the kernel source, which can be found at ftp://knoppmyth.net/R5/linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb

Install it with:

This will create a .tar.bz2 file containing the source in /usr/src/ . Untar this file.

Now you'll need to apply some patches.

The heavy lifting is done by a patch by Henry Wong. I've modified it so that it applies cleanly to the kernel source we are working with. I've broken it into 5 parts:


KWorld_Global_TV_Terminator remote_control_part1.patch


KWorld_Global_TV_Terminator remote_control_part2.patch


KWorld_Global_TV_Terminator remote_control_part3.patch


KWorld_Global_TV_Terminator remote_control_part4.patch


KWorld_Global_TV_Terminator remote_control_part5.patch

You can apply these by cd'ing to the /usr/src/linux-source-2.6.18-chw-13 directory and running:

This patch is successful in getting events delivered from the remote control. However, they always had the same keycode on my system and were thus useless.

In order to fix this, I wrote a patch which is a total hack. It results in a remote control that mostly works. Some buttons don't work and keypresses don't always register, but it's usable. You can find the patch here:


Note that this patch hacks part of the infrared subsystem, so you may want to be especially wary of using it if you have other infrared devices.

Apply this patch the same way you did the other patches:

Now you'll need to recompile the kernel modules, but before you do this, you should backup your current modules (located in /lib/modules/2.6.18-chw-13). One way to do this is to move this directory to 2.6.18-chw-13.old . That way, restoring the modules is simply a matter of renaming it back.

Now go into /usr/src/linux-source-2.6.18-chw-13 and type 'make menuconfig'.

Scoll down and select 'load an alternate configuration file'.

Specify the file '/boot/config-2.6.18-chw-13'.

Save and exit.

Compile the modules and install them in /lib/modules/2.6.18-chw-13 by typing 'make modules && make modules_install'.

Now run 'depmod' to generate symbol information in the /lib/modules/2.6.18-chw-13 directory.

Go ahead and reboot. The modules important to the remote control should be automatically loaded by KnoppMyth.

If everything goes well you should be able to open a terminal, press the 1 key on your remote and see a 1 appear in the terminal (make sure that num lock is on).

You'll now have the following keys working and generating the following X keycodes:

In order for mythtv to make sense of these keys, you'll want to use xmodmap to map the keycodes to well-known keysyms. To do this, you need to create a file called /home/mythtv/.Xmodmap and you need to run 'xmodmap /home/mythtv/.Xmodmap' every time X starts.

My .Xmodmap looks like this:

To get xmodmap to run every time X starts, I added the following line to /home/mythtv/.fluxbox/apps after the line '[startup] {xset -dpms s off}':

Now restart X to get the new mappings to load (ctrl-alt-backspace should do the trick).

mythtv should recognize the keys as if you pressed the corresponding key on the keyboard (Utilities/Setup->Edit Keys is where you bind keys to functions in mythtv BTW).

Resources

Retrieved from 'http://www.mythtv.org/wiki?title=KWorld_Global_TV_Terminator&oldid=49860'