Re: s2-liplianin, mantis: sysfs: cannot create duplicate filename '/devices/virtual/irrcv'

2010-04-04 Thread MartinG
2010/3/9 Igor M. Liplianin liplia...@me.by:
 MartinG, I'm already planning to replace mantis related part with linuxtv one,
 so please use http://linuxtv.org/hg/v4l-dvb.
 But not get wrong, this tree isn't panacea, your reports are welcome.

Thanks, I've pulled the linuxtv tree, and it compiled, installed and
seems to work just fine. No more mantis_ack_wait (0): Slave RACK Fail
! I hope ;).

Anyways - I really appreciate your work!

Best regards,
MartinG
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


s2-liplianin, mantis: sysfs: cannot create duplicate filename '/devices/virtual/irrcv'

2010-03-08 Thread MartinG
Hi, I'm using a Terratec Cinergy C HD PCI (Mantis VP-2040) using the
mantis driver from s2-liplianin:

changeset:   14355:4dc29dc9ec91
tag: tip
user:Igor M. Liplianin liplia...@me.by
date:Sat Feb 27 10:18:52 2010 +0200

My kernel is:
2.6.30.10-105.2.23.fc11.x86_64

If I remove and reload the module, dmesg reports some conflicting
filenames, see output below.
I guess this has something to do with the IR module. Any more info I
can provide to get this fixed? Or have I configured things wrong?

best,
MartinG

[ cut here ]
WARNING: at fs/sysfs/dir.c:487 sysfs_add_one+0xd9/0xf3() (Tainted: GW )
Hardware name: P5E-VM HDMI
sysfs: cannot create duplicate filename '/devices/virtual/irrcv'
Modules linked in: mantis(+) lnbp21 mb86a16 ir_common stb6100 tda10021
tda10023 stb0899 stv0299 dvb_core ir_core fuse sha256_generic cryptd
aes_x86_64 aes_generic cbc dm_crypt nfs fscache nfsd sco nfs_acl
auth_rpcgss bridge stp llc bnep exportfs l2cap bluetooth lockd sunrpc
autofs4 w83627ehf hwmon_vid coretemp ip6t_REJECT nf_conntrack_ipv6
ip6table_filter ip6_tables ipv6 cpufreq_ondemand acpi_cpufreq
freq_table jfs dm_multipath lirc_serial uinput snd_hda_codec_intelhdmi
snd_hda_codec_realtek snd_hda_intel snd_hda_codec firewire_ohci atl1
snd_seq snd_usb_audio snd_usb_lib snd_rawmidi lirc_imon iTCO_wdt
uvcvideo videodev v4l1_compat mii lirc_dev serio_raw pcspkr
iTCO_vendor_support snd_hwdep snd_seq_device v4l2_compat_ioctl32
firewire_core pata_jmicron i2c_i801 asus_atk0110 snd_pcm snd_timer snd
soundcore snd_page_alloc crc_itu_t hwmon ata_generic pata_acpi i915
drm i2c_algo_bit video output i2c_core [last unloaded: ir_core]
Pid: 5399, comm: work_for_cpu Tainted: GW
2.6.30.10-105.2.23.fc11.x86_64 #1
Call Trace:
 [81049509] warn_slowpath_common+0x84/0x9c
 [81049578] warn_slowpath_fmt+0x41/0x43
 [8113558f] sysfs_add_one+0xd9/0xf3
 [81135606] create_dir+0x5d/0x8d
 [81135673] sysfs_create_dir+0x3d/0x50
 [811c9432] kobject_add_internal+0x116/0x1f3
 [811c95e5] kobject_add_varg+0x41/0x50
 [811c96af] kobject_add+0x64/0x66
 [811c8f38] ? kobject_init+0x43/0x83
 [8126f141] get_device_parent+0x11e/0x14a
 [8127007c] device_add+0x100/0x599
 [811d0a2f] ? kvasprintf+0x5e/0x6e
 [81270533] device_register+0x1e/0x23
 [812705f7] device_create_vargs+0xbf/0xf0
 [81270659] device_create+0x31/0x33
 [a001083a] ir_register_class+0x62/0xc5 [ir_core]
 [a0010309] ir_input_register+0x1fb/0x249 [ir_core]
 [a0518ca9] mantis_rc_init+0x173/0x1c8 [mantis]
 [a05192d7] mantis_core_init+0x2f8/0x35d [mantis]
 [a051961a] mantis_pci_probe+0x2b9/0x3d4 [mantis]
 [811ddb31] local_pci_probe+0x17/0x1b
 [81059d30] do_work_for_cpu+0x18/0x2a
 [81059d18] ? do_work_for_cpu+0x0/0x2a
 [8105d330] kthread+0x5a/0x85
 [81011d4a] child_rip+0xa/0x20
 [8105d2d6] ? kthread+0x0/0x85
 [81011d40] ? child_rip+0x0/0x20
---[ end trace dc78e456fbecab73 ]---
kobject_add_internal failed for irrcv with -EEXIST, don't try to
register things with the same name in the same directory.
Pid: 5399, comm: work_for_cpu Tainted: GW
2.6.30.10-105.2.23.fc11.x86_64 #1
Call Trace:
 [811c94c3] kobject_add_internal+0x1a7/0x1f3
 [811c95e5] kobject_add_varg+0x41/0x50
 [811c96af] kobject_add+0x64/0x66
 [811c8f38] ? kobject_init+0x43/0x83
 [8126f141] get_device_parent+0x11e/0x14a
 [8127007c] device_add+0x100/0x599
 [811d0a2f] ? kvasprintf+0x5e/0x6e
 [81270533] device_register+0x1e/0x23
 [812705f7] device_create_vargs+0xbf/0xf0
 [81270659] device_create+0x31/0x33
 [a001083a] ir_register_class+0x62/0xc5 [ir_core]
 [a0010309] ir_input_register+0x1fb/0x249 [ir_core]
 [a0518ca9] mantis_rc_init+0x173/0x1c8 [mantis]
 [a05192d7] mantis_core_init+0x2f8/0x35d [mantis]
 [a051961a] mantis_pci_probe+0x2b9/0x3d4 [mantis]
 [811ddb31] local_pci_probe+0x17/0x1b
 [81059d30] do_work_for_cpu+0x18/0x2a
 [81059d18] ? do_work_for_cpu+0x0/0x2a
 [8105d330] kthread+0x5a/0x85
 [81011d4a] child_rip+0xa/0x20
 [8105d2d6] ? kthread+0x0/0x85
 [81011d40] ? child_rip+0x0/0x20
[ cut here ]
WARNING: at fs/sysfs/dir.c:487 sysfs_add_one+0xd9/0xf3() (Tainted: GW )
Hardware name: P5E-VM HDMI
sysfs: cannot create duplicate filename '/devices/irrcv0'
Modules linked in: mantis(+) lnbp21 mb86a16 ir_common stb6100 tda10021
tda10023 stb0899 stv0299 dvb_core ir_core fuse sha256_generic cryptd
aes_x86_64 aes_generic cbc dm_crypt nfs fscache nfsd sco nfs_acl
auth_rpcgss bridge stp llc bnep exportfs l2cap bluetooth lockd sunrpc
autofs4 w83627ehf hwmon_vid coretemp ip6t_REJECT nf_conntrack_ipv6
ip6table_filter ip6_tables ipv6 cpufreq_ondemand acpi_cpufreq
freq_table jfs dm_multipath

Re: Remote for Terratec Cinergy C PCI HD (DVB-C)

2010-01-25 Thread MartinG
On Thu, Jan 21, 2010 at 6:33 PM, Hans-Peter Wolf
hapew...@googlemail.com wrote:
 Hi,

 I got it finally running! I just took the last s2-liplianin source and it
 was detected automatically:

 I: Bus=0001 Vendor= Product= Version=0001
 N: Name=Mantis VP-2040 IR Receiver
 P: Phys=pci-:01:06.0/ir0
 S: Sysfs=/devices/virtual/input/input5
 U: Uniq=
 H: Handlers=kbd event5
 B: EV=13
 B: KEY=108fc330 2842041 0 200018000 21804801 9e96c0
 ffc

 Strange, that it didn't work with v4l-dvb sources.

 Thank you very much. I really appreciate your work!


Hi, I've got the exact same device as you, use the s2-liplianin
driver, and after reading your post I tried the remote as well.
But how do I configure it? Some of the keys are working (arrow keys,
numeric keys, Home, volume, mute), but not all.
Is the remote handled as an input device by X itself? So what file(s)
do I need to change/update?

If you have some working config files, or a nice link, I'd appreciate it :)

Best,
MartinG
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Remote for Terratec Cinergy C PCI HD (DVB-C)

2010-01-25 Thread MartinG
On Mon, Jan 25, 2010 at 9:22 PM, MartinG grons...@gmail.com wrote:
 Hi, I've got the exact same device as you, use the s2-liplianin
 driver, and after reading your post I tried the remote as well.
 But how do I configure it? Some of the keys are working (arrow keys,
 numeric keys, Home, volume, mute), but not all.
 Is the remote handled as an input device by X itself? So what file(s)
 do I need to change/update?

 If you have some working config files, or a nice link, I'd appreciate it :)

Replying to myself; I found that 'xev' give the keycodes for most of
the keys, but not eg. the OK key, wich is quite important. Is there
a way to add those? Something I can contribute? Where? :)

And by the way - I too really appreciate the work on the mantis driver!

Best,
MartinG
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


s2-liplianin, mantis: kobject_add_internal failed for irrcv with -EEXIST, don't try to register things with the same name in the same directory.

2010-01-15 Thread MartinG
Using kernel 2.6.30.10-105.fc11.x86_64,  sasc-ng-0.0.2-77.x86_64 and
the mantis driver from
http://mercurial.intuxication.org/hg/s2-liplianin, I get the following
when I boot my machine (TerraTec Cinergy C HD DVB-C, VP-2040 PCI
DVB-C:

  sysfs: cannot create duplicate filename '/devices/virtual/irrcv'

Relevant parts of dmesg below.

Otherwise the driver seems to work.

Version of the mantis driver:
$ hg log|head
changeset:   14125:cc01851735c3
tag: tip
parent:  14061:cc46bddbd1c8
parent:  14124:d490d84a64ac
user:Igor M. Liplianin liplia...@me.by
date:Wed Jan 13 17:25:36 2010 +0200
summary: merge http://linuxtv.org/hg/v4l-dvb

I'd be happy to test stuff in order to solve this, please let me know
(CC me directly)

Thanks,

MartinG

Relevant parts of dmesg:

eth0: no IPv6 routers present
mantis_core_exit (0): DMA engine stopping
mantis_dma_exit (0): DMA=0xcf06 cpu=0x8800cf06 size=65536
mantis_dma_exit (0): RISC=0xcf028000 cpu=0x8800cf028000 size=1000
mantis_hif_exit (0): Adapter(0) Exiting Mantis Host Interface
mantis_ca_exit (0): Unregistering EN50221 device
mantis_pci_remove (0): Removing --Mantis irq: 16, latency: 64
 memory: 0xfdfff000, mmio: 0xc200111fc000
Mantis :04:00.0: PCI INT A disabled
Mantis :04:00.0: PCI INT A - GSI 16 (level, low) - IRQ 16
irq: 16, latency: 64
 memory: 0xfdfff000, mmio: 0xc20023da2000
found a VP-2040 PCI DVB-C device on (04:00.0),
Mantis Rev 1 [153b:1178], irq: 16, latency: 64
memory: 0xfdfff000, mmio: 0xc20023da2000
MAC Address=[00:08:ca:1d:bd:a6]
mantis_alloc_buffers (0): DMA=0xcf06 cpu=0x8800cf06
size=65536
mantis_alloc_buffers (0): RISC=0xcf033000 cpu=0x8800cf033000
size=1000
DVB: registering new adapter (Mantis dvb adapter)
mantis_frontend_init (0): Probing for CU1216 (DVB-C)
TDA10023: i2c-addr = 0x0c, id = 0x7d
mantis_frontend_init (0): found Philips CU1216 DVB-C frontend
(TDA10023) @ 0x0c
mantis_frontend_init (0): Mantis DVB-C Philips CU1216 frontend attach
success
DVB: registering adapter 0 frontend 0 (Philips TDA10023 DVB-C)...
mantis_ca_init (0): Registering EN50221 device
mantis_ca_init (0): Registered EN50221 device
mantis_hif_init (0): Adapter(0) Initializing Mantis Host Interface
input: Mantis VP-2040 IR Receiver as /devices/virtual/input/input9
[ cut here ]
WARNING: at fs/sysfs/dir.c:487 sysfs_add_one+0xd9/0xf3() (Not tainted)
Hardware name: P5E-VM HDMI
sysfs: cannot create duplicate filename '/devices/virtual/irrcv'
Modules linked in: mantis(+) lnbp21 mb86a16 ir_common stb6100 tda10021
tda10023 stb0899 stv0299 dvb_core ir_core nfsd nfs_acl auth_rpcgss
exportfs sco bridge stp llc bnep l2cap bluetooth lockd sunrpc autofs4
w83627ehf hwmon_vid coretemp ip6t_REJECT nf_conntrack_ipv6
ip6table_filter ip6_tables ipv6 cpufreq_ondemand acpi_cpufreq
freq_table jfs dm_multipath lirc_serial uinput snd_hda_codec_intelhdmi
snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_seq
snd_seq_device firewire_ohci snd_pcm snd_timer firewire_core snd
soundcore lirc_imon lirc_dev crc_itu_t snd_page_alloc atl1
pata_jmicron i2c_i801 pcspkr mii iTCO_wdt asus_atk0110
iTCO_vendor_support serio_raw hwmon ata_generic pata_acpi i915 drm
i2c_algo_bit video output i2c_core [last unloaded: ir_core]
Pid: 2693, comm: work_for_cpu Not tainted 2.6.30.10-105.fc11.x86_64 #1
Call Trace:
 [81049505] warn_slowpath_common+0x84/0x9c
 [81049574] warn_slowpath_fmt+0x41/0x43
 [8113564b] sysfs_add_one+0xd9/0xf3
 [811356c2] create_dir+0x5d/0x8d
 [8113572f] sysfs_create_dir+0x3d/0x50
 [811c94f6] kobject_add_internal+0x116/0x1f3
 [811c96a9] kobject_add_varg+0x41/0x50
 [811c9773] kobject_add+0x64/0x66
 [811c8ffc] ? kobject_init+0x43/0x83
 [8126f4f5] get_device_parent+0x11e/0x14a
 [81270430] device_add+0x100/0x599
 [811d0aef] ? kvasprintf+0x5e/0x6e
 [812708e7] device_register+0x1e/0x23
 [812709ab] device_create_vargs+0xbf/0xf0
 [81270a0d] device_create+0x31/0x33
 [a040182e] ir_register_class+0x62/0xc5 [ir_core]
 [a04012f6] ir_input_register+0x1e8/0x23d [ir_core]
 [a045ac69] mantis_rc_init+0x173/0x1c8 [mantis]
 [a045b2d9] mantis_core_init+0x2f8/0x35d [mantis]
 [a045b61c] mantis_pci_probe+0x2b9/0x3d4 [mantis]
 [813d994c] ? schedule+0xe/0x22
 [811ddbf1] local_pci_probe+0x17/0x1b
 [81059d2c] do_work_for_cpu+0x18/0x2a
 [81059d14] ? do_work_for_cpu+0x0/0x2a
 [8105d32c] kthread+0x5a/0x85
 [81011d0a] child_rip+0xa/0x20
 [8105d2d2] ? kthread+0x0/0x85
 [81011d00] ? child_rip+0x0/0x20
---[ end trace 00809ea120621562 ]---
kobject_add_internal failed for irrcv with -EEXIST, don't try to
register things with the same name in the same directory.
Pid: 2693, comm: work_for_cpu Tainted: GW
2.6.30.10-105.fc11.x86_64 #1
Call Trace:
 [811c9587] kobject_add_internal

Re: Azurewave AD-CP400 (Twinhan VP-2040 DVB-C)

2009-09-06 Thread MartinG
On Wed, Aug 26, 2009 at 6:21 PM, Magnus Nilssonmag...@upcore.net wrote:
 Nevermind this for the time being...all is pointing to open-sasc-ng being
 the culprit here...

Just to add a datapoint - I have the same problem: I can't seem to
successfully scan for channels. I've taken open-sasc-ng out of the
equation by simply not loading the loopback device and scan directly
on the true frontend.
These are my bits:
Terratec Cinergy C HD PCI
kernel 2.6.29.6-217.2.16.fc11.x86_64
s2-liplianin from http://mercurial.intuxication.org/hg/s2-liplianin
Currently:
changeset:   12465:096aa4559b71
tag: tip
user:Igor M. Liplianin liplia...@me.by
date:Sat Sep 05 20:26:33 2009 +0300

dmesg when modprobe mantis
Sep  6 22:33:52 localhost kernel: Mantis :04:00.0: PCI INT A -
GSI 16 (level, low) - IRQ 16
Sep  6 22:33:52 localhost kernel: irq: 16, latency: 64
Sep  6 22:33:52 localhost kernel: memory: 0xfdfff000, mmio: 0xc20023906000
Sep  6 22:33:52 localhost kernel: found a VP-2040 PCI DVB-C device on (04:00.0),
Sep  6 22:33:52 localhost kernel:Mantis Rev 1 [153b:1178], irq:
16, latency: 64
Sep  6 22:33:52 localhost kernel:memory: 0xfdfff000, mmio:
0xc20023906000
Sep  6 22:33:52 localhost kernel:MAC Address=[00:08:ca:1d:bd:a6]
Sep  6 22:33:52 localhost kernel: mantis_alloc_buffers (0):
DMA=0xcc0d cpu=0x8800cc0d size=65536
Sep  6 22:33:52 localhost kernel: mantis_alloc_buffers (0):
RISC=0xa85ce000 cpu=0x8800a85ce000 size=1000
Sep  6 22:33:52 localhost kernel: DVB: registering new adapter (Mantis
dvb adapter)
Sep  6 22:33:52 localhost kernel: mantis_frontend_init (0): Probing
for CU1216 (DVB-C)
Sep  6 22:33:52 localhost kernel: TDA10023: i2c-addr = 0x0c, id = 0x7d
Sep  6 22:33:52 localhost kernel: mantis_frontend_init (0): found
Philips CU1216 DVB-C frontend (TDA10023) @ 0x0c
Sep  6 22:33:52 localhost kernel: mantis_frontend_init (0): Mantis
DVB-C Philips CU1216 frontend attach success
Sep  6 22:33:52 localhost kernel: DVB: registering adapter 0 frontend
0 (Philips TDA10023 DVB-C)...
Sep  6 22:33:52 localhost kernel: mantis_ca_init (0): Registering EN50221 device
Sep  6 22:33:52 localhost kernel: mantis_ca_init (0): Registered EN50221 device
Sep  6 22:33:52 localhost kernel: mantis_hif_init (0): Adapter(0)
Initializing Mantis Host Interface
Sep  6 22:33:52 localhost kernel: input: Mantis VP-2040 IR Receiver as
/devices/virtual/input/input11
Sep  6 22:33:53 localhost kernel: Mantis VP-2040 IR Receiver: unknown
key: key=0x00 raw=0x00 down=1
Sep  6 22:33:53 localhost kernel: Mantis VP-2040 IR Receiver: unknown
key: key=0x00 raw=0x00 down=0

lspci -v
04:00.0 Multimedia controller: Twinhan Technology Co. Ltd Mantis DTV
PCI Bridge Controller [Ver 1.0] (rev 01)
Subsystem: TERRATEC Electronic GmbH Device 1178
Flags: bus master, medium devsel, latency 64, IRQ 16
Memory at fdfff000 (32-bit, prefetchable) [size=4K]
Kernel driver in use: Mantis
Kernel modules: mantis

I have also tried the mantis module from v4l-dvb without success. The
card is then recognized as TDA10021 instead of TDA10023, just as you
describe.

Typically, I have to do modprobe -r mantis;modprobe mantis right
before I try to scan (with w_scan, scandvb og mythtv) in order to get
any channels at all. But the joy doesn't last for long, and I get
stuff like
kernel: mantis_ack_wait (0): Slave RACK Fail !
in /var/log/messages.

I guess the problems mentioned in the following post are related:
 Subject: Terratec Cinergy C HD tuning problems
 Date: 2009-08-19 21:10:56 GMT

Hope we can find a solution to this!

best,
MartinG
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Terratec Cinergy C HD tuning problems

2009-09-05 Thread MartinG
On Wed, Aug 19, 2009 at 11:10 PM, dsjob...@abo.fi wrote:
 I'm having some problems with my Terratec Cinergy C PCI DVB-C card.
 ...
 /var/log/syslog (when tuning stops working):
...
 kernel: [55168.360122] mantis_ack_wait (0): Slave RACK Fail !

Hi, I have the same problem:
Terratec Cinergy HD DVB-C PCI
Twinhan Technology Co. Ltd Mantis DTV PCI Bridge Controller [Ver 1.0] (rev 01)
VP-2040 PCI DVB-C device
TDA10023

MythTV chokes after a while because of the error described above.
Also, when I use w_scan, it is not able to scan (tune) for new
channels.

Similar problem is mentioned here:
http://thread.gmane.org/gmane.linux.drivers.dvb/47829

These are my bits:
s2-liplianin from http://mercurial.intuxication.org/hg/s2-liplianin (03 Jun)
kernel-2.6.29.6-217.2.16.fc11.x86_64

Any hints on how to get this working appreciated. Removing and
reinserting the mantis module doesn't seem to help for me.

-MartinG
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


mantis build error on vanilla kernel 2.6.28.6 [Re: Terratec Cinergy C HD (PCI, DVB-C): how to make it work?]

2009-02-20 Thread MartinG
Ok, I was told at #linuxtv on freenode to use a vanilla kernel, so I did:

$ wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.6.tar.bz2
$ tar xjf linux-2.6.28.6.tar.bz2
$ cd linux-2.6.28.6/
$ make menuconfig
$ sudo make modules_install install
(reboot)

$ wget -c http://jusst.de/hg/mantis/archive/tip.tar.bz2
$ tar xjf tip.tar.bz2
$ cd mantis-5292a47772ad/
$ make
...
/home/gronslet/Download/mantis-5292a47772ad/v4l/saa7134-alsa.c: In
function 'snd_card_saa7134_hw_params':
/home/gronslet/Download/mantis-5292a47772ad/v4l/saa7134-alsa.c:496:
error: implicit declaration of function 'snd_assert'
/home/gronslet/Download/mantis-5292a47772ad/v4l/saa7134-alsa.c:497:
error: expected expression before 'return'
/home/gronslet/Download/mantis-5292a47772ad/v4l/saa7134-alsa.c:498:
error: expected expression before 'return'
/home/gronslet/Download/mantis-5292a47772ad/v4l/saa7134-alsa.c:499:
error: expected expression before 'return'
/home/gronslet/Download/mantis-5292a47772ad/v4l/saa7134-alsa.c: In
function 'snd_card_saa7134_new_mixer':
/home/gronslet/Download/mantis-5292a47772ad/v4l/saa7134-alsa.c:950:
error: expected expression before 'return'
make[3]: *** [/home/gronslet/Download/mantis-5292a47772ad/v4l/saa7134-alsa.o]
Error 1
make[2]: *** [_module_/home/gronslet/Download/mantis-5292a47772ad/v4l] Error 2
make[2]: Leaving directory `/mythmedia/buffer/linux-2.6.28.6'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/gronslet/Download/mantis-5292a47772ad/v4l'
make: *** [all] Error 2


What did I miss here?

-MartinG
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: mantis build error on vanilla kernel 2.6.28.6 [Re: Terratec Cinergy C HD (PCI, DVB-C): how to make it work?]

2009-02-20 Thread MartinG
On Sat, Feb 21, 2009 at 12:22 AM, hermann pitton
hermann-pit...@arcor.de wrote:
 you can see changes on saa7134-alsa here.
 http://linuxtv.org/hg/v4l-dvb/log/359d95e1d541/linux/drivers/media/video/saa7134/saa7134-alsa.c

 Likely this kernel backport is missing.
 http://linuxtv.org/hg/v4l-dvb/rev/b4d664a2592a

Thank you for your reply!

I think I got it working, thanks to you. This is what I did (on the
vanilla 2.6.28.6 kernel):
$ cd mantis-5292a47772ad/
$ make distclean clean
$ cp v4l/saa7134-alsa.c  v4l/saa7134-alsa.c.orig
$ emacs -nw v4l/saa7134-alsa.c
Patch according to:
http://linuxtv.org/hg/v4l-dvb/diff/b4d664a2592a/linux/drivers/media/video/saa7134/saa7134-alsa.c
$ make -j2
(works)

# make install

remove all other (dvb) modules

# modprobe mantis

This gave me at least
/dev/dvb/adapter0/{demux0,dvr0,frontend0,net0}

But then the computer froze when I did:
# scandvb dvb-apps/util/scan/dvb-c/no-Oslo-Get
scanning dvb-apps/util/scan/dvb-c/no-Oslo-Get
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
initial transponder 24100 690 0 5
initial transponder 27200 690 0 5
initial transponder 28000 690 0 5
initial transponder 29000 690 0 5
initial transponder 29800 690 0 5
initial transponder 30600 690 0 5
initial transponder 31400 690 0 5
initial transponder 32200 690 0 5
initial transponder 33000 690 0 5
initial transponder 33800 690 0 5
initial transponder 34600 690 0 5
initial transponder 35400 690 0 5
initial transponder 36200 690 0 5
initial transponder 37000 690 0 5
initial transponder 37800 690 0 5
initial transponder 38600 690 0 5
initial transponder 39400 690 0 5
initial transponder 41000 690 0 5
initial transponder 44200 6952000 0 5
initial transponder 48200 690 0 5
initial transponder 49800 690 0 5
 tune to: 24100:INVERSION_AUTO:690:FEC_NONE:QAM_256

(total freeze here, not even ssh access to the box)

I think I had the scandvb tool from a binary install, maybe I'll try
to compile from sources.
And I'll try to read some more docs.

Thank you for helping me out on this!

-MartinG
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Terratec Cinergy C HD (PCI, DVB-C): how to make it work?

2009-02-19 Thread MartinG
Hi all, I'm new to this list and new to DVB in general.
I've just bought a Terratec Cinergy C HD DVB-C card,
since I've read it is working in Linux.

However, I've got into some trouble when trying to compile the modules.
I've read http://linuxtv.org/wiki/index.php/TerraTec_Cinergy_C_DVB-C where
it is suggested to use the s2-liplianin driver from
http://mercurial.intuxication.org/hg/s2-liplianin
(a bit strange, as that seems to be a DVB-S2 driver, while this card
is DVB-C...)
Anyway, it failed building. So I tried the mantis driver from
http://jusst.de/hg/mantis, but also failed:

$ make
make -C /home/gronslet/Download/mantis/v4l
make[1]: Entering directory `/home/gronslet/Download/mantis/v4l'
No version yet, using 2.6.29-rc2
make[1]: Leaving directory `/home/gronslet/Download/mantis/v4l'
make[1]: Entering directory `/home/gronslet/Download/mantis/v4l'
scripts/make_makefile.pl
Updating/Creating .config
Preparing to compile for kernel version 2.6.29
Created default (all yes) .config file
./scripts/make_myconfig.pl
make[1]: Leaving directory `/home/gronslet/Download/mantis/v4l'
make[1]: Entering directory `/home/gronslet/Download/mantis/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.29-rc2/source
./.myconfig ./config-compat.h
creating symbolic links...
ln -sf . oss
Kernel build directory is /lib/modules/2.6.29-rc2/build
make -C /lib/modules/2.6.29-rc2/build
SUBDIRS=/home/gronslet/Download/mantis/v4l  modules
make[2]: Entering directory `/mythmedia/buffer/drm-2.6'
  CC [M]  /home/gronslet/Download/mantis/v4l/tuner-xc2028.o
In file included from /home/gronslet/Download/mantis/v4l/tuner-xc2028.h:11,
 from /home/gronslet/Download/mantis/v4l/tuner-xc2028.c:22:
/home/gronslet/Download/mantis/v4l/dvb_frontend.h:52: error: field
'fe_params' has incomplete type
/home/gronslet/Download/mantis/v4l/dvb_frontend.h:297: warning:
'struct dvbfe_info' declared inside parameter list
/home/gronslet/Download/mantis/v4l/dvb_frontend.h:297: warning: its
scope is only this definition or declaration, which is probably not
what you want
/home/gronslet/Download/mantis/v4l/dvb_frontend.h:298: warning: 'enum
dvbfe_delsys' declared inside parameter list
/home/gronslet/Download/mantis/v4l/dvb_frontend.h:299: warning: 'enum
dvbfe_delsys' declared inside parameter list
/home/gronslet/Download/mantis/v4l/dvb_frontend.h:316: error: field
'fe_events' has incomplete type
/home/gronslet/Download/mantis/v4l/dvb_frontend.h:317: error: field
'fe_params' has incomplete type
/home/gronslet/Download/mantis/v4l/dvb_frontend.h:354: warning: 'enum
dvbfe_fec' declared inside parameter list
/home/gronslet/Download/mantis/v4l/dvb_frontend.h:354: warning: 'enum
dvbfe_modulation' declared inside parameter list
/home/gronslet/Download/mantis/v4l/dvb_frontend.h:359: warning: 'enum
dvbfe_delsys' declared inside parameter list
make[3]: *** [/home/gronslet/Download/mantis/v4l/tuner-xc2028.o] Error 1
make[2]: *** [_module_/home/gronslet/Download/mantis/v4l] Error 2
make[2]: Leaving directory `/mythmedia/buffer/drm-2.6'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/gronslet/Download/mantis/v4l'
make: *** [all] Error 2

I also tried:
$ hg clone http://linuxtv.org/hg/v4l-dvb
$ cd v4l-dvb
$ make
$ sudo make install

and that worked.
But it didn't install a mantis module, so I'm not sure what to modprobe...
A reboot didn't give any interesting info from dmesg either,
possibly except for this:

w83627ehf: Found W83627DHG chip at 0x290
ACPI: I/O resource w83627ehf [0x295-0x296] conflicts with ACPI region
HWRE [0x290-0x299]
ACPI: Device needs an ACPI driver

The full dmesg output can be found here: http://fpaste.org/paste/4085

This is using a 2.6.29 kernel from git (since my first attempts using
a Fedora kernel (and -headers, -devel) from the repos failed)

Actually, I've also tried make reload (in the v4l-dvb directory),
and gave a bunch of info/errors, see http://fpaste.org/paste/4086.
Among them:
ivtv: Start initialization, version 1.4.0
ivtv: End initialization

So I guess my questions are:
1) what modules do I need to get this card working?
2) what is the latest kernel version known to work?
3) Is this the right place to ask? (If not, where?  should I file a
bug somewhere?)

Some more info:
# lspci -vnn -s 04:00.0
04:00.0 Multimedia controller [0480]: Twinhan Technology Co. Ltd
Mantis DTV PCI Bridge Controller [Ver 1.0] [1822:4e35] (rev01)
Subsystem: TERRATEC Electronic GmbH Device [153b:1178]
Flags: bus master, medium devsel, latency 64, IRQ 11
Memory at fdfff000 (32-bit, prefetchable) [size=4K]

# uname -r
2.6.29-rc2
(from commit 1de9e8e70f5acc441550ca75433563d91b269bbe Author: Linus Torvalds)

Any suggestions appreciated!

-MartinG
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html