* [linux-dvb] SDMC DM1105N not being detected
@ 2009-04-03 4:56 mp3geek
2009-04-03 5:02 ` mp3geek
` (2 more replies)
0 siblings, 3 replies; 20+ messages in thread
From: mp3geek @ 2009-04-03 4:56 UTC (permalink / raw)
To: linux-dvb; +Cc: liplianin
Not even being detected in Linux 2.6.29.1, I have the modules "dm1105"
loaded, but since its not even being detected by linux..
lspci -vv shows this (I'm assuming this is the card..), dmesg shows
nothing dvb being loaded
00:0b.0 Ethernet controller: Device 195d:1105 (rev 10)
Subsystem: Device 195d:1105
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: 30 (4000ns min, 8000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 5
Region 0: I/O ports at 9400 [size=256]
The chip says the following, SDMC DM1105N, EasyTV-DVBS V1.0B
(2008-04-26), 0735 E280034
_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead linux-media@vger.kernel.org
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 20+ messages in thread* SDMC DM1105N not being detected 2009-04-03 4:56 [linux-dvb] SDMC DM1105N not being detected mp3geek @ 2009-04-03 5:02 ` mp3geek 2009-04-03 15:36 ` Igor M. Liplianin 2009-05-20 13:44 ` [linux-dvb] " Simon Kenyon [not found] ` <4A295F87.50307@koala.ie> 2 siblings, 1 reply; 20+ messages in thread From: mp3geek @ 2009-04-03 5:02 UTC (permalink / raw) To: linux-media Not even being detected in Linux 2.6.29.1, I have the modules "dm1105" loaded, but since its not even being detected by linux.. lspci -vv shows this (I'm assuming this is the card..), dmesg shows nothing dvb being loaded 00:0b.0 Ethernet controller: Device 195d:1105 (rev 10) Subsystem: Device 195d:1105 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: 30 (4000ns min, 8000ns max), Cache Line Size: 32 bytes Interrupt: pin A routed to IRQ 5 Region 0: I/O ports at 9400 [size=256] The chip says the following, SDMC DM1105N, EasyTV-DVBS V1.0B (2008-04-26), 0735 E280034 ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: SDMC DM1105N not being detected 2009-04-03 5:02 ` mp3geek @ 2009-04-03 15:36 ` Igor M. Liplianin 2009-04-04 4:17 ` mp3geek 0 siblings, 1 reply; 20+ messages in thread From: Igor M. Liplianin @ 2009-04-03 15:36 UTC (permalink / raw) To: mp3geek; +Cc: linux-media On 3 April 2009 08:02:20 mp3geek wrote: > Not even being detected in Linux 2.6.29.1, I have the modules "dm1105" > loaded, but since its not even being detected by linux.. > > lspci -vv shows this (I'm assuming this is the card..), dmesg shows > nothing dvb being loaded > > 00:0b.0 Ethernet controller: Device 195d:1105 (rev 10) > ═ ═Subsystem: Device 195d:1105 > ═ ═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: 30 (4000ns min, 8000ns max), Cache Line Size: 32 bytes > ═ ═Interrupt: pin A routed to IRQ 5 > ═ ═Region 0: I/O ports at 9400 [size=256] > > > The chip says the following, SDMC DM1105N, EasyTV-DVBS V1.0B > (2008-04-26), 0735 E280034 > -- > To unsubscribe from this list: send the line "unsubscribe linux-media" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html I wrote code to support card with subsystem/device 195d/1105, but no one reported success, so I decided to not include it in commit :( It was more then one year ago http://liplianin.at.tut.by/dvblipl.tar.bz2 http://liplianin.at.tut.by/ds110en.html -- Igor M. Liplianin Microsoft Windows Free Zone - Linux used for all Computing Tasks ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: SDMC DM1105N not being detected 2009-04-03 15:36 ` Igor M. Liplianin @ 2009-04-04 4:17 ` mp3geek 0 siblings, 0 replies; 20+ messages in thread From: mp3geek @ 2009-04-04 4:17 UTC (permalink / raw) To: Igor M. Liplianin; +Cc: linux-media [-- Attachment #1: Type: text/plain, Size: 918 bytes --] Shows up now, but doesnt load the frontend :/ DVB: registering new adapter (dm1105) dm1105 0000:00:08.0: MAC ff:ff:ff:ff:ff:ff dm1105 0000:00:08.0: could not attach frontend 00:08.0 Ethernet controller: Unknown device 195d:1105 (rev 10) Subsystem: Unknown device 195d:1105 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- Interrupt: pin A routed to IRQ 11 Region 0: I/O ports at 9400 [size=256] > I wrote code to support card with subsystem/device 195d/1105, but no one reported success, so I > decided to not include it in commit :( > > It was more then one year ago > > http://liplianin.at.tut.by/dvblipl.tar.bz2 > > http://liplianin.at.tut.by/ds110en.html > -- > Igor M. Liplianin > Microsoft Windows Free Zone - Linux used for all Computing Tasks > [-- Attachment #2: wip1.patch --] [-- Type: text/x-patch, Size: 2720 bytes --] diff -Naur s2-liplianin-org/linux/drivers/media/dvb/dm1105/dm1105.c s2-liplianin/linux/drivers/media/dvb/dm1105/dm1105.c --- s2-liplianin-org/linux/drivers/media/dvb/dm1105/dm1105.c 2009-04-04 15:25:28.000000000 +1300 +++ s2-liplianin/linux/drivers/media/dvb/dm1105/dm1105.c 2009-04-04 16:59:20.000000000 +1300 @@ -54,12 +54,21 @@ #ifndef PCI_DEVICE_ID_DM1105 #define PCI_DEVICE_ID_DM1105 0x036f #endif +#ifndef PCI_DEVICE_ID_DM1105S +#define PCI_DEVICE_ID_DM1105S 0x1105 +#endif +#ifndef PCI_VENDOR_ID_AXESS +#define PCI_VENDOR_ID_AXESS 0x195d +#endif #ifndef PCI_DEVICE_ID_DW2002 #define PCI_DEVICE_ID_DW2002 0x2002 #endif #ifndef PCI_DEVICE_ID_DW2004 #define PCI_DEVICE_ID_DW2004 0x2004 #endif +#ifndef PCI_DEVICE_ID_DM05 +#define PCI_DEVICE_ID_DM05 0x1105 +#endif /* ----------------------------------------------- */ /* sdmc dm1105 registers */ @@ -150,6 +159,11 @@ #define DM1105_LNB_13V 0x00010100 #define DM1105_LNB_18V 0x00000100 +/* GPIO's for LNB power control for Axess DM05 - EXPERIMENTAL!*/ +#define DM05_LNB_MASK 0xfffffffc +#define DM05_LNB_13V 0x3fffd +#define DM05_LNB_18V 0x3fffc + static int ir_debug; module_param(ir_debug, int, 0644); MODULE_PARM_DESC(ir_debug, "enable debugging information for IR decoding"); @@ -316,7 +330,8 @@ static int dm1105dvb_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage) { struct dm1105dvb *dm1105dvb = frontend_to_dm1105dvb(fe); - + switch (dm1105dvb->pdev->subsystem_device){ + case PCI_DEVICE_ID_DW2002: if (voltage == SEC_VOLTAGE_18) { outl(DM1105_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); outl(DM1105_LNB_18V, dm_io_mem(DM1105_GPIOVAL)); @@ -325,7 +340,19 @@ outl(DM1105_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); outl(DM1105_LNB_13V, dm_io_mem(DM1105_GPIOVAL)); } - + break; + + case PCI_DEVICE_ID_DM05: + if (voltage == SEC_VOLTAGE_18) { + outl(DM05_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); + outl(DM05_LNB_18V, dm_io_mem(DM1105_GPIOVAL)); + }else { + /*LNB ON-13V by default!*/ + outl(DM05_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); + outl(DM05_LNB_13V, dm_io_mem(DM1105_GPIOVAL)); + } + break; + } return 0; } @@ -632,6 +659,7 @@ dm1105dvb_set_voltage; } break; + case PCI_DEVICE_ID_DW2004: dm1105dvb->fe = dvb_attach( cx24116_attach, &serit_sp2633_config, @@ -870,6 +898,11 @@ .subvendor = PCI_ANY_ID, .subdevice = PCI_DEVICE_ID_DW2004, }, { + .vendor = PCI_VENDOR_ID_AXESS, + .device = PCI_DEVICE_ID_DM1105S, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_DEVICE_ID_DM05, + }, { /* empty */ }, }; ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-04-03 4:56 [linux-dvb] SDMC DM1105N not being detected mp3geek 2009-04-03 5:02 ` mp3geek @ 2009-05-20 13:44 ` Simon Kenyon 2009-05-23 13:04 ` Igor M. Liplianin [not found] ` <4A295F87.50307@koala.ie> 2 siblings, 1 reply; 20+ messages in thread From: Simon Kenyon @ 2009-05-20 13:44 UTC (permalink / raw) To: linux-media; +Cc: liplianin mp3geek wrote: > Not even being detected in Linux 2.6.29.1, I have the modules "dm1105" > loaded, but since its not even being detected by linux.. > > lspci -vv shows this (I'm assuming this is the card..), dmesg shows > nothing dvb being loaded > > 00:0b.0 Ethernet controller: Device 195d:1105 (rev 10) > Subsystem: Device 195d:1105 > 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: 30 (4000ns min, 8000ns max), Cache Line Size: 32 bytes > Interrupt: pin A routed to IRQ 5 > Region 0: I/O ports at 9400 [size=256] > > > The chip says the following, SDMC DM1105N, EasyTV-DVBS V1.0B > (2008-04-26), 0735 E280034 > because i saw that there was a driver written by igor, i took a chance and bought a DM04 DVB-S card on ebay. it only cost €20 (including shipping from HK to Ireland) so i reckoned "nothing ventured, nothing gained" on a windows box it runs rather nicely. granted that the software provided does not provide a BDA driver, so you are pretty much limited to the stuff that comes with the card. but a big "me too" on linux (which is what i bought it for) i similarly get an "ethernet controller" and nothing in the kernel log when i load the dm1105 module. what do i need to do to debug the situation and/or update the driver? regards -- simon ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-05-20 13:44 ` [linux-dvb] " Simon Kenyon @ 2009-05-23 13:04 ` Igor M. Liplianin 2009-05-25 19:50 ` Simon Kenyon 0 siblings, 1 reply; 20+ messages in thread From: Igor M. Liplianin @ 2009-05-23 13:04 UTC (permalink / raw) To: Simon Kenyon; +Cc: linux-media On 20 May 2009 16:44:22 Simon Kenyon wrote: > mp3geek wrote: > > Not even being detected in Linux 2.6.29.1, I have the modules "dm1105" > > loaded, but since its not even being detected by linux.. > > > > lspci -vv shows this (I'm assuming this is the card..), dmesg shows > > nothing dvb being loaded > > > > 00:0b.0 Ethernet controller: Device 195d:1105 (rev 10) > > Subsystem: Device 195d:1105 > > 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: 30 (4000ns min, 8000ns max), Cache Line Size: 32 bytes > > Interrupt: pin A routed to IRQ 5 > > Region 0: I/O ports at 9400 [size=256] > > > > > > The chip says the following, SDMC DM1105N, EasyTV-DVBS V1.0B > > (2008-04-26), 0735 E280034 > > because i saw that there was a driver written by igor, i took a chance > and bought a DM04 DVB-S card on ebay. it only cost ─20 (including > shipping from HK to Ireland) so i reckoned "nothing ventured, nothing > gained" > on a windows box it runs rather nicely. granted that the software > provided does not provide a BDA driver, so you are pretty much limited > to the stuff that comes with the card. > but a big "me too" on linux (which is what i bought it for) > i similarly get an "ethernet controller" and nothing in the kernel log > when i load the dm1105 module. > > what do i need to do to debug the situation and/or update the driver? > > regards > -- > simon It seems, one can find GPIO values for LNB power control. Do not forget about Vendor/Device ID's. I wrote code to support card with subsystem/device 195d/1105, but no one reported success, so I decided not to include it in commit :( It was more then one year ago http://liplianin.at.tut.by/dvblipl.tar.bz2 -- Igor M. Liplianin Microsoft Windows Free Zone - Linux used for all Computing Tasks ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-05-23 13:04 ` Igor M. Liplianin @ 2009-05-25 19:50 ` Simon Kenyon 2009-05-26 14:47 ` Igor M. Liplianin 0 siblings, 1 reply; 20+ messages in thread From: Simon Kenyon @ 2009-05-25 19:50 UTC (permalink / raw) To: Igor M. Liplianin, linux-media Igor M. Liplianin wrote: > On 20 May 2009 16:44:22 Simon Kenyon wrote: > >> mp3geek wrote: >> >>> Not even being detected in Linux 2.6.29.1, I have the modules "dm1105" >>> loaded, but since its not even being detected by linux.. >>> >>> lspci -vv shows this (I'm assuming this is the card..), dmesg shows >>> nothing dvb being loaded >>> >>> 00:0b.0 Ethernet controller: Device 195d:1105 (rev 10) >>> Subsystem: Device 195d:1105 >>> 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: 30 (4000ns min, 8000ns max), Cache Line Size: 32 bytes >>> Interrupt: pin A routed to IRQ 5 >>> Region 0: I/O ports at 9400 [size=256] >>> >>> >>> The chip says the following, SDMC DM1105N, EasyTV-DVBS V1.0B >>> (2008-04-26), 0735 E280034 >>> >> because i saw that there was a driver written by igor, i took a chance >> and bought a DM04 DVB-S card on ebay. it only cost ─20 (including >> shipping from HK to Ireland) so i reckoned "nothing ventured, nothing >> gained" >> on a windows box it runs rather nicely. granted that the software >> provided does not provide a BDA driver, so you are pretty much limited >> to the stuff that comes with the card. >> but a big "me too" on linux (which is what i bought it for) >> i similarly get an "ethernet controller" and nothing in the kernel log >> when i load the dm1105 module. >> >> what do i need to do to debug the situation and/or update the driver? >> >> regards >> -- >> simon >> > > It seems, one can find GPIO values for LNB power control. > Do not forget about Vendor/Device ID's. > > I wrote code to support card with subsystem/device 195d/1105, but no one reported success, so I > decided not to include it in commit :( > > It was more then one year ago > > http://liplianin.at.tut.by/dvblipl.tar.bz2 > > igor, i downloaded it and built it (after making a few small changes to make it compile with tip) it finds the hardware, but does not seem able to get a data stream kaffeine seems to show that there is signal - and it does seem to vary in a way that is consistent with a working card what do i need to do to help get this to work. i would like to as (under windows) it seems to work well and it is very, very cheap (13 euro on ebay) it is on a machine which i can dual boot into windows (if that is any use) regards -- simon ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-05-25 19:50 ` Simon Kenyon @ 2009-05-26 14:47 ` Igor M. Liplianin 2009-05-26 20:02 ` Simon Kenyon 0 siblings, 1 reply; 20+ messages in thread From: Igor M. Liplianin @ 2009-05-26 14:47 UTC (permalink / raw) To: Simon Kenyon; +Cc: linux-media On 25 May 2009 22:50:39 Simon Kenyon wrote: > Igor M. Liplianin wrote: > > On 20 May 2009 16:44:22 Simon Kenyon wrote: > >> mp3geek wrote: > >>> Not even being detected in Linux 2.6.29.1, I have the modules "dm1105" > >>> loaded, but since its not even being detected by linux.. > >>> > >>> lspci -vv shows this (I'm assuming this is the card..), dmesg shows > >>> nothing dvb being loaded > >>> > >>> 00:0b.0 Ethernet controller: Device 195d:1105 (rev 10) > >>> Subsystem: Device 195d:1105 > >>> 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: 30 (4000ns min, 8000ns max), Cache Line Size: 32 bytes > >>> Interrupt: pin A routed to IRQ 5 > >>> Region 0: I/O ports at 9400 [size=256] > >>> > >>> > >>> The chip says the following, SDMC DM1105N, EasyTV-DVBS V1.0B > >>> (2008-04-26), 0735 E280034 > >> > >> because i saw that there was a driver written by igor, i took a chance > >> and bought a DM04 DVB-S card on ebay. it only cost ─20 (including > >> shipping from HK to Ireland) so i reckoned "nothing ventured, nothing > >> gained" > >> on a windows box it runs rather nicely. granted that the software > >> provided does not provide a BDA driver, so you are pretty much limited > >> to the stuff that comes with the card. > >> but a big "me too" on linux (which is what i bought it for) > >> i similarly get an "ethernet controller" and nothing in the kernel log > >> when i load the dm1105 module. > >> > >> what do i need to do to debug the situation and/or update the driver? > >> > >> regards > >> -- > >> simon > > > > It seems, one can find GPIO values for LNB power control. > > Do not forget about Vendor/Device ID's. > > > > I wrote code to support card with subsystem/device 195d/1105, but no one > > reported success, so I decided not to include it in commit :( > > > > It was more then one year ago > > > > http://liplianin.at.tut.by/dvblipl.tar.bz2 > > igor, > > i downloaded it and built it (after making a few small changes to make > it compile with tip) > it finds the hardware, but does not seem able to get a data stream > kaffeine seems to show that there is signal - and it does seem to vary > in a way that is consistent with a working card > > what do i need to do to help get this to work. i would like to as (under > windows) it seems to work well and it is very, very cheap (13 euro on ebay) > > it is on a machine which i can dual boot into windows (if that is any use) > > regards > -- > simon The card is working with external LNB power supply, for example, through the loop out from another sat box. So, we need to know, which way to control LNB power on the board. Usually it is through GPIO pins. For example: Pins 112 and 111 for GPIO0, GPIO1. Also GPIO15 is at 65 pin. You can edit this lines in code: -*-*-*-*-*-*-*-*-*-*-*-*- /* GPIO's for LNB power control for Axess DM05 */ #define DM05_LNB_MASK 0xfffffffc // GPIO control #define DM05_LNB_13V 0x3fffd // GPIO value #define DM05_LNB_18V 0x3fffc // GPIO value -*-*-*-*-*-*-*-*-*-*-*-*- BTW: Bit value 0 for GPIOCTL means output, 1 - input. Bit value for GPIOVAL - read/write. GPIO pins count is 18. Bits over 18 affect nothing. -- Igor M. Liplianin Microsoft Windows Free Zone - Linux used for all Computing Tasks ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-05-26 14:47 ` Igor M. Liplianin @ 2009-05-26 20:02 ` Simon Kenyon [not found] ` <4A1FA9EC.4050405@koala.ie> 2009-05-30 17:00 ` Igor M. Liplianin 0 siblings, 2 replies; 20+ messages in thread From: Simon Kenyon @ 2009-05-26 20:02 UTC (permalink / raw) To: Igor M. Liplianin; +Cc: linux-media Igor M. Liplianin wrote: > The card is working with external LNB power supply, for example, through the loop out from another > sat box. So, we need to know, which way to control LNB power on the board. Usually it is through > GPIO pins. > For example: > Pins 112 and 111 for GPIO0, GPIO1. Also GPIO15 is at 65 pin. > You can edit this lines in code: > -*-*-*-*-*-*-*-*-*-*-*-*- > /* GPIO's for LNB power control for Axess DM05 */ > #define DM05_LNB_MASK 0xfffffffc // GPIO control > #define DM05_LNB_13V 0x3fffd // GPIO value > #define DM05_LNB_18V 0x3fffc // GPIO value > -*-*-*-*-*-*-*-*-*-*-*-*- > > BTW: > Bit value 0 for GPIOCTL means output, 1 - input. > Bit value for GPIOVAL - read/write. > GPIO pins count is 18. Bits over 18 affect nothing. > i will try to work out the correct values when i have done so (or given up trying) i will let you know thank you very much for your help -- simon ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <4A1FA9EC.4050405@koala.ie>]
* Re: [SOLVED] Re: [linux-dvb] SDMC DM1105N not being detected [not found] ` <4A1FA9EC.4050405@koala.ie> @ 2009-05-30 9:44 ` Igor M. Liplianin 2009-05-30 16:54 ` Simon Kenyon 0 siblings, 1 reply; 20+ messages in thread From: Igor M. Liplianin @ 2009-05-30 9:44 UTC (permalink / raw) To: Simon Kenyon; +Cc: linux-media On 29 мая 2009, "Igor M. Liplianin" <liplianin@me.by>, linux-media-owner@vger.kernel.org wrote: > Simon Kenyon wrote: > > Igor M. Liplianin wrote: > >> The card is working with external LNB power supply, for example, > >> through the loop out from another sat box. So, we need to know, which > >> way to control LNB power on the board. Usually it is through GPIO pins. > >> For example: > >> Pins 112 and 111 for GPIO0, GPIO1. Also GPIO15 is at 65 pin. > >> You can edit this lines in code: > >> -*-*-*-*-*-*-*-*-*-*-*-*- > >> /* GPIO's for LNB power control for Axess DM05 */ > >> #define DM05_LNB_MASK 0xfffffffc // GPIO > >> control > >> #define DM05_LNB_13V 0x3fffd // GPIO value > >> #define DM05_LNB_18V 0x3fffc // GPIO value > >> -*-*-*-*-*-*-*-*-*-*-*-*- > >> > >> BTW: > >> Bit value 0 for GPIOCTL means output, 1 - input. > >> Bit value for GPIOVAL - read/write. > >> GPIO pins count is 18. Bits over 18 affect nothing. > > > > i will try to work out the correct values > > when i have done so (or given up trying) i will let you know > > > > thank you very much for your help > > -- > > simon > > well i thought i had sent out the correct information yesterday - but it > seems that the email didn't leave my machine Hi Simon, You forget to add linux-media@vger.kernel.org to recepients list. > of well! the correct settings are: > > /* GPIO's for LNB power control for DM05 */ > #define DM05_LNB_MASK 0x00000000 > #define DM05_LNB_13V 0x00020000 > #define DM05_LNB_18V 0x00030000 > > with these values the card can control the LNB > it locks very quickly and gives good picture results (with kaffeine and > mythtv) > i am very pleased with this card so far > > i have not tried it behind a diseqc switch yet. i might have a go this > weekend > that would be the icing on the cake. > > would it be possible to push this into linuxtv.org? > > thanks for your help > -- > simon > > PS by the way, putting a value of 0x00020001 in DM05_LNB_18V crashes the > machine - so don't do that :-) So, without crashes it is not possible to write drivers :) > i found this out when trying to find the correct values Thank you for resolving this. I will prepair patch for linuxtv to test. Then after you test and confirm, I will commit. -- Igor M. Liplianin Microsoft Windows Free Zone - Linux used for all Computing Tasks ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [SOLVED] Re: [linux-dvb] SDMC DM1105N not being detected 2009-05-30 9:44 ` [SOLVED] " Igor M. Liplianin @ 2009-05-30 16:54 ` Simon Kenyon 2009-05-30 17:15 ` Igor M. Liplianin 0 siblings, 1 reply; 20+ messages in thread From: Simon Kenyon @ 2009-05-30 16:54 UTC (permalink / raw) To: Igor M. Liplianin; +Cc: linux-media Igor M. Liplianin wrote: > Thank you for resolving this. > I will prepair patch for linuxtv to test. > Then after you test and confirm, I will commit thank you by the way, this card is really rather good. in particular it gets a lock really quickly it is also a nice price. i have ordered two more and have asked the manufacturer for a quote for some which i plan to sell on ebay. pity they don't make a DVB-S2 device. regards -- simon ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [SOLVED] Re: [linux-dvb] SDMC DM1105N not being detected 2009-05-30 16:54 ` Simon Kenyon @ 2009-05-30 17:15 ` Igor M. Liplianin 0 siblings, 0 replies; 20+ messages in thread From: Igor M. Liplianin @ 2009-05-30 17:15 UTC (permalink / raw) To: Simon Kenyon; +Cc: linux-media On 30 May 2009 19:54:13 Simon Kenyon wrote: > Igor M. Liplianin wrote: > > Thank you for resolving this. > > I will prepair patch for linuxtv to test. > > Then after you test and confirm, I will commit > > thank you > by the way, this card is really rather good. in particular it gets a > lock really quickly > it is also a nice price. i have ordered two more and have asked the > manufacturer for a quote for some which i plan to sell on ebay. pity > they don't make a DVB-S2 device. Who knows ... I have information about cards with very same PCI ID, but different frontends. For example tda10086 based ones named DM714S. > > regards > -- > simon Best Regards -- Igor M. Liplianin Microsoft Windows Free Zone - Linux used for all Computing Tasks ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-05-26 20:02 ` Simon Kenyon [not found] ` <4A1FA9EC.4050405@koala.ie> @ 2009-05-30 17:00 ` Igor M. Liplianin 2009-05-31 22:01 ` Igor M. Liplianin 1 sibling, 1 reply; 20+ messages in thread From: Igor M. Liplianin @ 2009-05-30 17:00 UTC (permalink / raw) To: Simon Kenyon; +Cc: linux-media [-- Attachment #1: Type: text/plain, Size: 1412 bytes --] On 26 May 2009 23:02:57 Simon Kenyon wrote: > Igor M. Liplianin wrote: > > The card is working with external LNB power supply, for example, through > > the loop out from another sat box. So, we need to know, which way to > > control LNB power on the board. Usually it is through GPIO pins. > > For example: > > Pins 112 and 111 for GPIO0, GPIO1. Also GPIO15 is at 65 pin. > > You can edit this lines in code: > > -*-*-*-*-*-*-*-*-*-*-*-*- > > /* GPIO's for LNB power control for Axess DM05 */ > > #define DM05_LNB_MASK 0xfffffffc // GPIO > > control #define DM05_LNB_13V 0x3fffd // GPIO > > value #define DM05_LNB_18V 0x3fffc // GPIO > > value -*-*-*-*-*-*-*-*-*-*-*-*- > > > > BTW: > > Bit value 0 for GPIOCTL means output, 1 - input. > > Bit value for GPIOVAL - read/write. > > GPIO pins count is 18. Bits over 18 affect nothing. > > i will try to work out the correct values > when i have done so (or given up trying) i will let you know > > thank you very much for your help > -- > simon > -- > To unsubscribe from this list: send the line "unsubscribe linux-media" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Patch against latest v4l-dvb. Please, test it. -- Igor M. Liplianin Microsoft Windows Free Zone - Linux used for all Computing Tasks [-- Attachment #2: 11879.patch --] [-- Type: text/x-diff, Size: 4186 bytes --] # HG changeset patch # User Igor M. Liplianin <liplianin@me.by> # Date 1243702068 -10800 # Node ID 05a77f902a1bc1e740600bc4c6f0a0555a4adb57 # Parent 25bc0580359a71b2661ef0ac30e229b83ce84162 Add support for yet another SDMC DM1105 based DVB-S card. From: Igor M. Liplianin <liplianin@me.by> Add support for SDMC DM1105 based DVB-S cards with PCI ID 195d:1105 Signed-off-by: Igor M. Liplianin <liplianin@me.by> diff -r 25bc0580359a -r 05a77f902a1b linux/drivers/media/dvb/dm1105/dm1105.c --- a/linux/drivers/media/dvb/dm1105/dm1105.c Fri May 29 17:03:31 2009 -0300 +++ b/linux/drivers/media/dvb/dm1105/dm1105.c Sat May 30 19:47:48 2009 +0300 @@ -51,6 +51,9 @@ #ifndef PCI_VENDOR_ID_TRIGEM #define PCI_VENDOR_ID_TRIGEM 0x109f #endif +#ifndef PCI_VENDOR_ID_AXESS +#define PCI_VENDOR_ID_AXESS 0x195d +#endif #ifndef PCI_DEVICE_ID_DM1105 #define PCI_DEVICE_ID_DM1105 0x036f #endif @@ -60,6 +63,9 @@ #ifndef PCI_DEVICE_ID_DW2004 #define PCI_DEVICE_ID_DW2004 0x2004 #endif +#ifndef PCI_DEVICE_ID_DM05 +#define PCI_DEVICE_ID_DM05 0x1105 +#endif /* ----------------------------------------------- */ /* sdmc dm1105 registers */ @@ -150,6 +156,11 @@ #define DM1105_LNB_13V 0x00010100 #define DM1105_LNB_18V 0x00000100 +/* GPIO's for LNB power control for Axess DM05 */ +#define DM05_LNB_MASK 0x00000000 +#define DM05_LNB_13V 0x00020000 +#define DM05_LNB_18V 0x00030000 + static int ir_debug; module_param(ir_debug, int, 0644); MODULE_PARM_DESC(ir_debug, "enable debugging information for IR decoding"); @@ -317,6 +328,18 @@ { struct dm1105dvb *dm1105dvb = frontend_to_dm1105dvb(fe); + switch (dm1105dvb->pdev->subsystem_device) { + case PCI_DEVICE_ID_DM05: + if (voltage == SEC_VOLTAGE_18) { + outl(DM05_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); + outl(DM05_LNB_18V, dm_io_mem(DM1105_GPIOVAL)); + } else { + /*LNB ON-13V by default!*/ + outl(DM05_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); + outl(DM05_LNB_13V, dm_io_mem(DM1105_GPIOVAL)); + } + break; + default: if (voltage == SEC_VOLTAGE_18) { outl(DM1105_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); outl(DM1105_LNB_18V, dm_io_mem(DM1105_GPIOVAL)); @@ -325,6 +348,7 @@ outl(DM1105_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); outl(DM1105_LNB_13V, dm_io_mem(DM1105_GPIOVAL)); } + } return 0; } @@ -600,37 +624,36 @@ switch (dm1105dvb->pdev->subsystem_device) { case PCI_DEVICE_ID_DW2002: + default: dm1105dvb->fe = dvb_attach( stv0299_attach, &sharp_z0194a_config, &dm1105dvb->i2c_adap); - if (dm1105dvb->fe) { dm1105dvb->fe->ops.set_voltage = dm1105dvb_set_voltage; dvb_attach(dvb_pll_attach, dm1105dvb->fe, 0x60, &dm1105dvb->i2c_adap, DVB_PLL_OPERA1); + break; } - if (!dm1105dvb->fe) { - dm1105dvb->fe = dvb_attach( - stv0288_attach, &earda_config, - &dm1105dvb->i2c_adap); - if (dm1105dvb->fe) { - dm1105dvb->fe->ops.set_voltage = - dm1105dvb_set_voltage; - dvb_attach(stb6000_attach, dm1105dvb->fe, 0x61, - &dm1105dvb->i2c_adap); - } + dm1105dvb->fe = dvb_attach( + stv0288_attach, &earda_config, + &dm1105dvb->i2c_adap); + if (dm1105dvb->fe) { + dm1105dvb->fe->ops.set_voltage = + dm1105dvb_set_voltage; + dvb_attach(stb6000_attach, dm1105dvb->fe, 0x61, + &dm1105dvb->i2c_adap); + break; } - if (!dm1105dvb->fe) { - dm1105dvb->fe = dvb_attach( - si21xx_attach, &serit_config, - &dm1105dvb->i2c_adap); - if (dm1105dvb->fe) - dm1105dvb->fe->ops.set_voltage = - dm1105dvb_set_voltage; - } + dm1105dvb->fe = dvb_attach( + si21xx_attach, &serit_config, + &dm1105dvb->i2c_adap); + if (dm1105dvb->fe) + dm1105dvb->fe->ops.set_voltage = + dm1105dvb_set_voltage; + break; case PCI_DEVICE_ID_DW2004: dm1105dvb->fe = dvb_attach( @@ -638,6 +661,7 @@ &dm1105dvb->i2c_adap); if (dm1105dvb->fe) dm1105dvb->fe->ops.set_voltage = dm1105dvb_set_voltage; + break; } @@ -870,6 +894,11 @@ .subvendor = PCI_ANY_ID, .subdevice = PCI_DEVICE_ID_DW2004, }, { + .vendor = PCI_VENDOR_ID_AXESS, + .device = PCI_DEVICE_ID_DM05, + .subvendor = PCI_VENDOR_ID_AXESS, + .subdevice = PCI_DEVICE_ID_DM05, + }, { /* empty */ }, }; ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-05-30 17:00 ` Igor M. Liplianin @ 2009-05-31 22:01 ` Igor M. Liplianin 2009-06-01 10:04 ` Simon Kenyon 0 siblings, 1 reply; 20+ messages in thread From: Igor M. Liplianin @ 2009-05-31 22:01 UTC (permalink / raw) To: Simon Kenyon; +Cc: linux-media [-- Attachment #1: Type: text/plain, Size: 1542 bytes --] On 30 May 2009 20:00:32 Igor M. Liplianin wrote: > On 26 May 2009 23:02:57 Simon Kenyon wrote: > > Igor M. Liplianin wrote: > > > The card is working with external LNB power supply, for example, > > > through the loop out from another sat box. So, we need to know, which > > > way to control LNB power on the board. Usually it is through GPIO pins. > > > For example: > > > Pins 112 and 111 for GPIO0, GPIO1. Also GPIO15 is at 65 pin. > > > You can edit this lines in code: > > > -*-*-*-*-*-*-*-*-*-*-*-*- > > > /* GPIO's for LNB power control for Axess DM05 */ > > > #define DM05_LNB_MASK 0xfffffffc // GPIO > > > control #define DM05_LNB_13V 0x3fffd // GPIO > > > value #define DM05_LNB_18V 0x3fffc // GPIO > > > value -*-*-*-*-*-*-*-*-*-*-*-*- > > > > > > BTW: > > > Bit value 0 for GPIOCTL means output, 1 - input. > > > Bit value for GPIOVAL - read/write. > > > GPIO pins count is 18. Bits over 18 affect nothing. > > > > i will try to work out the correct values > > when i have done so (or given up trying) i will let you know > > > > thank you very much for your help > > -- > > simon > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-media" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > Patch against latest v4l-dvb. > Please, test it. Patch version 2 -- Igor M. Liplianin Microsoft Windows Free Zone - Linux used for all Computing Tasks [-- Attachment #2: 11879_1.patch --] [-- Type: text/x-diff, Size: 5239 bytes --] # HG changeset patch # User Igor M. Liplianin <liplianin@me.by> # Date 1243803828 -10800 # Node ID 48737beb9517dbc995ad3abe2e8852f21608a9ab # Parent 25bc0580359a71b2661ef0ac30e229b83ce84162 Add support for yet another SDMC DM1105 based DVB-S card. From: Igor M. Liplianin <liplianin@me.by> Add support for SDMC DM1105 based DVB-S cards with PCI ID 195d:1105 Signed-off-by: Igor M. Liplianin <liplianin@me.by> diff -r 25bc0580359a -r 48737beb9517 linux/drivers/media/dvb/dm1105/dm1105.c --- a/linux/drivers/media/dvb/dm1105/dm1105.c Fri May 29 17:03:31 2009 -0300 +++ b/linux/drivers/media/dvb/dm1105/dm1105.c Mon Jun 01 00:03:48 2009 +0300 @@ -51,6 +51,9 @@ #ifndef PCI_VENDOR_ID_TRIGEM #define PCI_VENDOR_ID_TRIGEM 0x109f #endif +#ifndef PCI_VENDOR_ID_AXESS +#define PCI_VENDOR_ID_AXESS 0x195d +#endif #ifndef PCI_DEVICE_ID_DM1105 #define PCI_DEVICE_ID_DM1105 0x036f #endif @@ -60,6 +63,9 @@ #ifndef PCI_DEVICE_ID_DW2004 #define PCI_DEVICE_ID_DW2004 0x2004 #endif +#ifndef PCI_DEVICE_ID_DM05 +#define PCI_DEVICE_ID_DM05 0x1105 +#endif /* ----------------------------------------------- */ /* sdmc dm1105 registers */ @@ -150,6 +156,11 @@ #define DM1105_LNB_13V 0x00010100 #define DM1105_LNB_18V 0x00000100 +/* GPIO's for LNB power control for Axess DM05 */ +#define DM05_LNB_MASK 0x00000000 +#define DM05_LNB_13V 0x00020000 +#define DM05_LNB_18V 0x00030000 + static int ir_debug; module_param(ir_debug, int, 0644); MODULE_PARM_DESC(ir_debug, "enable debugging information for IR decoding"); @@ -316,15 +327,25 @@ static int dm1105dvb_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage) { struct dm1105dvb *dm1105dvb = frontend_to_dm1105dvb(fe); + u32 lnb_mask, lnb_13v, lnb_18v; - if (voltage == SEC_VOLTAGE_18) { - outl(DM1105_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); - outl(DM1105_LNB_18V, dm_io_mem(DM1105_GPIOVAL)); - } else { - /*LNB ON-13V by default!*/ - outl(DM1105_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); - outl(DM1105_LNB_13V, dm_io_mem(DM1105_GPIOVAL)); - } + switch (dm1105dvb->pdev->subsystem_device) { + case PCI_DEVICE_ID_DM05: + lnb_mask = DM05_LNB_MASK; + lnb_13v = DM05_LNB_13V; + lnb_18v = DM05_LNB_18V; + break; + default: + lnb_mask = DM1105_LNB_MASK; + lnb_13v = DM1105_LNB_13V; + lnb_18v = DM1105_LNB_18V; + } + + outl(lnb_mask, dm_io_mem(DM1105_GPIOCTR)); + if (voltage == SEC_VOLTAGE_18) + outl(lnb_18v , dm_io_mem(DM1105_GPIOVAL)); + else + outl(lnb_13v, dm_io_mem(DM1105_GPIOVAL)); return 0; } @@ -599,46 +620,44 @@ int ret; switch (dm1105dvb->pdev->subsystem_device) { - case PCI_DEVICE_ID_DW2002: - dm1105dvb->fe = dvb_attach( - stv0299_attach, &sharp_z0194a_config, - &dm1105dvb->i2c_adap); - - if (dm1105dvb->fe) { - dm1105dvb->fe->ops.set_voltage = - dm1105dvb_set_voltage; - dvb_attach(dvb_pll_attach, dm1105dvb->fe, 0x60, - &dm1105dvb->i2c_adap, DVB_PLL_OPERA1); - } - - if (!dm1105dvb->fe) { - dm1105dvb->fe = dvb_attach( - stv0288_attach, &earda_config, - &dm1105dvb->i2c_adap); - if (dm1105dvb->fe) { - dm1105dvb->fe->ops.set_voltage = - dm1105dvb_set_voltage; - dvb_attach(stb6000_attach, dm1105dvb->fe, 0x61, - &dm1105dvb->i2c_adap); - } - } - - if (!dm1105dvb->fe) { - dm1105dvb->fe = dvb_attach( - si21xx_attach, &serit_config, - &dm1105dvb->i2c_adap); - if (dm1105dvb->fe) - dm1105dvb->fe->ops.set_voltage = - dm1105dvb_set_voltage; - } - break; case PCI_DEVICE_ID_DW2004: dm1105dvb->fe = dvb_attach( cx24116_attach, &serit_sp2633_config, &dm1105dvb->i2c_adap); if (dm1105dvb->fe) dm1105dvb->fe->ops.set_voltage = dm1105dvb_set_voltage; + break; + default: + dm1105dvb->fe = dvb_attach( + stv0299_attach, &sharp_z0194a_config, + &dm1105dvb->i2c_adap); + if (dm1105dvb->fe) { + dm1105dvb->fe->ops.set_voltage = + dm1105dvb_set_voltage; + dvb_attach(dvb_pll_attach, dm1105dvb->fe, 0x60, + &dm1105dvb->i2c_adap, DVB_PLL_OPERA1); + break; + } + + dm1105dvb->fe = dvb_attach( + stv0288_attach, &earda_config, + &dm1105dvb->i2c_adap); + if (dm1105dvb->fe) { + dm1105dvb->fe->ops.set_voltage = + dm1105dvb_set_voltage; + dvb_attach(stb6000_attach, dm1105dvb->fe, 0x61, + &dm1105dvb->i2c_adap); + break; + } + + dm1105dvb->fe = dvb_attach( + si21xx_attach, &serit_config, + &dm1105dvb->i2c_adap); + if (dm1105dvb->fe) + dm1105dvb->fe->ops.set_voltage = + dm1105dvb_set_voltage; + } if (!dm1105dvb->fe) { @@ -662,10 +681,17 @@ static u8 command[1] = { 0x28 }; struct i2c_msg msg[] = { - { .addr = IIC_24C01_addr >> 1, .flags = 0, - .buf = command, .len = 1 }, - { .addr = IIC_24C01_addr >> 1, .flags = I2C_M_RD, - .buf = mac, .len = 6 }, + { + .addr = IIC_24C01_addr >> 1, + .flags = 0, + .buf = command, + .len = 1 + }, { + .addr = IIC_24C01_addr >> 1, + .flags = I2C_M_RD, + .buf = mac, + .len = 6 + }, }; dm1105_i2c_xfer(&dm1105dvb->i2c_adap, msg , 2); @@ -870,6 +896,11 @@ .subvendor = PCI_ANY_ID, .subdevice = PCI_DEVICE_ID_DW2004, }, { + .vendor = PCI_VENDOR_ID_AXESS, + .device = PCI_DEVICE_ID_DM05, + .subvendor = PCI_VENDOR_ID_AXESS, + .subdevice = PCI_DEVICE_ID_DM05, + }, { /* empty */ }, }; ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-05-31 22:01 ` Igor M. Liplianin @ 2009-06-01 10:04 ` Simon Kenyon 0 siblings, 0 replies; 20+ messages in thread From: Simon Kenyon @ 2009-06-01 10:04 UTC (permalink / raw) To: Igor M. Liplianin; +Cc: linux-media Igor M. Liplianin wrote: > On 30 May 2009 20:00:32 Igor M. Liplianin wrote: > >> On 26 May 2009 23:02:57 Simon Kenyon wrote: >> >>> Igor M. Liplianin wrote: >>> >>>> The card is working with external LNB power supply, for example, >>>> through the loop out from another sat box. So, we need to know, which >>>> way to control LNB power on the board. Usually it is through GPIO pins. >>>> For example: >>>> Pins 112 and 111 for GPIO0, GPIO1. Also GPIO15 is at 65 pin. >>>> You can edit this lines in code: >>>> -*-*-*-*-*-*-*-*-*-*-*-*- >>>> /* GPIO's for LNB power control for Axess DM05 */ >>>> #define DM05_LNB_MASK 0xfffffffc // GPIO >>>> control #define DM05_LNB_13V 0x3fffd // GPIO >>>> value #define DM05_LNB_18V 0x3fffc // GPIO >>>> value -*-*-*-*-*-*-*-*-*-*-*-*- >>>> >>>> BTW: >>>> Bit value 0 for GPIOCTL means output, 1 - input. >>>> Bit value for GPIOVAL - read/write. >>>> GPIO pins count is 18. Bits over 18 affect nothing. >>>> >>> i will try to work out the correct values >>> when i have done so (or given up trying) i will let you know >>> >>> thank you very much for your help >>> -- >>> simon >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-media" in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>> >> Patch against latest v4l-dvb. >> Please, test it. >> > Patch version 2 > > the picture seems to be breaking up badly will revert to my version and see if that fixes it -- simon ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <4A295F87.50307@koala.ie>]
[parent not found: <4A2966EA.8080406@koala.ie>]
* Re: [linux-dvb] SDMC DM1105N not being detected [not found] ` <4A2966EA.8080406@koala.ie> @ 2009-06-06 8:57 ` Igor M. Liplianin 2009-06-06 20:37 ` Simon Kenyon 0 siblings, 1 reply; 20+ messages in thread From: Igor M. Liplianin @ 2009-06-06 8:57 UTC (permalink / raw) To: Simon Kenyon; +Cc: linux-media On 5 June 2009 21:41:46 Simon Kenyon wrote: > Simon Kenyon wrote: > > Simon Kenyon wrote: > >> the picture seems to be breaking up badly > >> will revert to my version and see if that fixes it > > > > [sorry for the delay. i was away on business] > > > > i've checked and your original code, modified to compile and including > > my changes to control the LNB works very well; the patch you posted does > > not. i have swapped between the two and rebooted several times to make > > sure. > > > > i will do a diff and see what the differences are > > > > regards > > -- > > simon > > the main changes seem to be a reworking of the interrupt handling and > some i2c changes > -- > simon How fast is your system? -- Igor M. Liplianin Microsoft Windows Free Zone - Linux used for all Computing Tasks ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-06-06 8:57 ` Igor M. Liplianin @ 2009-06-06 20:37 ` Simon Kenyon 2009-06-12 9:05 ` Igor M. Liplianin 0 siblings, 1 reply; 20+ messages in thread From: Simon Kenyon @ 2009-06-06 20:37 UTC (permalink / raw) To: Igor M. Liplianin; +Cc: linux-media Igor M. Liplianin wrote: > On 5 June 2009 21:41:46 Simon Kenyon wrote: >> Simon Kenyon wrote: >>> Simon Kenyon wrote: >>>> the picture seems to be breaking up badly >>>> will revert to my version and see if that fixes it >>> [sorry for the delay. i was away on business] >>> >>> i've checked and your original code, modified to compile and including >>> my changes to control the LNB works very well; the patch you posted does >>> not. i have swapped between the two and rebooted several times to make >>> sure. >>> >>> i will do a diff and see what the differences are >>> >>> regards >>> -- >>> simon >> the main changes seem to be a reworking of the interrupt handling and >> some i2c changes >> -- >> simon > How fast is your system? > reasonably fast it is a dual core AMD64 X2 running at 3.1GHz /proc/cpuinfo says: processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 107 model name : AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ stepping : 2 cpu MHz : 3100.268 cache size : 512 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch bogomips : 6203.89 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp tm stc 100mhzsteps processor : 1 vendor_id : AuthenticAMD cpu family : 15 model : 107 model name : AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ stepping : 2 cpu MHz : 3100.268 cache size : 512 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow rep_good pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch bogomips : 6203.89 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp tm stc 100mhzsteps ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-06-06 20:37 ` Simon Kenyon @ 2009-06-12 9:05 ` Igor M. Liplianin 2009-06-14 22:49 ` Simon Kenyon 0 siblings, 1 reply; 20+ messages in thread From: Igor M. Liplianin @ 2009-06-12 9:05 UTC (permalink / raw) To: Simon Kenyon; +Cc: linux-media [-- Attachment #1: Type: text/plain, Size: 1260 bytes --] On 6 June 2009 23:37:47 Simon Kenyon wrote: > Igor M. Liplianin wrote: > > On 5 June 2009 21:41:46 Simon Kenyon wrote: > >> Simon Kenyon wrote: > >>> Simon Kenyon wrote: > >>>> the picture seems to be breaking up badly > >>>> will revert to my version and see if that fixes it > >>> > >>> [sorry for the delay. i was away on business] > >>> > >>> i've checked and your original code, modified to compile and including > >>> my changes to control the LNB works very well; the patch you posted > >>> does not. i have swapped between the two and rebooted several times to > >>> make sure. > >>> > >>> i will do a diff and see what the differences are > >>> > >>> regards > >>> -- > >>> simon > >> > >> the main changes seem to be a reworking of the interrupt handling and > >> some i2c changes > >> -- > >> simon > > > > How fast is your system? > > reasonably fast > it is a dual core AMD64 X2 running at 3.1GHz > > Main change is to move demuxing from interrupt to work handler. So I prepaired another patch, with separate work queue. May be you find some time to test. I wonder CPU usage and interrupts count(cat /proc/interrupts) while viewing DVB. I guess your card generates a lot of unnecessary(unknown ?) irq's. Another idea is to increase dma buffer. [-- Attachment #2: 11966.patch --] [-- Type: text/x-diff, Size: 6578 bytes --] # HG changeset patch # User Igor M. Liplianin <liplianin@me.by> # Date 1244794252 -10800 # Node ID cd2cbde46892c2ad8258dd3162c5585e542afd50 # Parent bff77ec331161c660be7a60bf6139df000758480 Add support for yet another SDMC DM1105 based DVB-S card. From: Igor M. Liplianin <liplianin@me.by> Add support for SDMC DM1105 based DVB-S cards with PCI ID 195d:1105 Signed-off-by: Igor M. Liplianin <liplianin@me.by> diff -r bff77ec33116 -r cd2cbde46892 linux/drivers/media/dvb/dm1105/dm1105.c --- a/linux/drivers/media/dvb/dm1105/dm1105.c Thu Jun 11 18:44:23 2009 -0300 +++ b/linux/drivers/media/dvb/dm1105/dm1105.c Fri Jun 12 11:10:52 2009 +0300 @@ -51,6 +51,9 @@ #ifndef PCI_VENDOR_ID_TRIGEM #define PCI_VENDOR_ID_TRIGEM 0x109f #endif +#ifndef PCI_VENDOR_ID_AXESS +#define PCI_VENDOR_ID_AXESS 0x195d +#endif #ifndef PCI_DEVICE_ID_DM1105 #define PCI_DEVICE_ID_DM1105 0x036f #endif @@ -60,6 +63,9 @@ #ifndef PCI_DEVICE_ID_DW2004 #define PCI_DEVICE_ID_DW2004 0x2004 #endif +#ifndef PCI_DEVICE_ID_DM05 +#define PCI_DEVICE_ID_DM05 0x1105 +#endif /* ----------------------------------------------- */ /* sdmc dm1105 registers */ @@ -150,6 +156,11 @@ #define DM1105_LNB_13V 0x00010100 #define DM1105_LNB_18V 0x00000100 +/* GPIO's for LNB power control for Axess DM05 */ +#define DM05_LNB_MASK 0x00000000 +#define DM05_LNB_13V 0x00020000 +#define DM05_LNB_18V 0x00030000 + static int ir_debug; module_param(ir_debug, int, 0644); MODULE_PARM_DESC(ir_debug, "enable debugging information for IR decoding"); @@ -188,6 +199,8 @@ /* irq */ struct work_struct work; + struct workqueue_struct *wq; + char wqn[16]; /* dma */ dma_addr_t dma_addr; @@ -316,15 +329,25 @@ static int dm1105dvb_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage) { struct dm1105dvb *dm1105dvb = frontend_to_dm1105dvb(fe); + u32 lnb_mask, lnb_13v, lnb_18v; - if (voltage == SEC_VOLTAGE_18) { - outl(DM1105_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); - outl(DM1105_LNB_18V, dm_io_mem(DM1105_GPIOVAL)); - } else { - /*LNB ON-13V by default!*/ - outl(DM1105_LNB_MASK, dm_io_mem(DM1105_GPIOCTR)); - outl(DM1105_LNB_13V, dm_io_mem(DM1105_GPIOVAL)); - } + switch (dm1105dvb->pdev->subsystem_device) { + case PCI_DEVICE_ID_DM05: + lnb_mask = DM05_LNB_MASK; + lnb_13v = DM05_LNB_13V; + lnb_18v = DM05_LNB_18V; + break; + default: + lnb_mask = DM1105_LNB_MASK; + lnb_13v = DM1105_LNB_13V; + lnb_18v = DM1105_LNB_18V; + } + + outl(lnb_mask, dm_io_mem(DM1105_GPIOCTR)); + if (voltage == SEC_VOLTAGE_18) + outl(lnb_18v , dm_io_mem(DM1105_GPIOVAL)); + else + outl(lnb_13v, dm_io_mem(DM1105_GPIOVAL)); return 0; } @@ -463,7 +486,7 @@ case (INTSTS_TSIRQ | INTSTS_IR): dm1105dvb->nextwrp = inl(dm_io_mem(DM1105_WRP)) - inl(dm_io_mem(DM1105_STADR)); - schedule_work(&dm1105dvb->work); + queue_work(dm1105dvb->wq, &dm1105dvb->work); break; case INTSTS_IR: dm1105dvb->ir.ir_command = inl(dm_io_mem(DM1105_IRCODE)); @@ -599,46 +622,44 @@ int ret; switch (dm1105dvb->pdev->subsystem_device) { - case PCI_DEVICE_ID_DW2002: - dm1105dvb->fe = dvb_attach( - stv0299_attach, &sharp_z0194a_config, - &dm1105dvb->i2c_adap); - - if (dm1105dvb->fe) { - dm1105dvb->fe->ops.set_voltage = - dm1105dvb_set_voltage; - dvb_attach(dvb_pll_attach, dm1105dvb->fe, 0x60, - &dm1105dvb->i2c_adap, DVB_PLL_OPERA1); - } - - if (!dm1105dvb->fe) { - dm1105dvb->fe = dvb_attach( - stv0288_attach, &earda_config, - &dm1105dvb->i2c_adap); - if (dm1105dvb->fe) { - dm1105dvb->fe->ops.set_voltage = - dm1105dvb_set_voltage; - dvb_attach(stb6000_attach, dm1105dvb->fe, 0x61, - &dm1105dvb->i2c_adap); - } - } - - if (!dm1105dvb->fe) { - dm1105dvb->fe = dvb_attach( - si21xx_attach, &serit_config, - &dm1105dvb->i2c_adap); - if (dm1105dvb->fe) - dm1105dvb->fe->ops.set_voltage = - dm1105dvb_set_voltage; - } - break; case PCI_DEVICE_ID_DW2004: dm1105dvb->fe = dvb_attach( cx24116_attach, &serit_sp2633_config, &dm1105dvb->i2c_adap); if (dm1105dvb->fe) dm1105dvb->fe->ops.set_voltage = dm1105dvb_set_voltage; + break; + default: + dm1105dvb->fe = dvb_attach( + stv0299_attach, &sharp_z0194a_config, + &dm1105dvb->i2c_adap); + if (dm1105dvb->fe) { + dm1105dvb->fe->ops.set_voltage = + dm1105dvb_set_voltage; + dvb_attach(dvb_pll_attach, dm1105dvb->fe, 0x60, + &dm1105dvb->i2c_adap, DVB_PLL_OPERA1); + break; + } + + dm1105dvb->fe = dvb_attach( + stv0288_attach, &earda_config, + &dm1105dvb->i2c_adap); + if (dm1105dvb->fe) { + dm1105dvb->fe->ops.set_voltage = + dm1105dvb_set_voltage; + dvb_attach(stb6000_attach, dm1105dvb->fe, 0x61, + &dm1105dvb->i2c_adap); + break; + } + + dm1105dvb->fe = dvb_attach( + si21xx_attach, &serit_config, + &dm1105dvb->i2c_adap); + if (dm1105dvb->fe) + dm1105dvb->fe->ops.set_voltage = + dm1105dvb_set_voltage; + } if (!dm1105dvb->fe) { @@ -662,10 +683,17 @@ static u8 command[1] = { 0x28 }; struct i2c_msg msg[] = { - { .addr = IIC_24C01_addr >> 1, .flags = 0, - .buf = command, .len = 1 }, - { .addr = IIC_24C01_addr >> 1, .flags = I2C_M_RD, - .buf = mac, .len = 6 }, + { + .addr = IIC_24C01_addr >> 1, + .flags = 0, + .buf = command, + .len = 1 + }, { + .addr = IIC_24C01_addr >> 1, + .flags = I2C_M_RD, + .buf = mac, + .len = 6 + }, }; dm1105_i2c_xfer(&dm1105dvb->i2c_adap, msg , 2); @@ -788,14 +816,22 @@ #else INIT_WORK(&dm1105dvb->work, dm1105_dmx_buffer); #endif + sprintf(dm1105dvb->wqn, "%s/%d", dvb_adapter->name, dvb_adapter->num); + dm1105dvb->wq = create_singlethread_workqueue(dm1105dvb->wqn); + if (!dm1105dvb->wq) + goto err_dvb_net; ret = request_irq(pdev->irq, dm1105dvb_irq, IRQF_SHARED, DRIVER_NAME, dm1105dvb); if (ret < 0) - goto err_free_irq; + goto err_workqueue; return 0; +err_workqueue: + destroy_workqueue(dm1105dvb->wq); +err_dvb_net: + dvb_net_release(&dm1105dvb->dvbnet); err_disconnect_frontend: dmx->disconnect_frontend(dmx); err_remove_mem_frontend: @@ -812,8 +848,6 @@ i2c_del_adapter(&dm1105dvb->i2c_adap); err_dm1105dvb_hw_exit: dm1105dvb_hw_exit(dm1105dvb); -err_free_irq: - free_irq(pdev->irq, dm1105dvb); err_pci_iounmap: pci_iounmap(pdev, dm1105dvb->io_mem); err_pci_release_regions: @@ -870,6 +904,11 @@ .subvendor = PCI_ANY_ID, .subdevice = PCI_DEVICE_ID_DW2004, }, { + .vendor = PCI_VENDOR_ID_AXESS, + .device = PCI_DEVICE_ID_DM05, + .subvendor = PCI_VENDOR_ID_AXESS, + .subdevice = PCI_DEVICE_ID_DM05, + }, { /* empty */ }, }; ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-06-12 9:05 ` Igor M. Liplianin @ 2009-06-14 22:49 ` Simon Kenyon 2009-06-15 0:24 ` Igor M. Liplianin 0 siblings, 1 reply; 20+ messages in thread From: Simon Kenyon @ 2009-06-14 22:49 UTC (permalink / raw) To: Igor M. Liplianin; +Cc: linux-media Igor M. Liplianin wrote: > On 6 June 2009 23:37:47 Simon Kenyon wrote: >> Igor M. Liplianin wrote: >>> On 5 June 2009 21:41:46 Simon Kenyon wrote: >>>> Simon Kenyon wrote: >>>>> Simon Kenyon wrote: >>>>>> the picture seems to be breaking up badly >>>>>> will revert to my version and see if that fixes it >>>>> [sorry for the delay. i was away on business] >>>>> >>>>> i've checked and your original code, modified to compile and including >>>>> my changes to control the LNB works very well; the patch you posted >>>>> does not. i have swapped between the two and rebooted several times to >>>>> make sure. >>>>> >>>>> i will do a diff and see what the differences are >>>>> >>>>> regards >>>>> -- >>>>> simon >>>> the main changes seem to be a reworking of the interrupt handling and >>>> some i2c changes >>>> -- >>>> simon >>> How fast is your system? >> reasonably fast >> it is a dual core AMD64 X2 running at 3.1GHz >> >> > Main change is to move demuxing from interrupt to work handler. > So I prepaired another patch, with separate work queue. > May be you find some time to test. > > I wonder CPU usage and interrupts count(cat /proc/interrupts) while viewing DVB. > I guess your card generates a lot of unnecessary(unknown ?) irq's. > > Another idea is to increase dma buffer. > i've tested that now sorry for the delay - at a family wedding anyway, that seems to work fine. will st some more, but the first results (with kaffeine) seem good. i did a complete scan and then tried about 20 different channels. they all seemed to work fine. thanks -- simon ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [linux-dvb] SDMC DM1105N not being detected 2009-06-14 22:49 ` Simon Kenyon @ 2009-06-15 0:24 ` Igor M. Liplianin 0 siblings, 0 replies; 20+ messages in thread From: Igor M. Liplianin @ 2009-06-15 0:24 UTC (permalink / raw) To: Simon Kenyon; +Cc: Igor M. Liplianin, linux-media On 15 June 2009 01:49:09 Simon Kenyon wrote: > Igor M. Liplianin wrote: > > On 6 June 2009 23:37:47 Simon Kenyon wrote: > >> Igor M. Liplianin wrote: > >>> On 5 June 2009 21:41:46 Simon Kenyon wrote: > >>>> Simon Kenyon wrote: > >>>>> Simon Kenyon wrote: > >>>>>> the picture seems to be breaking up badly > >>>>>> will revert to my version and see if that fixes it > >>>>> > >>>>> [sorry for the delay. i was away on business] > >>>>> > >>>>> i've checked and your original code, modified to compile and > >>>>> including my changes to control the LNB works very well; the patch > >>>>> you posted does not. i have swapped between the two and rebooted > >>>>> several times to make sure. > >>>>> > >>>>> i will do a diff and see what the differences are > >>>>> > >>>>> regards > >>>>> -- > >>>>> simon > >>>> > >>>> the main changes seem to be a reworking of the interrupt handling and > >>>> some i2c changes > >>>> -- > >>>> simon > >>> > >>> How fast is your system? > >> > >> reasonably fast > >> it is a dual core AMD64 X2 running at 3.1GHz > > > > Main change is to move demuxing from interrupt to work handler. > > So I prepaired another patch, with separate work queue. > > May be you find some time to test. > > > > I wonder CPU usage and interrupts count(cat /proc/interrupts) while > > viewing DVB. I guess your card generates a lot of unnecessary(unknown ?) > > irq's. > > > > Another idea is to increase dma buffer. > > i've tested that now > sorry for the delay - at a family wedding > > anyway, that seems to work fine. will st some more, but the first > results (with kaffeine) seem good. > > i did a complete scan and then tried about 20 different channels. they > all seemed to work fine. > > thanks > -- > simon Good news. Thank you for testing. Igor ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2009-06-15 0:22 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-03 4:56 [linux-dvb] SDMC DM1105N not being detected mp3geek
2009-04-03 5:02 ` mp3geek
2009-04-03 15:36 ` Igor M. Liplianin
2009-04-04 4:17 ` mp3geek
2009-05-20 13:44 ` [linux-dvb] " Simon Kenyon
2009-05-23 13:04 ` Igor M. Liplianin
2009-05-25 19:50 ` Simon Kenyon
2009-05-26 14:47 ` Igor M. Liplianin
2009-05-26 20:02 ` Simon Kenyon
[not found] ` <4A1FA9EC.4050405@koala.ie>
2009-05-30 9:44 ` [SOLVED] " Igor M. Liplianin
2009-05-30 16:54 ` Simon Kenyon
2009-05-30 17:15 ` Igor M. Liplianin
2009-05-30 17:00 ` Igor M. Liplianin
2009-05-31 22:01 ` Igor M. Liplianin
2009-06-01 10:04 ` Simon Kenyon
[not found] ` <4A295F87.50307@koala.ie>
[not found] ` <4A2966EA.8080406@koala.ie>
2009-06-06 8:57 ` Igor M. Liplianin
2009-06-06 20:37 ` Simon Kenyon
2009-06-12 9:05 ` Igor M. Liplianin
2009-06-14 22:49 ` Simon Kenyon
2009-06-15 0:24 ` Igor M. Liplianin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox