Автор Гілка: Налаштування TV тюнеру  (Прочитано 13082 раз)

Відсутній Tomkat

  • Кореспондент
  • ***
  • дописів: 160
  • Карма: +0/-0
Допоможыть, будь ласа, тюнер на saa7134. В системі його видно, встановис tvtime, mplayer - скрізь чорний квадрат . VLC теж не показує. А з веб -камери - показує .
В системі є три відеодевайса -
/dev/video0 - вебка
/dev/video1 - мабуть відеовхід тюнера
/dev/vbi0 - мабуть сам тюнер

Відсутній cadca

  • Письменник
  • *****
  • дописів: 955
  • Карма: +0/-0
  • free like beer
Re: Налаштування TV тюнеру
« Відповідей #1 : 2013-03-09 13:04:29 »
Результат "lspci -v" в студію.
Ubuntu 20.04/18.04; CentOS 7.x

Відсутній prapor

  • Письменник
  • *****
  • дописів: 518
  • Карма: +0/-0
Re: Налаштування TV тюнеру
« Відповідей #2 : 2013-03-09 17:29:27 »
Я зробив простіше:
/etc/udev/rules.d/85-v4l.rules
# Persistent symlinks for webcam and tuner
KERNEL=="video*", ATTRS{idProduct}=="0002", ATTRS{idVendor}=="1d6b", SYMLINK+="webcam"
KERNEL=="video*", ATTRS{device}=="0x4384", ATTRS{vendor}=="0x1002", SYMLINK+="tvtuner"

Тепер у мене вебка завжди доступна по /dev/webcam а ТБ-приймач — /dev/tvtuner.

P.S. Мені одному здається, що місце цьому у «Апаратній»?
- I'm afraid your son has the knack.
- The knack?
- The knack. It's a rare condition characterised by an extreme intuition about all things mechanical and electrical. And utter social ineptitude.
- Can he lead a normal life?
- No, he'll be an engineer.

Відсутній cadca

  • Письменник
  • *****
  • дописів: 955
  • Карма: +0/-0
  • free like beer
Re: Налаштування TV тюнеру
« Відповідей #3 : 2013-03-09 21:25:44 »
Я зробив простіше:
/etc/udev/rules.d/85-v4l.rules
# Persistent symlinks for webcam and tuner
KERNEL=="video*", ATTRS{idProduct}=="0002", ATTRS{idVendor}=="1d6b", SYMLINK+="webcam"
KERNEL=="video*", ATTRS{device}=="0x4384", ATTRS{vendor}=="0x1002", SYMLINK+="tvtuner"

Тепер у мене вебка завжди доступна по /dev/webcam а ТБ-приймач — /dev/tvtuner.
З тюнерами на цьому чіпі не все так просто - мені аналогічний вдалось заставити працювати через примусове виставлення параметрів модуля ядра.
Ubuntu 20.04/18.04; CentOS 7.x

Відсутній Tomkat

  • Кореспондент
  • ***
  • дописів: 160
  • Карма: +0/-0
Re: Налаштування TV тюнеру
« Відповідей #4 : 2013-03-10 10:27:21 »
Результат "lspci -v" в студію.
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
      Subsystem: Intel Corporation Device 2002
      Flags: bus master, fast devsel, latency 0
      Capabilities: [e0] Vendor Specific Information: Len=0c <?>

00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
      Subsystem: Intel Corporation Device 2002
      Flags: bus master, fast devsel, latency 0, IRQ 49
      Memory at fe000000 (64-bit, non-prefetchable) [size=4M]
      Memory at e0000000 (64-bit, prefetchable) [size=256M]
      I/O ports at f000 [size=64]
      Expansion ROM at <unassigned> [disabled]
      Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
      Capabilities: [d0] Power Management version 2
      Capabilities: [a4] PCI Advanced Features
      Kernel driver in use: i915
      Kernel modules: i915

00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
      Subsystem: Intel Corporation Device 2002
      Flags: bus master, fast devsel, latency 0, IRQ 50
      Memory at fe629000 (64-bit, non-prefetchable) [size=16]
      Capabilities: [50] Power Management version 3
      Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
      Kernel driver in use: mei
      Kernel modules: mei

00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05)
      Subsystem: Intel Corporation Device 2002
      Flags: bus master, fast devsel, latency 0, IRQ 48
      Memory at fe600000 (32-bit, non-prefetchable) [size=128K]
      Memory at fe628000 (32-bit, non-prefetchable) [size=4K]
      I/O ports at f080 [size=32]
      Capabilities: [c8] Power Management version 2
      Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
      Capabilities: [e0] PCI Advanced Features
      Kernel driver in use: e1000e
      Kernel modules: e1000e

00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
      Subsystem: Intel Corporation Device 2002
      Flags: bus master, medium devsel, latency 0, IRQ 16
      Memory at fe627000 (32-bit, non-prefetchable) [size=1K]
      Capabilities: [50] Power Management version 2
      Capabilities: [58] Debug port: BAR=1 offset=00a0
      Capabilities: [98] PCI Advanced Features
      Kernel driver in use: ehci_hcd

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
      Subsystem: Intel Corporation Device 2002
      Flags: bus master, fast devsel, latency 0, IRQ 51
      Memory at fe620000 (64-bit, non-prefetchable) [size=16K]
      Capabilities: [50] Power Management version 2
      Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
      Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
      Capabilities: [100] Virtual Channel
      Capabilities: [130] Root Complex Link
      Kernel driver in use: snd_hda_intel
      Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) (prog-if 00 [Normal decode])
      Flags: bus master, fast devsel, latency 0
      Bus: primary=00, secondary=01, subordinate=02, sec-latency=0
      Memory behind bridge: fe500000-fe5fffff
      Capabilities: [40] Express Root Port (Slot+), MSI 00
      Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
      Capabilities: [90] Subsystem: Intel Corporation Device 2002
      Capabilities: [a0] Power Management version 2
      Kernel driver in use: pcieport
      Kernel modules: shpchp

00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5) (prog-if 00 [Normal decode])
      Flags: bus master, fast devsel, latency 0
      Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
      Memory behind bridge: fe400000-fe4fffff
      Capabilities: [40] Express Root Port (Slot+), MSI 00
      Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
      Capabilities: [90] Subsystem: Intel Corporation Device 2002
      Capabilities: [a0] Power Management version 2
      Kernel driver in use: pcieport
      Kernel modules: shpchp

00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
      Subsystem: Intel Corporation Device 2002
      Flags: bus master, medium devsel, latency 0, IRQ 23
      Memory at fe626000 (32-bit, non-prefetchable) [size=1K]
      Capabilities: [50] Power Management version 2
      Capabilities: [58] Debug port: BAR=1 offset=00a0
      Capabilities: [98] PCI Advanced Features
      Kernel driver in use: ehci_hcd

00:1f.0 ISA bridge: Intel Corporation H67 Express Chipset Family LPC Controller (rev 05)
      Subsystem: Intel Corporation Device 2002
      Flags: bus master, medium devsel, latency 0
      Capabilities: [e0] Vendor Specific Information: Len=0c <?>
      Kernel driver in use: lpc_ich
      Kernel modules: lpc_ich

00:1f.2 RAID bus controller: Intel Corporation 82801 SATA Controller [RAID mode] (rev 05)
      Subsystem: Intel Corporation Device 2002
      Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 42
      I/O ports at f0d0 [size=8]
      I/O ports at f0c0 [size=4]
      I/O ports at f0b0 [size=8]
      I/O ports at f0a0 [size=4]
      I/O ports at f060 [size=32]
      Memory at fe625000 (32-bit, non-prefetchable) [size=2K]
      Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
      Capabilities: [70] Power Management version 3
      Capabilities: [a8] SATA HBA v1.0
      Capabilities: [b0] PCI Advanced Features
      Kernel driver in use: ahci

00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
      Subsystem: Intel Corporation Device 2002
      Flags: medium devsel, IRQ 11
      Memory at fe624000 (64-bit, non-prefetchable) [size=256]
      I/O ports at f040 [size=32]
      Kernel modules: i2c-i801

01:00.0 PCI bridge: Integrated Technology Express, Inc. Device 8892 (rev 30) (prog-if 01 [Subtractive decode])
      Flags: bus master, fast devsel, latency 0
      Bus: primary=01, secondary=02, subordinate=02, sec-latency=32
      Memory behind bridge: fe500000-fe5fffff
      Capabilities: [90] Power Management version 2
      Capabilities: [a0] Subsystem: Intel Corporation Device 2002

02:00.0 Multimedia controller: Philips Semiconductors SAA7134/SAA7135HL Video Broadcast Decoder (rev 01)
      Subsystem: Philips Semiconductors SAA713x-based TV tuner card
      Flags: bus master, medium devsel, latency 32, IRQ 16
      Memory at fe500000 (32-bit, non-prefetchable) [size=1K]
      Capabilities: [40] Power Management version 1
      Kernel driver in use: saa7134
      Kernel modules: saa7134

03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03) (prog-if 30 [XHCI])
      Subsystem: Intel Corporation Device 2002
      Flags: bus master, fast devsel, latency 0, IRQ 19
      Memory at fe400000 (64-bit, non-prefetchable) [size=8K]
      Capabilities: [50] Power Management version 3
      Capabilities: [70] MSI: Enable- Count=1/8 Maskable- 64bit+
      Capabilities: [90] MSI-X: Enable+ Count=8 Masked-
      Capabilities: [a0] Express Endpoint, MSI 00
      Capabilities: [100] Advanced Error Reporting
      Capabilities: [140] Device Serial Number ff-ff-ff-ff-ff-ff-ff-ff
      Capabilities: [150] Latency Tolerance Reporting
      Kernel driver in use: xhci_hcd


Відсутній cadca

  • Письменник
  • *****
  • дописів: 955
  • Карма: +0/-0
  • free like beer
Re: Налаштування TV тюнеру
« Відповідей #5 : 2013-03-10 14:05:58 »
А тепер результат "lspci -vvvnn -s 02:00.0"
Ubuntu 20.04/18.04; CentOS 7.x

Відсутній Tomkat

  • Кореспондент
  • ***
  • дописів: 160
  • Карма: +0/-0
Re: Налаштування TV тюнеру
« Відповідей #6 : 2013-03-10 19:12:27 »
А тепер результат "lspci -vvvnn -s 02:00.0"
02:00.0 Multimedia controller [0480]: Philips Semiconductors SAA7134/SAA7135HL Video Broadcast Decoder [1131:7134] (rev 01)
      Subsystem: Philips Semiconductors SAA713x-based TV tuner card [1131:0000]
      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 (3750ns min, 9500ns max)
      Interrupt: pin A routed to IRQ 16
      Region 0: Memory at fe500000 (32-bit, non-prefetchable) [size=1K]
      Capabilities: [40] Power Management version 1
            Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
            Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
      Kernel driver in use: saa7134
      Kernel modules: saa7134

невже доведеться повернутись на богомерзку вінь7 ??? :'(
« Змінено: 2013-03-10 19:13:53 від Tomkat »

Відсутній cadca

  • Письменник
  • *****
  • дописів: 955
  • Карма: +0/-0
  • free like beer
Re: Налаштування TV тюнеру
« Відповідей #7 : 2013-03-10 19:35:46 »
Почергово виконайте
sudo modprobe -vr saa7134_dvb
sudo modprobe -vr saa7134_alsa
sudo modprobe -vr saa7134
sudo modprobe -v saa7134 card=17

Слідкуйте за виводом останньої команди та спробуйте подивитись відео. Має значення, який вхід використовуєте (Analog/S-video/Composite). Якщо не побачите сигналу на жодному з входів, то доведеться знімати металічний екран на самому тюнері та дивитись, яка конкретно мікросхема використовується. До параметрів вищезгаданої останньої команди треба буде додавати "tuner=xx" (xx визначається перебором, або за мікросхемою тюнера).
Ubuntu 20.04/18.04; CentOS 7.x

Відсутній Tomkat

  • Кореспондент
  • ***
  • дописів: 160
  • Карма: +0/-0
Re: Налаштування TV тюнеру
« Відповідей #8 : 2013-03-11 09:00:50 »
зробив все послідовно,ось результат :
sudo modprobe -vr saa7134_dvb
WARNING: All config files need .conf: /etc/modprobe.d/saa7134, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/aliases, it will be ignored in a future release.
tomkat@bigbox:~$ sudo modprobe -vr saa7134_alsa
WARNING: All config files need .conf: /etc/modprobe.d/saa7134, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/aliases, it will be ignored in a future release.
FATAL: Module saa7134_alsa is in use.
tomkat@bigbox:~$ sudo modprobe -vr saa7134
WARNING: All config files need .conf: /etc/modprobe.d/saa7134, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/aliases, it will be ignored in a future release.
FATAL: Module saa7134 is in use.
tomkat@bigbox:~$ sudo modprobe -v saa7134 card=17
WARNING: All config files need .conf: /etc/modprobe.d/saa7134, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/aliases, it will be ignored in a future release.
таке враження, що якогось конфіга не вистачає
tvtime пише "не могу открыть устройство захвата `=/dev/video1` "
« Змінено: 2013-03-11 10:47:57 від Tomkat »

Відсутній cadca

  • Письменник
  • *****
  • дописів: 955
  • Карма: +0/-0
  • free like beer
Re: Налаштування TV тюнеру
« Відповідей #9 : 2013-03-11 10:44:57 »
Можете зробити так:
sudo echo "option saa7134 card=17" > /etc/modules.d/saa7134Але перед цим дайте вивід команди "dmesg|grep saa7134".
Ubuntu 20.04/18.04; CentOS 7.x

Відсутній Tomkat

  • Кореспондент
  • ***
  • дописів: 160
  • Карма: +0/-0
Re: Налаштування TV тюнеру
« Відповідей #10 : 2013-03-11 10:49:20 »
sudo dmesg|grep saa7134
[    5.781744] saa7134[0]: found at 0000:02:00.0, rev: 1, irq: 16, latency: 32, mmio: 0xfe500000
[    5.781753] saa7134[0]: subsystem: 1131:0000, board: LifeView FlyVIDEO3000 [card=2,insmod option]
[    5.781769] saa7134[0]: board init: gpio is c000
[    5.781769] saa7134[0]: there are different flyvideo cards with different tuners
[    5.781769] saa7134[0]: out there, you might have to use the tuner=<nr> insmod
[    5.781769] saa7134[0]: option to override the default value.
[    5.861190] input: saa7134 IR (LifeView FlyVIDEO30 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:00.0/rc/rc0/input7
[    5.861241] rc0: saa7134 IR (LifeView FlyVIDEO30 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:00.0/rc/rc0
[    5.965053] saa7134[0]: Huh, no eeprom present (err=-5)?
[    5.988791] saa7134[0]: i2c scan: found device @ 0xc0  [tuner (analog)]
[    6.256401] saa7134[0]: registered device video1 [v4l2]
[    6.256475] saa7134[0]: registered device vbi0
[    6.256508] saa7134[0]: registered device radio1
[    6.258260] saa7134 ALSA driver for DMA sound loaded
[    6.258276] saa7134[0]/alsa: saa7134[0] at 0xfe500000 irq 16 registered as card -2

Відсутній cadca

  • Письменник
  • *****
  • дописів: 955
  • Карма: +0/-0
  • free like beer
Re: Налаштування TV тюнеру
« Відповідей #11 : 2013-03-11 11:31:15 »
Принципове питання - ваш тюнер FM вміє?
Якщо ні, то попередня команда модифікується:
sudo echo "option saa7134 i2c_scan=1" > /etc/modules.d/saa7134Після цього перезавантаження та вивід "dmesg|grep saa7134" сюди.
Ubuntu 20.04/18.04; CentOS 7.x

Відсутній Tomkat

  • Кореспондент
  • ***
  • дописів: 160
  • Карма: +0/-0
Re: Налаштування TV тюнеру
« Відповідей #12 : 2013-03-11 11:37:55 »
так, FM вміє
значить я виконую
sudo echo "option saa7134 card=17" > /etc/modules.d/saa7134
, а потім

sudo modprobe -vr saa7134_dvb
sudo modprobe -vr saa7134_alsa
sudo modprobe -vr saa7134
sudo modprobe -v saa7134 card=17
?
« Змінено: 2013-03-11 11:39:16 від Tomkat »

Відсутній prapor

  • Письменник
  • *****
  • дописів: 518
  • Карма: +0/-0
Re: Налаштування TV тюнеру
« Відповідей #13 : 2013-03-11 13:23:09 »
Для Aver 507UA вирішення було ось таке:
options saa7134 secam=d alsa=1 card=102 gbuffers=4 i2c_scan=1 radio_nr=1Якщо скажете модель приймача — можна буде пошукати готові значення цих параметрів.
- I'm afraid your son has the knack.
- The knack?
- The knack. It's a rare condition characterised by an extreme intuition about all things mechanical and electrical. And utter social ineptitude.
- Can he lead a normal life?
- No, he'll be an engineer.

Відсутній prapor

  • Письменник
  • *****
  • дописів: 518
  • Карма: +0/-0
Re: Налаштування TV тюнеру
« Відповідей #14 : 2013-03-11 13:30:09 »
- I'm afraid your son has the knack.
- The knack?
- The knack. It's a rare condition characterised by an extreme intuition about all things mechanical and electrical. And utter social ineptitude.
- Can he lead a normal life?
- No, he'll be an engineer.