Ubuntu

saa7134-dvb not loaded automatically

Reported by Matthew Wire on 2006-08-18
10
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Unassigned
linux-source-2.6.20 (Ubuntu)
Medium
Unassigned

Bug Description

saa7134-dvb module is not loaded automatically for KWorld dvb-220t card. Note, this is a hybrid analog/digital card. saa7134 is loaded automatically for the analog portion of this card.

lspci -v output for dvb card:
04:07.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135 Video Broadcast Decoder (rev d0)
        Subsystem: KWorld Computer Co. Ltd. Unknown device 7201
        Flags: bus master, medium devsel, latency 64, IRQ 58
        Memory at febff800 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [40] Power Management version 2

My system:
AMD64, running latest development version of edgy. saa7134-dvb module does not exist in Dapper.
Please let me know if I can provide any further information.

Jaakan Shorter (jaakanshorter) wrote :
Download full text (7.2 KiB)

More then just modules for your card don't get loaded.

NTSC/ATSC modules is are no loaded automatically at boot with my WinTV-D PCI card. I know for a fact the NTSC part of my card works under linux because I had KnoppMyth installed before Ubuntu and loaded it fine.

jaakan@AMD64:~$ sudo lspci -v
00:00.0 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
        Subsystem: VIA Technologies, Inc. K8M800 Host Bridge
        Flags: bus master, 66MHz, medium devsel, latency 8
        Memory at e8000000 (32-bit, prefetchable) [size=128M]
        Capabilities: [80] AGP version 3.0
        Capabilities: [50] Power Management version 2
        Capabilities: [60] HyperTransport: Slave or Primary Interface
        Capabilities: [58] HyperTransport: Interrupt Discovery and Configuration

00:00.1 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
        Flags: bus master, medium devsel, latency 0

00:00.2 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
        Flags: bus master, medium devsel, latency 0

00:00.3 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
        Flags: bus master, medium devsel, latency 0

00:00.4 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
        Flags: bus master, medium devsel, latency 0

00:00.7 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
        Flags: bus master, medium devsel, latency 0

00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800/K8T890 South] (prog-if 00 [Normal decode])
        Flags: bus master, 66MHz, medium devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        Memory behind bridge: f4000000-f5ffffff
        Prefetchable memory behind bridge: f0000000-f3ffffff
        Capabilities: [80] Power Management version 2

00:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
        Subsystem: Hauppauge computer works Inc. Unknown device 3900
        Flags: bus master, medium devsel, latency 32, IRQ 193
        Memory at f6101000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

00:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Subsystem: Hauppauge computer works Inc. Unknown device 3900
        Flags: medium devsel, IRQ 193
        Memory at f6100000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

00:09.0 Multimedia controller: Sigma Designs, Inc. REALmagic Hollywood Plus DVD Decoder (rev 02)
        Flags: bus master, medium devsel, latency 32, IRQ 185
        Memory at f6000000 (32-bit, non-prefetchable) [size=1M]
        Capabilities: [40] Power Management version 1

00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80) (prog-if 8f [Master SecP SecO PriP PriO])
        Subsystem: Chaintech Computer Co. Ltd Unknown device 7671
        Flags: bus master, medium devsel, latency 32, IRQ 169
        I/O ports at e000 [size=8]
        I/O ports at e100 [size=4]
        I/O ports at e200 [size=8]
        I/O ports at e300 [size=4]
        I/O port...

Read more...

I can confirm that this bug is still present in the latest Feisty kernel. On boot the module will not be loaded until manually 'modprobe'd. After which dvb does work correctly.

mythtv@media:~$ uname -a
Linux media 2.6.20-9-generic #2 SMP Mon Feb 26 03:01:44 UTC 2007 i686 GNU/Linux
mythtv@media:~$ dmesg > dmesg-initial.txt
mythtv@media:~$ sudo modprobe saa7134-dvb
mythtv@media:~$ dmesg > dmesg-after.txt
mythtv@media:~$ diff dmesg-initial.txt dmesg-after.txt
470a471,472
> [ 114.044000] DVB: registering new adapter (saa7133[0]).
> [ 114.044000] DVB: registering frontend 0 (Philips TDA10046H DVB-T)...

Also attaching my 'lspci -v' output in case that helps. If I can help in any other way just let me know.

Poster on upstream mailing list suggests creating a file '/etc/modprobe.d/dvb' with the contents attached.

This works for me. Is there any chance we can have this fix or something like it merged in? With this the card seems to Just Work.

Reference: http://www.linuxtv.org/pipermail/linux-dvb/2007-March/016796.html

MarkusRechberger (mrechberger) wrote :

I committed a better fix for this issue a while ago, it's already live in the v4l-dvb repository on linuxtv.

http://lists-archives.org/video4linux/16410-v4l-saa7134-module.html

Changed in linux-source-2.6.20:
assignee: nobody → ubuntu-kernel-team

I can confirm that this issue is now fixed upstream as MarkusRechberger says. Installing the latest modules from the v4l-dvb repository works for me.

I've not tried the latest DVB modules, but the workaround mentioned earlier didn't work for me.

People that have reached this page from Google might want to try the following workaround before they go installing packages from non-Ubuntu repositories:

In a terminal, do:

cat > /tmp/dvb << END && sudo mv /tmp/dvb /etc/modprobe.d/dvb
#
# Load the saa7134-dvb driver when the saa7134 module gets loaded
#

install saa7134 /sbin/modprobe --ignore-install saa7134 ; { sleep 1 ; /sbin/modprobe saa7134-dvb ; } &
END

Then restart your computer. Remember to type END then press <enter>.

If this doesn't work for you, you should delete the file '/etc/modprobe.d/dvb' by typing the following into a terminal:

sudo rm /etc/modprobe.d/dvb

 - Andrew Sayers

Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this bug to the new "linux" package. However, development has already began for the upcoming Intrepid Ibex 8.10 release. It would be helpful if you could test the upcoming release and verify if this is still an issue - http://www.ubuntu.com/testing . If the issue still exists, please update this report by changing the Status of the "linux" task from "Incomplete" to "New". We appreciate your patience and understanding as we make this transition. Thanks!

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

troosh (trush) wrote :
Download full text (3.7 KiB)

My Kworld DVB-T 220 tuner (VS-DVBT220RF) use chip SAA7131E/03/G:

cat /proc/version
==========
Linux version 2.6.27-2-generic (buildd@palmer) (gcc version 4.3.2 (Ubuntu 4.3.2-0ubuntu1) ) #1 SMP Thu Aug 28 17:20:02 UTC 2008

lspci -vvv
======
01:04.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135 Video Broadcast Decoder (rev d1)
 Subsystem: Device 7a72:8f9c
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 32 (63750ns min, 63750ns max)
 Interrupt: pin A routed to IRQ 16
 Region 0: Memory at ee002000 (32-bit, non-prefetchable) [size=2K]
 Capabilities: [40] Power Management version 2
  Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
  Status: D0 PME-Enable- DSel=0 DScale=3 PME-
 Kernel driver in use: saa7134
 Kernel modules: saa7134

lsmod | grep saa
==========
saa7134_alsa 20000 0
saa7134 147284 1 saa7134_alsa
ir_common 48132 1 saa7134
snd_pcm 83204 4 saa7134_alsa,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
videodev 41344 1 saa7134
compat_ioctl32 9344 1 saa7134
v4l2_common 19840 1 saa7134
videobuf_dma_sg 20612 2 saa7134_alsa,saa7134
videobuf_core 26628 2 saa7134,videobuf_dma_sg
tveeprom 20228 1 saa7134
snd 63140 17 saa7134_alsa,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
i2c_core 31892 4 saa7134,v4l2_common,tveeprom,i2c_amd756

dmesg
=====
[ 81.570959] saa7130/34: v4l2 driver version 0.2.14 loaded
...
[ 82.245252] saa7134 0000:01:04.0: PCI INT A -> Link[LNK1] -> GSI 16 (level, high) -> IRQ 16
[ 82.245265] saa7133[0]: found at 0000:01:04.0, rev: 209, irq: 16, latency: 32, mmio: 0xee002000
[ 82.245275] saa7133[0]: subsystem: 7a72:8f9c, board: UNKNOWN/GENERIC [card=0,autodetected]
[ 82.245304] saa7133[0]: board init: gpio is 100
[ 82.396017] saa7133[0]: i2c eeprom 00: 72 7a 9c 8f ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396032] saa7133[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396043] saa7133[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396053] saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396063] saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396073] saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396089] saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396099] saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396109] saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396119] saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396129] saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396139] saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 82.396149] s...

Read more...

The DVB drivers load properly for me when cold-booting into an Alpha 5 rescue CD. The driver won't load at all after a restart, although I think that's a hardware issue with my machine, so I consider this bug fixed.

troosh (trush) wrote :

Newer 2.6.27 kernel is not resolve this bug.

troosh (trush) wrote :

Subsystem 7a72:8f9c don't recognized as card=88 automatic.
What i'm get after add line "options saa7134 card=88" to file /etc/modprobe.d/options

[ 0.000000] Linux version 2.6.24-19-generic (buildd@terranova) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Wed Aug 20 22:56:21 UTC 2008 (Ubuntu 2.6.24-19.41-generic)
...
[ 40.831964] saa7130/34: v4l2 driver version 0.2.14 loaded
[ 40.832141] ACPI: PCI Interrupt 0000:01:04.0[A] -> Link [LNK1] -> GSI 16 (level, high) -> IRQ 20
[ 40.832152] saa7133[0]: found at 0000:01:04.0, rev: 209, irq: 20, latency: 32, mmio: 0xdf002000
[ 40.832161] saa7133[0]: subsystem: 7a72:8f9c, board: Tevion/KWorld DVB-T 220RF [card=88,insmod option]
[ 40.832180] saa7133[0]: board init: gpio is 100
[ 40.971562] saa7133[0]: i2c eeprom 00: 72 7a 9c 8f ff ff ff ff ff ff ff ff ff ff ff ff
[ 40.971576] saa7133[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 40.971586] saa7133[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 40.971595] saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 40.971604] saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 40.971613] saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 40.971621] saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 40.971630] saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 41.507551] tuner 1-004b: chip found @ 0x96 (saa7133[0])
[ 41.555533] tda8290 1-004b: setting tuner address to 61
[ 41.659483] tuner 1-004b: type set to tda8290+75a
[ 41.707446] tda8290 1-004b: setting tuner address to 61
[ 41.811396] tuner 1-004b: type set to tda8290+75a
[ 41.813872] saa7133[0]: registered device video0 [v4l2]
[ 41.813898] saa7133[0]: registered device vbi0
[ 41.813923] saa7133[0]: registered device radio0
[ 42.403127] saa7134 ALSA driver for DMA sound loaded
[ 42.403180] saa7133[0]/alsa: saa7133[0] at 0xdf002000 irq 20 registered as card -2
...
[ 42.587319] DVB: registering new adapter (saa7133[0])
[ 42.587329] DVB: registering frontend 0 (Philips TDA10046H DVB-T)...
[ 42.658948] tda1004x: setting up plls for 48MHz sampling clock
...
[ 44.653957] tda1004x: found firmware revision 23 -- ok
...
[ 146.844095] tda1004x: setting up plls for 48MHz sampling clock
[ 148.776114] tda1004x: found firmware revision 23 -- ok

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: Incomplete → Triaged

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

This bug report was marked as Triaged a while ago but has not had any updated comments for quite some time. Please let us know if this issue remains in the current Ubuntu release, http://www.ubuntu.com/getubuntu/download . If the issue remains, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-triage
Changed in linux (Ubuntu):
status: Triaged → Incomplete
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers