You are not logged in.

#1 2011-03-12 01:09:20

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Too many problems with a tv card (philips saa7134)

Hi, I have a tv card (with fm radio receptor). This Tv Card has no brand (selled by Dekermann) but after much work and search in the web can see video with this settings:

saa7134 card=42 tuner=43

saa7130/34: v4l2 driver version 0.2.16 loaded
saa7134 0000:03:06.0: PCI INT A -> Link[APC1] -> GSI 16 (level, low) -> IRQ 16
saa7130[0]: found at 0000:03:06.0, rev: 1, irq: 16, latency: 15, mmio: 0xfddff000
saa7134 0000:03:06.0: setting latency timer to 64
saa7130[0]: subsystem: 1131:0000, board: Sabrent SBT-TVFM (saa7130) [card=42,insmod option]
saa7130[0]: board init: gpio is 804000
saa7130[0]: Huh, no eeprom present (err=-5)?
tuner 2-0060: chip found @ 0xc0 (saa7130[0])
saa7130[0]: registered device video0 [v4l2]
saa7130[0]: registered device vbi0
saa7130[0]: registered device radio0

But I don't have sound and don't know how (after searching) to make the sound works. The only thing I know is the existence of a module called saa7134_alsa but I don't know how make it works.

arecord -l show this:

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: ICH [Intel ICH], device 0: Intel ICH [Intel ICH]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: ICH [Intel ICH], device 1: Intel ICH - MIC ADC [Intel ICH - MIC ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

When I saw in /dev/ the existence of /dev/radio, I wanted to make work the radio with gnomeradio but this don't work and LIRC also didn't. And this program don't send any error message.

For LIRC I have loaded lirc_dev lirc_i2c modules, based in the LIRC web information. http://www.lirc.org/html/table.html#@hw-tv-card

Thank You

Last edited by ffuentes (2011-03-14 17:22:34)

Offline

#2 2011-03-12 10:53:59

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Too many problems with a tv card (philips saa7134)

first, does the sound from normal audio card, work ? example, listen a mp3....


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2011-03-12 12:30:02

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Too many problems with a tv card (philips saa7134)

What are you using to watch TV? Only mplayer supports direct audio, other apps (including tvtime) don't. Using sox with tvtime is the usual workaround. Not exactly pretty, but works.

Offline

#4 2011-03-12 17:12:59

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

nTia89 wrote:

first, does the sound from normal audio card, work ? example, listen a mp3....

Yes, it works well.

gusar wrote:

What are you using to watch TV? Only mplayer supports direct audio, other apps (including tvtime) don't. Using sox with tvtime is the usual workaround. Not exactly pretty, but works.

Tvtime and xawtv. I have tried to use sox. Linux only detect these audio devices:

$arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: ICH [Intel ICH], device 0: Intel ICH [Intel ICH]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: ICH [Intel ICH], device 1: Intel ICH - MIC ADC [Intel ICH - MIC ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

That is the audio from the mother board.

Last edited by ffuentes (2011-03-12 17:15:44)

Offline

#5 2011-03-12 17:43:37

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Too many problems with a tv card (philips saa7134)

i've never had a tv card, so, my suggest is to search (google for example) in other wiki, such as ubuntu or fedora, or site like linuxtv.org


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#6 2011-03-12 18:58:19

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

nTia89: That's what I have done.

Offline

#7 2011-03-12 20:20:31

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Too many problems with a tv card (philips saa7134)

Is the cards alsa module loaded? lsmod | grep XXX

I have this in my module options:
options cx88-alsa index=2
For my HVR1300 card. index=2 sets it to card no 2 for alsa.

Offline

#8 2011-03-12 20:41:41

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

This?

$ lsmod | grep saa
saa7134               138267  0 
v4l2_common             5844  2 tuner,saa7134
videodev               57747  4 gspca_main,tuner,saa7134,v4l2_common
videobuf_dma_sg         7224  1 saa7134
videobuf_core          13399  2 saa7134,videobuf_dma_sg
ir_common               3506  1 saa7134
ir_core                12882  8 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder,saa7134,ir_common
tveeprom               10577  1 saa7134
i2c_core               15930  9 tuner_simple,tea5767,nvidia,tuner,saa7134,v4l2_common,videodev,tveeprom,i2c_nforce2

I have only /dev/dsp from mother board, it seems not recognize audio from card.

Offline

#9 2011-03-12 21:06:25

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Too many problems with a tv card (philips saa7134)

You don't have saa7134_alsa loaded.

Offline

#10 2011-03-12 21:11:42

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

gusar wrote:

You don't have saa7134_alsa loaded.

Yes, but I have enabled it with modprobe and a /dev/dsp1 or something similar does not appear.

$ dmesg | grep saa
saa7130/34: v4l2 driver version 0.2.16 loaded
saa7134 0000:03:06.0: PCI INT A -> Link[APC1] -> GSI 16 (level, low) -> IRQ 16
saa7130[0]: found at 0000:03:06.0, rev: 1, irq: 16, latency: 15, mmio: 0xfddff000
saa7134 0000:03:06.0: setting latency timer to 64
saa7130[0]: subsystem: 1131:0000, board: Sabrent SBT-TVFM (saa7130) [card=42,insmod option]
saa7130[0]: board init: gpio is 804000
saa7130[0]: Huh, no eeprom present (err=-5)?
saa7130[0]: i2c scan: found device @ 0xc0  [tuner (analog)]
saa7130[0]: i2c scan: found device @ 0xc2  [???]
tuner 2-0060: chip found @ 0xc0 (saa7130[0])
saa7130[0]: registered device video0 [v4l2]
saa7130[0]: registered device vbi0
saa7130[0]: registered device radio0
saa7134 ALSA driver for DMA sound loaded
saa7130[0]/alsa: Sabrent SBT-TVFM (saa7130) doesn't support digital audio

Last edited by ffuentes (2011-03-12 21:12:20)

Offline

#11 2011-03-12 21:23:23

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Too many problems with a tv card (philips saa7134)

Well, this line says it all:

/alsa: Sabrent SBT-TVFM (saa7130) doesn't support digital audio

Is this an internal card? Does it have audio-out? If yes, just connect that to line-in on your sound card. If there's no audio-out, then 'card=42 tuner=43' is not the correct option for this card.

Offline

#12 2011-03-12 22:38:50

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

Yes, is an internal card and does not have audio-out but I have not found a working configuration. (With this config. at least I see the video).

I'm using http://mstr.ueuo.com/saa/index.php?id=Y to search and try.

Offline

#13 2011-03-13 11:11:25

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Too many problems with a tv card (philips saa7134)

I also have a tv card with this chip. Here's the script I use to watch analog tv with it

mplayer tv:// -af volnorm -vf yadif -delay 0.2 -tv driver=v4l2:norm=PAL:fps=25:width=768:height=576:device=/dev/video0:chanlist=europe-west:alsa=yes:adevice=plughw.1,0:audiorate=32000:forceaudio=1:immediatemode=0:channels=`cat ${HOME}/.bin/sender`

and my "sender" file looks like this

E7-ARD,E6-ZDF,E5-SWR_BW,SE10-BR,E10-Sat1,SE14-Pro7,E9-RTL,25-RegioTV,SE7-MTV,SE12-VIVA,SE6-Kabel1,SE9-Phoenix,SE11-SuperRTL,SE13-3sat,E12-DSF,SE15-EuroSport,E11-ZDF-Doku,SE16-RTL2,SE17-WDR,SE18-NDR,22-SF_DRS,47-SF2,24-ORF1,23-ORF2,26-N24,27-NTV,28-MDR,31-ARTE,34-DMAX,36-Das_Vierte,41-BR_alpha,42-HR,44-CNN,45-Bloomberg,50-AnixeSD,51-RBB

which of course you have to adjust yourself.

I also use this line in the modprobe.conf

options saa7134-alsa index=1

so the tv card always has the same index, which is important for the mplayer line to work.

DVB-T works out of the box.

Last edited by Army (2011-03-13 11:12:18)

Offline

#14 2011-03-14 16:55:43

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

@Gusar: You are correct!

Card box had a little cable, and all I needed to do was plug that in the card "audio out" and works well.

I thought you were talking to me about an internal plug (inside the machine).

Thank you.

Well, I only need to set lirc.

Offline

#15 2011-03-14 20:12:12

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

I can't make that lirc and my remote control can communicate.

dmesg | grep lirc
lirc_dev: IR Remote Control driver registered, major 61 
lirc_i2c: module is from the staging directory, the quality is unknown, you have been warned.
$ cat /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0 
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
U: Uniq=
H: Handlers=kbd event1 
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0003 Vendor=093a Product=2472 Version=0100
N: Name="pac207"
P: Phys=usb-0000:00:0b.0-7/input0
S: Sysfs=/devices/pci0000:00/0000:00:0b.0/usb2/2-7/input/input2
U: Uniq=
H: Handlers=kbd event2 
B: EV=3
B: KEY=100000 0 0 0 0 0 0

I: Bus=0003 Vendor=0458 Product=003a Version=0110
N: Name="Genius Optical Mouse"
P: Phys=usb-0000:00:0b.0-3/input0
S: Sysfs=/devices/pci0000:00/0000:00:0b.0/usb2/2-3/2-3:1.0/input/input3
U: Uniq=
H: Handlers=mouse0 event3 
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0003 Vendor=045e Product=00dd Version=0111
N: Name="Microsoft Comfort Curve Keyboard 2000"
P: Phys=usb-0000:00:0b.0-4/input0
S: Sysfs=/devices/pci0000:00/0000:00:0b.0/usb2/2-4/2-4:1.0/input/input4
U: Uniq=
H: Handlers=sysrq kbd event4 
B: EV=120013
B: KEY=10000 7 ff800000 7ff febeffdf f3cfffff ffffffff fffffffe
B: MSC=10
B: LED=107

I: Bus=0003 Vendor=045e Product=00dd Version=0111
N: Name="Microsoft Comfort Curve Keyboard 2000"
P: Phys=usb-0000:00:0b.0-4/input1
S: Sysfs=/devices/pci0000:00/0000:00:0b.0/usb2/2-4/2-4:1.1/input/input5
U: Uniq=
H: Handlers=sysrq kbd event5 
B: EV=10001f
B: KEY=837fff 2c3027 bf004444 0 0 1 10f84 8b27c007 ffff7bfa d9415fff febeffdf ffefffff ffffffff fffffffe
B: REL=40
B: ABS=1 0
B: MSC=10

Following http://www.lirc.org/html/table.html#@hw-tv-card I have loaded lirc_dev and lirc_i2c modules but when I try to get signal of the remote with "sudo mode2 -d /dev/lircd" or "irw" not work with any house controller .

Last edited by ffuentes (2011-03-14 21:11:20)

Offline

#16 2011-03-15 08:34:55

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: Too many problems with a tv card (philips saa7134)

Unfortunately mode2 does not work with /dev/input devices and I suggest you use the /dev/input/by-id or by-path device node.

I too have a saa7134 device with a Phillips chipset (avermedia) and I find udev is very flakey regarding the /dev/lirc devices and the /dev/input/event device can change when other devices are added or removed. That's why I use the by-path or by-id nodes as they are static.

Firstly, make sure you have the device node added in /etc/lirc/hardware.conf

Of course, ensure you have lircd added to the modules in /etc/rc.conf so the daemon will start on boot thus negating the next step

And ensure the lirc daemon is running with /etc/rc.d/lircd restart

Now run irrecord -n -d <device node> -H devinput /etc/lirc/lircrd.conf (make sure you back up the original lircrd.conf first)

All going well, you should now be able to record your remote's buttons.

Cheers.

Last edited by Padfoot (2011-03-15 08:39:30)

Offline

#17 2011-03-15 18:50:27

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

I don't know why, but I can't see my infrared point in /dev/input

Modules are loaded, daemon is started, remote controller cable is connected, tv card is working.

$ ls /dev/input/by-path
pci-0000:00:0b.0-event
pci-0000:00:0b.0-usb-0:3:1.0-event-mouse
pci-0000:00:0b.0-usb-0:3:1.0-mouse
pci-0000:00:0b.0-usb-0:4:1.0-event-kbd
pci-0000:00:0b.0-usb-0:4:1.1-event-kbd

sad

Last edited by ffuentes (2011-03-15 18:54:41)

Offline

#18 2011-03-16 07:26:02

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: Too many problems with a tv card (philips saa7134)

What's the output of

ls /dev/input/by-id

??

Offline

#19 2011-03-16 17:28:41

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

$ ls /dev/input/by-id
usb-Genius_Optical_Mouse-event-mouse
usb-Genius_Optical_Mouse-mouse
usb-Microsoft_Comfort_Curve_Keyboard_2000-event-kbd

Offline

#20 2011-03-17 05:37:37

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: Too many problems with a tv card (philips saa7134)

Ok, From the output of ls /dev/input/by-path and ls /dev/input/by-id along with your dmesg and cat /proc/bus/input/devices output posted earlier, no device has been registered for your IR remote. This leads me to think you do not have the correct card/tuner insmod options.

If the remote was being picked up, dmesg | grep saa (similar to the output in your 1st post) would have the IR device being registered on a /dev/input/eventX node near the top of the output.

Let me have a look at http://linuxtv.org to see if I can find beter insmod options for your TV card.

Cheers.

[UPDATE]

Ok, looking at the vendor website you provided in your 1st post, the only TV card I could find on there is the TARJETA DE TV SIN FM. This card is also reported to be a KWorld Studio TV Terminator.

Looking on linuxtv.org, your insmod options should be card=65 tuner=54.

Try those options and report back the output of:

dmesg | grep saa
cat /prop/bus/input/devices
ls /dev/input/by-id
ls /dev/input/by-path

Cheers.

Last edited by Padfoot (2011-03-17 05:55:43)

Offline

#21 2011-03-17 20:19:30

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

Thank you, I have tried this and settings works but the video goes out via Composite and I can't tune TV in tvtime, but in XAWTV i can do it.

LIRC is detected by dmesg but not signal is showed either mode2 or irw commands.

I surrender.

At least I can see television.

Offline

#22 2011-03-18 06:43:30

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: Too many problems with a tv card (philips saa7134)

Not a problem.

If you have TV in Xawtv but not TVtime, you most likely need to copy across your channels.conf file.

dmesg reporting LIRC being loaded only means the LIRC daemon is running. Your remote device still needs to be configured.

If you like, I can help you do that (by posting the output of the commands in my previous post).

Of course I understand these things can be quite frustrating. You should have seen the issues I had when first using my TV card on Linux. Support for it wasn't built into the kernel at that time, so there was a lot of modules to be patched just to get basic functionality. For a beginner with Linux, believe me there were a lot of things being thrown around the room!

But I pressed on, and finally, with a lot of help from linuxtv.org, I got it going.

So let me know if you want to continue. Demoralising as it may be at the time, the satisfying feeling of triumph once you have it working really goes a long way to tackling more difficult issues in the future.

Cheers.

Offline

#23 2011-03-18 22:12:36

ffuentes
Member
From: Santiago, Chile
Registered: 2009-08-23
Posts: 35

Re: Too many problems with a tv card (philips saa7134)

You are right, thank you for your help and kindness. smile

I would want to know is if the remote receptor actually works. Is a cable connected to the card with a little plastic receptor of signals which I don't have see works ever. I don't have Windows installed here.

Another thing is radio FM, that I don't know how to set and information in forums are not much. Your suggested card and tuner data are from a card without FM function, at least for the spanish title: TARJETA DE TV SIN FM.

It's all. xD

Thank you again.

Offline

Board footer

Powered by FluxBB