Bits and Chaos

Icon

Between bits and chaos, a sysadmin stands.

Pinnacle 50i with Fedora 8 64bit

Problem statement: I have a Pinnacle 50i and I want it working on Fedora 8 64 bit.

Symptoms:

  • The card works well with Windows XP, I have audio and video, so if audio is missing on Linux it’s not a cable problem;
  • On Linux, I got the video but not the audio. On Fedora 6, the audio was present but feeble, which suggests that the problem is part due to kernel module configuration and part to Pulseaudio.

Solution steps:

  • On /etc/modprobe.conf, tell the system that we want to use a saa7134 card plus the module to get its audio output feed into the ALSA subsystem:

options saa7134 card=77 video_nr=1 vbi_nr=1 radio_nr=1
install saa7134 /sbin/modprobe –ignore-install saa7134; /sbin/modprobe saa7134-alsa

  • As root issue: modprobe saa7134-alsa. Check that you have the card as an audio source:

$ arecord -l

**** List of CAPTURE Hardware Devices ****
card 0: CK8S [NVidia CK8S], device 0: Intel ICH [NVidia CK8S]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: CK8S [NVidia CK8S], device 1: Intel ICH – MIC ADC [NVidia CK8S – MIC ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: SAA7134 [SAA7134], device 0: SAA7134 PCM [SAA7134 PCM]
Subdevices: 0/1
Subdevice #0: subdevice #0

  • You have to make some kind of magic sound rerouting, instructing sox to connect the output of the card to the input of the ALSA subsystem:

$ ls -l /dev/dsp*

crw-rw—-+ 1 root root 14, 3 2008-01-27 12:50 /dev/dsp
crw-rw—-+ 1 root root 14, 35 2008-01-27 13:31 /dev/dsp2
$ sox -c 2 -s -w -r 32000 -t ossdsp /dev/dsp2 -t ossdsp -w -r 32000 /dev/dsp

  • Now you can start your tv viewer of choice (yum install tvtime kdetv to have them both). It’s possible that tvtime search for a /dev/video0 device whilst you have /dev/video1. If this happens, issue tvtime-configure -d /dev/video1 to fix for the configuration file.
  • Enjoy watching tv, which is something impossible on Sunday afternoon in Italy due to the very poor quality of what’s aired.

Some interesting links:

Some more infos:

$ uname -r

2.6.23.14-107.fc8

$ lspci

00:00.0 Host bridge: nVidia Corporation nForce3 250Gb Host Bridge (rev a1)
00:01.0 ISA bridge: nVidia Corporation nForce3 250Gb LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation nForce 250Gb PCI System Management (rev a1)
00:02.0 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
00:02.2 USB Controller: nVidia Corporation nForce3 EHCI USB 2.0 Controller (rev a2)
00:05.0 Bridge: nVidia Corporation CK8S Ethernet Controller (rev a2)
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb AC’97 Audio Controller (rev a1)
00:08.0 IDE interface: nVidia Corporation CK8S Parallel ATA Controller (v2.5) (rev a2)
00:0b.0 PCI bridge: nVidia Corporation nForce3 250Gb AGP Host to PCI Bridge (rev a2)
00:0e.0 PCI bridge: nVidia Corporation nForce3 250Gb PCI-to-PCI Bridge (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
02:08.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135 Video Broadcast Decoder (rev d0)
02:0b.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
02:0c.0 Mass storage controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)

$ content of /var/log/messages after issuing the modprobe command:

Jan 27 13:30:57 nx kernel: saa7130/34: v4l2 driver version 0.2.14 loaded
Jan 27 13:30:57 nx kernel: saa7133[0]: found at 0000:02:08.0, rev: 208, irq: 19, latency: 64, mmio: 0xfeaff800
Jan 27 13:30:57 nx kernel: saa7133[0]: subsystem: 11bd:002e, board: Pinnacle PCTV 40i/50i/110i (saa7133) [card=77,insmod option]
Jan 27 13:30:57 nx kernel: saa7133[0]: board init: gpio is 2008000
Jan 27 13:30:57 nx kernel: input: Pinnacle PCTV as /class/input/input12
Jan 27 13:30:57 nx kernel: ir-kbd-i2c: Pinnacle PCTV detected at i2c-2/2-0047/ir0 [saa7133[0]]
Jan 27 13:30:57 nx kernel: tuner 2-004b: chip found @ 0x96 (saa7133[0])
Jan 27 13:30:57 nx kernel: tuner 2-004b: setting tuner address to 61
Jan 27 13:30:57 nx kernel: tuner 2-004b: type set to tda8290+75a
Jan 27 13:30:58 nx kernel: tuner 2-004b: setting tuner address to 61
Jan 27 13:30:58 nx kernel: tuner 2-004b: type set to tda8290+75a
Jan 27 13:30:59 nx kernel: saa7133[0]: i2c eeprom read error (err=-5)
Jan 27 13:31:01 nx kernel: saa7133[0]: registered device video1 [v4l2]
Jan 27 13:31:01 nx kernel: saa7133[0]: registered device vbi1
Jan 27 13:31:01 nx kernel: saa7133[0]: registered device radio1
Jan 27 13:31:02 nx kernel: saa7134 ALSA driver for DMA sound loaded
Jan 27 13:31:02 nx kernel: saa7133[0]/alsa: saa7133[0] at 0xfeaff800 irq 19 registered as card -1
Jan 27 13:31:02 nx pulseaudio[2497]: alsa-util.c: Cannot find fallback mixer control “Mic”.
Jan 27 13:31:02 nx pulseaudio[2497]: module-alsa-source.c: Got POLLERR from ALSA

Advertisements

Filed under: fedora, , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: