From: mp3geek <mp3geek@gmail.com>
To: "Igor M. Liplianin" <liplianin@me.by>
Cc: linux-media@vger.kernel.org
Subject: Re: SDMC DM1105N not being detected
Date: Sat, 4 Apr 2009 17:17:51 +1300 [thread overview]
Message-ID: <e6ac15e50904032117l650e939agb578cf6db58949b4@mail.gmail.com> (raw)
In-Reply-To: <200904031836.19523.liplianin@tut.by>
[-- 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 */
},
};
next prev parent reply other threads:[~2009-04-04 4:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e6ac15e50904032117l650e939agb578cf6db58949b4@mail.gmail.com \
--to=mp3geek@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=liplianin@me.by \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.