Skip to contentSkip to conversation

DM1105: could not attach frontend 195d:1105

DISCUSSION [email protected] 3 participants 15 messages Jan 16, 2010 – Feb 4, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines · Paul

Is it likely that there is a tuner under the card labelled "ERIT"? To take it off I have to unsolder some stuff - I can do that, but I reckon it's only 50% chance the card will work again when I put it back

together -

Quoted 1 line

my soldering isn't so good.

Quoted 1 line · Igor

No need to unsolder. I see a Serit can tuner. There is a sticked paper

with a label on right side

Quoted 1 line

of the tuner. It must contain something like "sp2636lhb" or "sp2633chb".

Please provide me text of

Quoted 1 line

label.

Ah, I see. The whole thing is a tuner, and the label that I thought said
"ERIT" actually says "SERIT". Yes, it does have a label on it, I should have given you that up front. I had searched for it on the internet and decided that it didn't mean anything. Thanks so much for your help.

The label reads SP1514LHb D0943B

If I follow your decipher instructions that means:

1: DVB-S
5: 16cc
1: Unsure, but it has an LNB in and an LNB out, so I guess it does have loop through?
4: Si2109
L: Si labs
H: Horizontal
b: Lead free

So I'm looking for some code to enable an Si2109 tuner?

Thanks again,

Paul

#1 lore raw
Quoted 1 line · On Sat, 16 Jan 2010 02:49:52 +0000, <[email protected]> wrote:

Ah, I see. The whole thing is a tuner, and the label that I thought

said

Quoted 17 lines

"ERIT" actually says "SERIT". Yes, it does have a label on it, I should have given you that up front. I had searched for it on the internet and decided that it didn't mean anything. Thanks so much for your help.

The label reads SP1514LHb D0943B

If I follow your decipher instructions that means:

1: DVB-S
5: 16cc
1: Unsure, but it has an LNB in and an LNB out, so I guess it does have loop through?
4: Si2109
L: Si labs
H: Horizontal
b: Lead free

Quoted 5 lines

So I'm looking for some code to enable an Si2109 tuner?

Thanks again,

Paul

I'm looking through the dm1105 code that I have in 2.6.33-rc4. I have a block that reads:

                dm1105dvb->fe = dvb_attach(
                        si21xx_attach, &serit_config,
                        &dm1105dvb->i2c_adap);
                if (dm1105dvb->fe)
                        dm1105dvb->fe->ops.set_voltage =
                                                dm1105dvb_set_voltage;

I have looked through the code for si21xx.c, and I see that you wrote that as well. You have been very busy!!

I did rmmod si21xx, then insmod si21xx debug=1.

I then rmmod dm1105, insmod dm1105.

dmesg reports:

[191712.426735] dm1105 0000:06:00.0: PCI INT A -> GSI 20 (level, low) ->
IRQ 20
[191712.426898] DVB: registering new adapter (dm1105)
[191712.674945] dm1105 0000:06:00.0: MAC 00:00:00:00:00:00
[191714.072172] si21xx: si21xx_attach
[191714.320219] si21xx: si21_readreg: readreg error (reg == 0x01, ret ==
-1)
[191714.568266] si21xx: si21_writereg: writereg error (reg == 0x01, data
== 0x40, ret == -1)
[191715.020067] si21xx: si21_readreg: readreg error (reg == 0x00, ret ==
-1)
[191715.020125] dm1105 0000:06:00.0: could not attach frontend
[191715.020297] dm1105 0000:06:00.0: PCI INT A disabled

Does this shed any light on the matter for you?

Thanks,

Paul

#2 lore raw
Quoted 1 line · Igor

Accordingly datasheet possible demod addresses are 0x68, 0x69, 0x6a,

0x6b only.

Quoted 2 lines

Possibly there is some DM1105 GPIO drives reset for demod.
I assume it is last (26, top right if you look from card elements side)

pin on tuner.

Quoted 1 line

You can visually trace way from can tuner. Or use multimeter.

Sorry, that is a bit beyond me.

If I understand correctly, I'm looking for the top right pin from the tuner when I'm looking at the side of the card that has all the chips on it. I can see that, and there are a number of traces that run from there to the DM1105, and also a few that run to other components on the card.

I'm assuming I need to follow the topmost of the traces that go to the DM1105, and see which pin on the DM1105 it goes to.

My eyesight isn't that good...but I have a magnifying glass. If I follow the topmost of the traces it looks to run to the rightmost pin on the top row of pins on the DM1105, when the writing on the DM1105 is the right way up. I didn't find a data sheet for the DM1105, so I can't tell if that is a GPIO pin or not.

The next trace down from the top right on the tuner appears to end without connecting. It ends in a small brass circle, and doesn't appear to go through to the back of the board and connect anywhere. The next one below that goes to the fifth pin in from the right hand end of the top row on the DM1105.

Am I doing the right thing here - does this make sense?

I've drawn on the photo so you can see what I'm doing. Refer:
http://planar.id.au/Photos/img_1964%20%28copy%29.jpg. The far right blue line comes from the top most right hand pin on the tuner, runs under the board at the brass circle, and comes out again to join on to the rightmost pin. The next blue line in is the one going to the fifth pin, it is the third track down coming from the tuner. In between the two is a track that appears to go nowhere. I've marked in white roughly where they are coming out of the tuner.

Thanks again for all your help,

Paul

#3 lore raw
Quoted 45 lines · On 16 января 2010 15:18:07 [email protected] wrote:
Quoted 1 line · Igor

Accordingly datasheet possible demod addresses are 0x68, 0x69, 0x6a,

0x6b only.

Quoted 2 lines

Possibly there is some DM1105 GPIO drives reset for demod.
I assume it is last (26, top right if you look from card elements side)

pin on tuner.

Quoted 1 line

You can visually trace way from can tuner. Or use multimeter.

Sorry, that is a bit beyond me.

If I understand correctly, I'm looking for the top right pin from the tuner when I'm looking at the side of the card that has all the chips on it. I can see that, and there are a number of traces that run from there to the DM1105, and also a few that run to other components on the card.

I'm assuming I need to follow the topmost of the traces that go to the DM1105, and see which pin on the DM1105 it goes to.

My eyesight isn't that good...but I have a magnifying glass. If I follow the topmost of the traces it looks to run to the rightmost pin on the top row of pins on the DM1105, when the writing on the DM1105 is the right way up. I didn't find a data sheet for the DM1105, so I can't tell if that is a GPIO pin or not.

The next trace down from the top right on the tuner appears to end without connecting. It ends in a small brass circle, and doesn't appear to go through to the back of the board and connect anywhere. The next one below that goes to the fifth pin in from the right hand end of the top row on the DM1105.

Am I doing the right thing here - does this make sense?

I've drawn on the photo so you can see what I'm doing. Refer:
http://planar.id.au/Photos/img_1964%20%28copy%29.jpg. The far right blue line comes from the top most right hand pin on the tuner, runs under the board at the brass circle, and comes out again to join on to the rightmost pin. The next blue line in is the one going to the fifth pin, it is the third track down coming from the tuner. In between the two is a track that appears to go nowhere. I've marked in white roughly where they are coming out of the tuner.

Quoted 3 lines

Thanks again for all your help,

Paul

Well, as I understood, GPIO15 drives reset for demod. dm1105 driver needs little patching.

Signature · 2 lines
Igor M. Liplianin
Microsoft Windows Free Zone - Linux used for all Computing Tasks
#4 lore raw
In reply to [email protected]
Quoted 4 lines

Well, as I understood, GPIO15 drives reset for demod. dm1105 driver needs little patching.

Igor,

Not to hassle you, I'm sure you're very busy. Is this something I could undertake myself? If so, which driver would you recommend I copy from - I saw on the list that some drivers do their own GPIO management, and others use a generic GPIO layer. I presume we'd need to use the generic layer?

Also, from your explanation it sounds like we need to set GPIO 15 to true before we attempt to attach. Is that correct? From my reading there are two GPIO registers (8 bits each), so we'd be bit masking bit 7 in the second GPIO register to 1, then sending that GPIO to the card?

Thanks for any tips,

Paul

#5 lore raw

2010/1/19 <[email protected]>:

Quoted 12 lines
Quoted 4 lines

Well, as I understood, GPIO15 drives reset for demod. dm1105 driver needs little patching.

Igor,

Not to hassle you, I'm sure you're very busy.  Is this something I could undertake myself?  If so, which driver would you recommend I copy from - I saw on the list that some drivers do their own GPIO management, and others use a generic GPIO layer.  I presume we'd need to use the generic layer?

Quoted 11 lines

Also, from your explanation it sounds like we need to set GPIO 15 to true before we attempt to attach.  Is that correct?  From my reading there are two GPIO registers (8 bits each), so we'd be bit masking bit 7 in the second GPIO register to 1, then sending that GPIO to the card?

Thanks for any tips,

Paul

As you can see there is two 32-bit registers. First for values, second for controls. Control means 0 for output and 1 for input. If I remember it is 17 GPIO lines only.

/* GPIO Interface */
#define DM1105_GPIOVAL 0x08
#define DM1105_GPIOCTR 0x0c

BR

Igor

#6 lore raw
In reply to [email protected]
Quoted 6 lines · Igor

Oh, that is wrong. It is registers addresses, Never touch this.

Let's look on that part of code:

/* GPIO's for LNB power control */
#define DM1105_LNB_MASK 0x00000000 // later in

code write it to

Quoted 2 lines

DM1105_GPIOCTR, all GPIO's as OUT
#define DM1105_LNB_OFF 0x00020000 // later in

code write it to

Quoted 8 lines

DM1105_GPIOVAL, set GPIO17 to HIGH

But you have not to change this.
Right way is to write another entry in cards structure and so on. Better leave it to me.

Regards
Igor

Thanks for all your help, I understand better now. I have moved to code like that at the bottom. It still doesn't work, but feels a lot closer.

Before I keep playing with values, I want to check I'm on the right track. Does it look right? Specific questions:
1. I see there is a hw_init function. Should I be using that? I put the logic into fe_attach because there was already card-specific logic in there. But this feels like hw initialisation.

2. Should I set the control to input or output? I'm assuming input = 1.

3. Would pin 15 be numbered from the left or right - is it 0x4, or 0x2000?

Thanks,

Paul

*** dm1105.c.old 2010-01-13 16:15:00.000000000 +1100
--- dm1105.c 2010-01-21 08:13:14.000000000 +1100
***************
*** 51,56 ****
--- 51,57 ----
#define DM1105_BOARD_DVBWORLD_2002 1
#define DM1105_BOARD_DVBWORLD_2004 2
#define DM1105_BOARD_AXESS_DM05 3
+ #define DM1105_BOARD_UNBRANDED 4

/* ----------------------------------------------- */ /*
***************
*** 171,176 ****
--- 172,181 ----
#define DM05_LNB_13V 0x00020000
#define DM05_LNB_18V 0x00030000

+ /* GPIO's for demod reset for unbranded 195d:1105 */
+ #define UNBRANDED_DEMOD_MASK 0x00008000
+ #define UNBRANDED_DEMOD_RESET 0x00008000
+
static unsigned int card[] = {[0 ... 3] = UNSET }; module_param_array(card, int, NULL, 0444); MODULE_PARM_DESC(card, "card type");
***************
*** 206,211 ****
--- 211,219 ----

        [DM1105_BOARD_AXESS_DM05] = {
                .name           = "Axess/EasyTv DM05",
        },

+ [DM1105_BOARD_UNBRANDED] = {
+ .name = "Unbranded 195d:1105",
+ },
};

static const struct dm1105_subid dm1105_subids[] = {
***************
*** 229,234 ****
--- 237,246 ----

                .subvendor = 0x195d,
                .subdevice = 0x1105,
                .card      = DM1105_BOARD_AXESS_DM05,
+       }, {
+               .subvendor = 0x195d,
+               .subdevice = 0x1105,
+               .card      = DM1105_BOARD_UNBRANDED,
        },

};

***************
*** 698,703 ****
--- 710,727 ----

                        dm1105dvb->fe->ops.set_voltage =

dm1105dvb_set_voltage;

                break;
+       case DM1105_BOARD_UNBRANDED:
+                 printk(KERN_ERR "Attaching as board_unbranded\n");
+               outl(UNBRANDED_DEMOD_MASK, dm_io_mem(DM1105_GPIOCTR));
+               outl(UNBRANDED_DEMOD_RESET , dm_io_mem(DM1105_GPIOVAL));
+               dm1105dvb->fe = dvb_attach(
+                       si21xx_attach, &serit_config,
+                       &dm1105dvb->i2c_adap);
+                       if (dm1105dvb->fe)
+                               dm1105dvb->fe->ops.set_voltage =
+                                       dm1105dvb_set_voltage;
+ 
+               break;
        case DM1105_BOARD_DVBWORLD_2002:
        case DM1105_BOARD_AXESS_DM05:
        default:
#7 lore raw
Quoted 103 lines · On 20 января 2010 23:20:20 [email protected] wrote:
Quoted 6 lines · Igor

Oh, that is wrong. It is registers addresses, Never touch this.

Let's look on that part of code:

/* GPIO's for LNB power control */
#define DM1105_LNB_MASK 0x00000000 // later in

code write it to

Quoted 2 lines

DM1105_GPIOCTR, all GPIO's as OUT
#define DM1105_LNB_OFF 0x00020000 // later in

code write it to

Quoted 8 lines

DM1105_GPIOVAL, set GPIO17 to HIGH

But you have not to change this.
Right way is to write another entry in cards structure and so on. Better leave it to me.

Regards
Igor

Thanks for all your help, I understand better now. I have moved to code like that at the bottom. It still doesn't work, but feels a lot closer.

Before I keep playing with values, I want to check I'm on the right track. Does it look right? Specific questions:
1. I see there is a hw_init function. Should I be using that? I put the logic into fe_attach because there was already card-specific logic in there. But this feels like hw initialisation.

2. Should I set the control to input or output? I'm assuming input = 1.

3. Would pin 15 be numbered from the left or right - is it 0x4, or 0x2000?

Thanks,

Paul

*** dm1105.c.old 2010-01-13 16:15:00.000000000 +1100
--- dm1105.c 2010-01-21 08:13:14.000000000 +1100
***************
*** 51,56 ****
--- 51,57 ----
#define DM1105_BOARD_DVBWORLD_2002 1
#define DM1105_BOARD_DVBWORLD_2004 2
#define DM1105_BOARD_AXESS_DM05 3
+ #define DM1105_BOARD_UNBRANDED 4

/* ----------------------------------------------- */ /*
***************
*** 171,176 ****
--- 172,181 ----
#define DM05_LNB_13V 0x00020000
#define DM05_LNB_18V 0x00030000

+ /* GPIO's for demod reset for unbranded 195d:1105 */
+ #define UNBRANDED_DEMOD_MASK 0x00008000
+ #define UNBRANDED_DEMOD_RESET 0x00008000
+
static unsigned int card[] = {[0 ... 3] = UNSET }; module_param_array(card, int, NULL, 0444); MODULE_PARM_DESC(card, "card type");
***************
*** 206,211 ****
--- 211,219 ----

        [DM1105_BOARD_AXESS_DM05] = {
                .name           = "Axess/EasyTv DM05",
        },
(quoted diff) +3 -0
+       [DM1105_BOARD_UNBRANDED] = {
+               .name           = "Unbranded 195d:1105",
+         },
  };
 
  static const struct dm1105_subid dm1105_subids[] = {

***************
*** 229,234 ****
--- 237,246 ----

                .subvendor = 0x195d,
                .subdevice = 0x1105,
                .card      = DM1105_BOARD_AXESS_DM05,
(quoted diff) +4 -0
+       }, {
+               .subvendor = 0x195d,
+               .subdevice = 0x1105,
+               .card      = DM1105_BOARD_UNBRANDED,
        },
  };

***************
*** 698,703 ****
--- 710,727 ----

                        dm1105dvb->fe->ops.set_voltage =

dm1105dvb_set_voltage;

                break;
(quoted diff) +5 -0
+       case DM1105_BOARD_UNBRANDED:
+                 printk(KERN_ERR "Attaching as board_unbranded\n");
+               outl(UNBRANDED_DEMOD_MASK, dm_io_mem(DM1105_GPIOCTR));
+               outl(UNBRANDED_DEMOD_RESET , dm_io_mem(DM1105_GPIOVAL));
+               dm1105dvb->fe = dvb_attach(

Review

Quoted 10 lines
(quoted diff) +7 -0
+                       si21xx_attach, &serit_config,
+                       &dm1105dvb->i2c_adap);
+                       if (dm1105dvb->fe)
+                               dm1105dvb->fe->ops.set_voltage =
+                                       dm1105dvb_set_voltage;
+
+               break;
        case DM1105_BOARD_DVBWORLD_2002:
        case DM1105_BOARD_AXESS_DM05:
        default:

Some things are missed, like keep GPIO15 high in set_voltage function. Try attached patch against current v4l-dvb tree with modprobe option card=4

	modprobe dm1105 card=4
Signature · 2 lines
Igor M. Liplianin
Microsoft Windows Free Zone - Linux used for all Computing Tasks
linux/drivers/media/dvb/dm1105/dm1105.c +20 -0
diff -r d6520e486ee6 linux/drivers/media/dvb/dm1105/dm1105.c
@@ -52,6 +52,7 @@
 #define DM1105_BOARD_DVBWORLD_2002	1
 #define DM1105_BOARD_DVBWORLD_2004	2
 #define DM1105_BOARD_AXESS_DM05		3
+#define DM1105_BOARD_UNBRANDED_GPIO15	4
 
 /* ----------------------------------------------- */
 /*
@@ -207,6 +208,9 @@
 	[DM1105_BOARD_AXESS_DM05] = {
 		.name		= "Axess/EasyTv DM05",
 	},
+	[DM1105_BOARD_UNBRANDED_GPIO15] = {
+		.name		= "Unbranded Board GPIO15",
+	},
 };
 
 static const struct dm1105_subid dm1105_subids[] = {
@@ -327,6 +331,8 @@
 #define dm_setl(reg, bit)	dm_andorl((reg), (bit), (bit))
 #define dm_clearl(reg, bit)	dm_andorl((reg), (bit), 0)
 
+#define DM1105_GPIO(x)		(1 << x)
+
 static int dm1105_i2c_xfer(struct i2c_adapter *i2c_adap,
 			    struct i2c_msg *msgs, int num)
 {
@@ -441,6 +447,12 @@
 	u32 lnb_mask, lnb_13v, lnb_18v, lnb_off;
 
 	switch (dev->boardnr) {
+	case DM1105_BOARD_UNBRANDED_GPIO15:
+		lnb_mask = DM05_LNB_MASK;
+		lnb_off = DM05_LNB_OFF | DM1105_GPIO(15);/* keep GPIO15 high */
+		lnb_13v = DM05_LNB_13V | DM1105_GPIO(15);
+		lnb_18v = DM05_LNB_18V | DM1105_GPIO(15);
+		break;
 	case DM1105_BOARD_AXESS_DM05:
 		lnb_mask = DM05_LNB_MASK;
 		lnb_off = DM05_LNB_OFF;
@@ -758,6 +770,14 @@
 			dev->fe->ops.set_voltage = dm1105_set_voltage;
 
 		break;
+	case DM1105_BOARD_UNBRANDED_GPIO15:
+		/* reset frontend */
+		dm_clearl(DM1105_GPIOCTR, DM1105_GPIO(15));
+		dm_clearl(DM1105_GPIOVAL, DM1105_GPIO(15));
+		msleep(10);
+		dm_setl(DM1105_GPIOVAL, DM1105_GPIO(15));
+		msleep(100);
+	/* break omitted intentionally */
 	case DM1105_BOARD_DVBWORLD_2002:
 	case DM1105_BOARD_AXESS_DM05:
 	default:
#8 lore raw

Hi there,
dmesg output with patched dm1105.c against current v4l-dvb 'modprob dm1105 card=4'

dm1105 0000:05:0f.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
DVB: registering new adapter (dm1105)
dm1105 0000:05:0f.0: MAC dd49b0dc
dm1105 0000:05:0f.0: could not attach frontend
dm1105 0000:05:0f.0: PCI INT A disabled

Thanks
Nameer Kazzaz

Quoted 123 lines · Igor M. Liplianin
Quoted 107 lines · On 20 ?????? 2010 23:20:20 [email protected] wrote:
Quoted 7 lines · Igor

Oh, that is wrong. It is registers addresses, Never touch this.

Let's look on that part of code:

/* GPIO's for LNB power control */
#define DM1105_LNB_MASK 0x00000000 // later in

code write it to

Quoted 3 lines

DM1105_GPIOCTR, all GPIO's as OUT
#define DM1105_LNB_OFF 0x00020000 // later in

code write it to

Quoted 9 lines

DM1105_GPIOVAL, set GPIO17 to HIGH

But you have not to change this.
Right way is to write another entry in cards structure and so on. Better leave it to me.

Regards
Igor

Thanks for all your help, I understand better now. I have moved to code like that at the bottom. It still doesn't work, but feels a lot closer.

Before I keep playing with values, I want to check I'm on the right track. Does it look right? Specific questions:
1. I see there is a hw_init function. Should I be using that? I put the logic into fe_attach because there was already card-specific logic in there. But this feels like hw initialisation.

2. Should I set the control to input or output? I'm assuming input = 1.

3. Would pin 15 be numbered from the left or right - is it 0x4, or 0x2000?

Thanks,

Paul

*** dm1105.c.old 2010-01-13 16:15:00.000000000 +1100
--- dm1105.c 2010-01-21 08:13:14.000000000 +1100
***************
*** 51,56 ****
--- 51,57 ----
#define DM1105_BOARD_DVBWORLD_2002 1
#define DM1105_BOARD_DVBWORLD_2004 2
#define DM1105_BOARD_AXESS_DM05 3
+ #define DM1105_BOARD_UNBRANDED 4

/* ----------------------------------------------- */ /*
***************
*** 171,176 ****
--- 172,181 ----
#define DM05_LNB_13V 0x00020000
#define DM05_LNB_18V 0x00030000

+ /* GPIO's for demod reset for unbranded 195d:1105 */
+ #define UNBRANDED_DEMOD_MASK 0x00008000
+ #define UNBRANDED_DEMOD_RESET 0x00008000
+
static unsigned int card[] = {[0 ... 3] = UNSET }; module_param_array(card, int, NULL, 0444); MODULE_PARM_DESC(card, "card type");
***************
*** 206,211 ****
--- 211,219 ----

        [DM1105_BOARD_AXESS_DM05] = {
                .name           = "Axess/EasyTv DM05",
        },
linux/drivers/media/dvb/dm1105/dm1105.c +3 -0
+       [DM1105_BOARD_UNBRANDED] = {
+               .name           = "Unbranded 195d:1105",
+         },
  };
 
  static const struct dm1105_subid dm1105_subids[] = {

***************
*** 229,234 ****
--- 237,246 ----

                .subvendor = 0x195d,
                .subdevice = 0x1105,
                .card      = DM1105_BOARD_AXESS_DM05,
(quoted diff) +4 -0
+       }, {
+               .subvendor = 0x195d,
+               .subdevice = 0x1105,
+               .card      = DM1105_BOARD_UNBRANDED,
        },
  };

***************
*** 698,703 ****
--- 710,727 ----

                        dm1105dvb->fe->ops.set_voltage =

dm1105dvb_set_voltage;

                break;
(quoted diff) +5 -0
+       case DM1105_BOARD_UNBRANDED:
+                 printk(KERN_ERR "Attaching as board_unbranded\n");
+               outl(UNBRANDED_DEMOD_MASK, dm_io_mem(DM1105_GPIOCTR));
+               outl(UNBRANDED_DEMOD_RESET , dm_io_mem(DM1105_GPIOVAL));
+               dm1105dvb->fe = dvb_attach(

Review

Quoted 10 lines
(quoted diff) +7 -0
+                       si21xx_attach, &serit_config,
+                       &dm1105dvb->i2c_adap);
+                       if (dm1105dvb->fe)
+                               dm1105dvb->fe->ops.set_voltage =
+                                       dm1105dvb_set_voltage;
+
+               break;
        case DM1105_BOARD_DVBWORLD_2002:
        case DM1105_BOARD_AXESS_DM05:
        default:

Some things are missed, like keep GPIO15 high in set_voltage function. Try attached patch against current v4l-dvb tree with modprobe option card=4

	modprobe dm1105 card=4
#9 lore raw

Hi Igor,
What do you think ? if I can help you solve this, let me know what I
can do.

Thanks
Nameer

Quoted 138 lines · Nameer Kazzaz

Hi there,
dmesg output with patched dm1105.c against current v4l-dvb 'modprob dm1105 card=4'

dm1105 0000:05:0f.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
DVB: registering new adapter (dm1105)
dm1105 0000:05:0f.0: MAC dd49b0dc
dm1105 0000:05:0f.0: could not attach frontend
dm1105 0000:05:0f.0: PCI INT A disabled

Thanks
Nameer Kazzaz

Quoted 124 lines · Igor M. Liplianin
Quoted 108 lines · On 20 ?????? 2010 23:20:20 [email protected] wrote:
Quoted 7 lines · Igor

Oh, that is wrong. It is registers addresses, Never touch this.

Let's look on that part of code:

/* GPIO's for LNB power control */
#define DM1105_LNB_MASK 0x00000000 // later in

code write it to

Quoted 3 lines

DM1105_GPIOCTR, all GPIO's as OUT
#define DM1105_LNB_OFF 0x00020000 // later in

code write it to

Quoted 9 lines

DM1105_GPIOVAL, set GPIO17 to HIGH

But you have not to change this.
Right way is to write another entry in cards structure and so on. Better leave it to me.

Regards
Igor

Thanks for all your help, I understand better now. I have moved to code like that at the bottom. It still doesn't work, but feels a lot closer.

Before I keep playing with values, I want to check I'm on the right track. Does it look right? Specific questions:
1. I see there is a hw_init function. Should I be using that? I put the logic into fe_attach because there was already card-specific logic in there. But this feels like hw initialisation.

2. Should I set the control to input or output? I'm assuming input = 1.

3. Would pin 15 be numbered from the left or right - is it 0x4, or 0x2000?

Thanks,

Paul

*** dm1105.c.old 2010-01-13 16:15:00.000000000 +1100
--- dm1105.c 2010-01-21 08:13:14.000000000 +1100
***************
*** 51,56 ****
--- 51,57 ----
#define DM1105_BOARD_DVBWORLD_2002 1
#define DM1105_BOARD_DVBWORLD_2004 2
#define DM1105_BOARD_AXESS_DM05 3
+ #define DM1105_BOARD_UNBRANDED 4

/* ----------------------------------------------- */ /*
***************
*** 171,176 ****
--- 172,181 ----
#define DM05_LNB_13V 0x00020000
#define DM05_LNB_18V 0x00030000

+ /* GPIO's for demod reset for unbranded 195d:1105 */
+ #define UNBRANDED_DEMOD_MASK 0x00008000
+ #define UNBRANDED_DEMOD_RESET 0x00008000
+
static unsigned int card[] = {[0 ... 3] = UNSET }; module_param_array(card, int, NULL, 0444); MODULE_PARM_DESC(card, "card type");
***************
*** 206,211 ****
--- 211,219 ----

        [DM1105_BOARD_AXESS_DM05] = {
                .name           = "Axess/EasyTv DM05",
        },
linux/drivers/media/dvb/dm1105/dm1105.c +3 -0
+       [DM1105_BOARD_UNBRANDED] = {
+               .name           = "Unbranded 195d:1105",
+         },
  };
 
  static const struct dm1105_subid dm1105_subids[] = {

***************
*** 229,234 ****
--- 237,246 ----

                .subvendor = 0x195d,
                .subdevice = 0x1105,
                .card      = DM1105_BOARD_AXESS_DM05,
(quoted diff) +4 -0
+       }, {
+               .subvendor = 0x195d,
+               .subdevice = 0x1105,
+               .card      = DM1105_BOARD_UNBRANDED,
        },
  };

***************
*** 698,703 ****
--- 710,727 ----

                        dm1105dvb->fe->ops.set_voltage =

dm1105dvb_set_voltage;

                break;
(quoted diff) +4 -0
+       case DM1105_BOARD_UNBRANDED:
+                 printk(KERN_ERR "Attaching as board_unbranded\n");
+               outl(UNBRANDED_DEMOD_MASK, dm_io_mem(DM1105_GPIOCTR));
+               outl(UNBRANDED_DEMOD_RESET , 

dm_io_mem(DM1105_GPIOVAL));

(quoted diff) +1 -0
+               dm1105dvb->fe = dvb_attach(

Review

Quoted 10 lines
(quoted diff) +7 -0
+                       si21xx_attach, &serit_config,
+                       &dm1105dvb->i2c_adap);
+                       if (dm1105dvb->fe)
+                               dm1105dvb->fe->ops.set_voltage =
+                                       dm1105dvb_set_voltage;
+
+               break;
        case DM1105_BOARD_DVBWORLD_2002:
        case DM1105_BOARD_AXESS_DM05:
        default:

Some things are missed, like keep GPIO15 high in set_voltage function. Try attached patch against current v4l-dvb tree with modprobe option card=4

    modprobe dm1105 card=4
#10 lore raw
Quoted 4 lines · On 2 февраля 2010 17:21:46 Nameer Kazzaz wrote:

Hi Igor,
What do you think ? if I can help you solve this, let me know what I
can do.

Quoted 144 lines

Thanks
Nameer

Quoted 140 lines · Nameer Kazzaz

Hi there,
dmesg output with patched dm1105.c against current v4l-dvb 'modprob dm1105 card=4'

dm1105 0000:05:0f.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
DVB: registering new adapter (dm1105)
dm1105 0000:05:0f.0: MAC dd49b0dc
dm1105 0000:05:0f.0: could not attach frontend
dm1105 0000:05:0f.0: PCI INT A disabled

Thanks
Nameer Kazzaz

Quoted 126 lines · Igor M. Liplianin
Quoted 110 lines · On 20 ?????? 2010 23:20:20 [email protected] wrote:
Quoted 6 lines · Igor

Oh, that is wrong. It is registers addresses, Never touch this.

Let's look on that part of code:

/* GPIO's for LNB power control */
#define DM1105_LNB_MASK 0x00000000 // later in

code write it to

Quoted 2 lines

DM1105_GPIOCTR, all GPIO's as OUT
#define DM1105_LNB_OFF 0x00020000 // later in

code write it to

Quoted 8 lines

DM1105_GPIOVAL, set GPIO17 to HIGH

But you have not to change this.
Right way is to write another entry in cards structure and so on. Better leave it to me.

Regards
Igor

Thanks for all your help, I understand better now. I have moved to code
like that at the bottom. It still doesn't work, but feels a lot closer.

Before I keep playing with values, I want to check I'm on the right track.
Does it look right? Specific questions:
1. I see there is a hw_init function. Should I be using that? I put the
logic into fe_attach because there was already card-specific logic in there. But this feels like hw initialisation.

2. Should I set the control to input or output? I'm assuming input = 1.

3. Would pin 15 be numbered from the left or right - is it 0x4, or 0x2000?

Thanks,

Paul

*** dm1105.c.old 2010-01-13 16:15:00.000000000 +1100
--- dm1105.c 2010-01-21 08:13:14.000000000 +1100
***************
*** 51,56 ****
--- 51,57 ----
#define DM1105_BOARD_DVBWORLD_2002 1
#define DM1105_BOARD_DVBWORLD_2004 2
#define DM1105_BOARD_AXESS_DM05 3
+ #define DM1105_BOARD_UNBRANDED 4

/* ----------------------------------------------- */ /*
***************
*** 171,176 ****
--- 172,181 ----
#define DM05_LNB_13V 0x00020000
#define DM05_LNB_18V 0x00030000

+ /* GPIO's for demod reset for unbranded 195d:1105 */
+ #define UNBRANDED_DEMOD_MASK 0x00008000
+ #define UNBRANDED_DEMOD_RESET 0x00008000
+
static unsigned int card[] = {[0 ... 3] = UNSET }; module_param_array(card, int, NULL, 0444); MODULE_PARM_DESC(card, "card type");
***************
*** 206,211 ****
--- 211,219 ----

        [DM1105_BOARD_AXESS_DM05] = {
                .name           = "Axess/EasyTv DM05",
        },
linux/drivers/media/dvb/dm1105/dm1105.c +3 -0
+       [DM1105_BOARD_UNBRANDED] = {
+               .name           = "Unbranded 195d:1105",
+         },
  };
 
  static const struct dm1105_subid dm1105_subids[] = {

***************
*** 229,234 ****
--- 237,246 ----

                .subvendor = 0x195d,
                .subdevice = 0x1105,
                .card      = DM1105_BOARD_AXESS_DM05,
(quoted diff) +4 -0
+       }, {
+               .subvendor = 0x195d,
+               .subdevice = 0x1105,
+               .card      = DM1105_BOARD_UNBRANDED,
        },
  };

***************
*** 698,703 ****
--- 710,727 ----

                        dm1105dvb->fe->ops.set_voltage =

dm1105dvb_set_voltage;

                break;
(quoted diff) +4 -0
+       case DM1105_BOARD_UNBRANDED:
+                 printk(KERN_ERR "Attaching as board_unbranded\n");
+               outl(UNBRANDED_DEMOD_MASK, dm_io_mem(DM1105_GPIOCTR));
+               outl(UNBRANDED_DEMOD_RESET ,

dm_io_mem(DM1105_GPIOVAL));

(quoted diff) +1 -0
+               dm1105dvb->fe = dvb_attach(

Review

Quoted 10 lines
(quoted diff) +7 -0
+                       si21xx_attach, &serit_config,
+                       &dm1105dvb->i2c_adap);
+                       if (dm1105dvb->fe)
+                               dm1105dvb->fe->ops.set_voltage =
+                                       dm1105dvb_set_voltage;
+
+               break;
        case DM1105_BOARD_DVBWORLD_2002:
        case DM1105_BOARD_AXESS_DM05:
        default:

Some things are missed, like keep GPIO15 high in set_voltage function. Try attached patch against current v4l-dvb tree with modprobe option card=4

    modprobe dm1105 card=4

Hi Nameer,
You can modify sended by me patch to guess GPIO pin. Simply try all of them, it is only 17. Just replace all appearances DM1105_GPIO(15) with number you want.

Signature · 2 lines
Igor M. Liplianin
Microsoft Windows Free Zone - Linux used for all Computing Tasks
#11 lore raw
Quoted 157 lines · Igor M. Liplianin
Quoted 4 lines · On 2 февраля 2010 17:21:46 Nameer Kazzaz wrote:

Hi Igor,
What do you think ? if I can help you solve this, let me know what I
can do.

Quoted 151 lines

Thanks
Nameer

Quoted 146 lines · Nameer Kazzaz

Hi there,
dmesg output with patched dm1105.c against current v4l-dvb 'modprob dm1105 card=4'

dm1105 0000:05:0f.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
DVB: registering new adapter (dm1105)
dm1105 0000:05:0f.0: MAC dd49b0dc
dm1105 0000:05:0f.0: could not attach frontend
dm1105 0000:05:0f.0: PCI INT A disabled

Thanks
Nameer Kazzaz

Quoted 131 lines · Igor M. Liplianin
Quoted 114 lines · On 20 ?????? 2010 23:20:20 [email protected] wrote:
Quoted 7 lines · Igor

Oh, that is wrong. It is registers addresses, Never touch this.

Let's look on that part of code:

/* GPIO's for LNB power control */
#define DM1105_LNB_MASK 0x00000000 // later in

code write it to

Quoted 3 lines

DM1105_GPIOCTR, all GPIO's as OUT
#define DM1105_LNB_OFF 0x00020000 // later in

code write it to

Quoted 9 lines

DM1105_GPIOVAL, set GPIO17 to HIGH

But you have not to change this.
Right way is to write another entry in cards structure and so on. Better leave it to me.

Regards
Igor

Thanks for all your help, I understand better now. I have moved to code
like that at the bottom. It still doesn't work, but feels a lot closer.

Before I keep playing with values, I want to check I'm on the right track.
Does it look right? Specific questions:
1. I see there is a hw_init function. Should I be using that? I put the
logic into fe_attach because there was already card-specific logic in there. But this feels like hw initialisation.

2. Should I set the control to input or output? I'm assuming input = 1.

3. Would pin 15 be numbered from the left or right - is it 0x4, or 0x2000?

Thanks,

Paul

*** dm1105.c.old 2010-01-13 16:15:00.000000000 +1100
--- dm1105.c 2010-01-21 08:13:14.000000000 +1100
***************
*** 51,56 ****
--- 51,57 ----
#define DM1105_BOARD_DVBWORLD_2002 1
#define DM1105_BOARD_DVBWORLD_2004 2
#define DM1105_BOARD_AXESS_DM05 3
+ #define DM1105_BOARD_UNBRANDED 4

/* ----------------------------------------------- */ /*
***************
*** 171,176 ****
--- 172,181 ----
#define DM05_LNB_13V 0x00020000
#define DM05_LNB_18V 0x00030000

+ /* GPIO's for demod reset for unbranded 195d:1105 */
+ #define UNBRANDED_DEMOD_MASK 0x00008000
+ #define UNBRANDED_DEMOD_RESET 0x00008000
+
static unsigned int card[] = {[0 ... 3] = UNSET }; module_param_array(card, int, NULL, 0444); MODULE_PARM_DESC(card, "card type");
***************
*** 206,211 ****
--- 211,219 ----

        [DM1105_BOARD_AXESS_DM05] = {
                .name           = "Axess/EasyTv DM05",
        },
linux/drivers/media/dvb/dm1105/dm1105.c +3 -0
+       [DM1105_BOARD_UNBRANDED] = {
+               .name           = "Unbranded 195d:1105",
+         },
  };
 
  static const struct dm1105_subid dm1105_subids[] = {

***************
*** 229,234 ****
--- 237,246 ----

                .subvendor = 0x195d,
                .subdevice = 0x1105,
                .card      = DM1105_BOARD_AXESS_DM05,
(quoted diff) +4 -0
+       }, {
+               .subvendor = 0x195d,
+               .subdevice = 0x1105,
+               .card      = DM1105_BOARD_UNBRANDED,
        },
  };

***************
*** 698,703 ****
--- 710,727 ----

                        dm1105dvb->fe->ops.set_voltage =

dm1105dvb_set_voltage;

                break;
(quoted diff) +4 -0
+       case DM1105_BOARD_UNBRANDED:
+                 printk(KERN_ERR "Attaching as board_unbranded\n");
+               outl(UNBRANDED_DEMOD_MASK, dm_io_mem(DM1105_GPIOCTR));
+               outl(UNBRANDED_DEMOD_RESET ,

dm_io_mem(DM1105_GPIOVAL));

(quoted diff) +1 -0
+               dm1105dvb->fe = dvb_attach(

Review

Quoted 10 lines
(quoted diff) +7 -0
+                       si21xx_attach, &serit_config,
+                       &dm1105dvb->i2c_adap);
+                       if (dm1105dvb->fe)
+                               dm1105dvb->fe->ops.set_voltage =
+                                       dm1105dvb_set_voltage;
+
+               break;
        case DM1105_BOARD_DVBWORLD_2002:
        case DM1105_BOARD_AXESS_DM05:
        default:

Some things are missed, like keep GPIO15 high in set_voltage function. Try attached patch against current v4l-dvb tree with modprobe option card=4

    modprobe dm1105 card=4
Quoted 3 lines

Hi Nameer,
You can modify sended by me patch to guess GPIO pin. Simply try all of them, it is only 17. Just replace all appearances DM1105_GPIO(15) with number you want.

Ok I will do that.

Thanks
Nameer

#12 lore raw
Quoted 160 lines · Nameer Kazzaz
Quoted 159 lines · Igor M. Liplianin
Quoted 157 lines · On 2 февраля 2010 17:21:46 Nameer Kazzaz wrote:

Hi Igor,
What do you think ? if I can help you solve this, let me know
what I
can do.

Thanks
Nameer

Quoted 147 lines · Nameer Kazzaz

Hi there,
dmesg output with patched dm1105.c against current v4l-dvb 'modprob dm1105 card=4'

dm1105 0000:05:0f.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
DVB: registering new adapter (dm1105)
dm1105 0000:05:0f.0: MAC dd49b0dc
dm1105 0000:05:0f.0: could not attach frontend
dm1105 0000:05:0f.0: PCI INT A disabled

Thanks
Nameer Kazzaz

Quoted 132 lines · Igor M. Liplianin
Quoted 115 lines · On 20 ?????? 2010 23:20:20 [email protected] wrote:
Quoted 7 lines · Igor

Oh, that is wrong. It is registers addresses, Never touch this.

Let's look on that part of code:

/* GPIO's for LNB power control */
#define DM1105_LNB_MASK 0x00000000 // later in

code write it to

Quoted 3 lines

DM1105_GPIOCTR, all GPIO's as OUT
#define DM1105_LNB_OFF 0x00020000 // later in

code write it to

Quoted 9 lines

DM1105_GPIOVAL, set GPIO17 to HIGH

But you have not to change this.
Right way is to write another entry in cards structure and so on. Better leave it to me.

Regards
Igor

Thanks for all your help, I understand better now. I have moved to code
like that at the bottom. It still doesn't work, but feels a lot closer.

Before I keep playing with values, I want to check I'm on the right track.
Does it look right? Specific questions:
1. I see there is a hw_init function. Should I be using that? I put the
logic into fe_attach because there was already card-specific logic in there. But this feels like hw initialisation.

2. Should I set the control to input or output? I'm assuming input = 1.

3. Would pin 15 be numbered from the left or right - is it 0x4, or 0x2000?

Thanks,

Paul

*** dm1105.c.old 2010-01-13 16:15:00.000000000 +1100
--- dm1105.c 2010-01-21 08:13:14.000000000 +1100
***************
*** 51,56 ****
--- 51,57 ----
#define DM1105_BOARD_DVBWORLD_2002 1
#define DM1105_BOARD_DVBWORLD_2004 2
#define DM1105_BOARD_AXESS_DM05 3
+ #define DM1105_BOARD_UNBRANDED 4

/* ----------------------------------------------- */ /*
***************
*** 171,176 ****
--- 172,181 ----
#define DM05_LNB_13V 0x00020000
#define DM05_LNB_18V 0x00030000

+ /* GPIO's for demod reset for unbranded 195d:1105 */
+ #define UNBRANDED_DEMOD_MASK 0x00008000
+ #define UNBRANDED_DEMOD_RESET 0x00008000
+
static unsigned int card[] = {[0 ... 3] = UNSET }; module_param_array(card, int, NULL, 0444); MODULE_PARM_DESC(card, "card type");
***************
*** 206,211 ****
--- 211,219 ----

        [DM1105_BOARD_AXESS_DM05] = {
                .name           = "Axess/EasyTv DM05",
        },
linux/drivers/media/dvb/dm1105/dm1105.c +3 -0
+       [DM1105_BOARD_UNBRANDED] = {
+               .name           = "Unbranded 195d:1105",
+         },
  };
 
  static const struct dm1105_subid dm1105_subids[] = {

***************
*** 229,234 ****
--- 237,246 ----

                .subvendor = 0x195d,
                .subdevice = 0x1105,
                .card      = DM1105_BOARD_AXESS_DM05,
(quoted diff) +4 -0
+       }, {
+               .subvendor = 0x195d,
+               .subdevice = 0x1105,
+               .card      = DM1105_BOARD_UNBRANDED,
        },
  };

***************
*** 698,703 ****
--- 710,727 ----

                        dm1105dvb->fe->ops.set_voltage =

dm1105dvb_set_voltage;

                break;
(quoted diff) +3 -0
+       case DM1105_BOARD_UNBRANDED:
+                 printk(KERN_ERR "Attaching as board_unbranded\n");
+               outl(UNBRANDED_DEMOD_MASK, 

dm_io_mem(DM1105_GPIOCTR));
+ outl(UNBRANDED_DEMOD_RESET ,
dm_io_mem(DM1105_GPIOVAL));

(quoted diff) +1 -0
+               dm1105dvb->fe = dvb_attach(

Review

Quoted 10 lines
(quoted diff) +7 -0
+                       si21xx_attach, &serit_config,
+                       &dm1105dvb->i2c_adap);
+                       if (dm1105dvb->fe)
+                               dm1105dvb->fe->ops.set_voltage =
+                                       dm1105dvb_set_voltage;
+
+               break;
        case DM1105_BOARD_DVBWORLD_2002:
        case DM1105_BOARD_AXESS_DM05:
        default:

Some things are missed, like keep GPIO15 high in set_voltage function. Try attached patch against current v4l-dvb tree with modprobe option card=4

    modprobe dm1105 card=4
Quoted 7 lines
Quoted 3 lines

Hi Nameer,
You can modify sended by me patch to guess GPIO pin. Simply try all of them, it is only 17. Just replace all appearances DM1105_GPIO(15) with number you want.

Ok I will do that.

Thanks
Nameer

Hi Igor,
I tried all DM1105_GPIO(0) to DM1105_GPIO(17), same error. Any Idea ?

Nameer

#13 lore raw
Quoted 165 lines · On 3 февраля 2010 00:07:36 Nameer Kazzaz wrote:
Quoted 164 lines · Nameer Kazzaz
Quoted 156 lines · Igor M. Liplianin
Quoted 5 lines · On 2 февраля 2010 17:21:46 Nameer Kazzaz wrote:

Hi Igor,
What do you think ? if I can help you solve this, let me know
what I
can do.

Quoted 149 lines

Thanks
Nameer

Quoted 145 lines · Nameer Kazzaz

Hi there,
dmesg output with patched dm1105.c against current v4l-dvb 'modprob dm1105 card=4'

dm1105 0000:05:0f.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
DVB: registering new adapter (dm1105)
dm1105 0000:05:0f.0: MAC dd49b0dc
dm1105 0000:05:0f.0: could not attach frontend
dm1105 0000:05:0f.0: PCI INT A disabled

Thanks
Nameer Kazzaz

Quoted 131 lines · Igor M. Liplianin
Quoted 114 lines · On 20 ?????? 2010 23:20:20 [email protected] wrote:
Quoted 7 lines · Igor

Oh, that is wrong. It is registers addresses, Never touch this.

Let's look on that part of code:

/* GPIO's for LNB power control */
#define DM1105_LNB_MASK 0x00000000 //
later in

code write it to

Quoted 3 lines

DM1105_GPIOCTR, all GPIO's as OUT
#define DM1105_LNB_OFF 0x00020000 //
later in

code write it to

Quoted 8 lines

DM1105_GPIOVAL, set GPIO17 to HIGH

But you have not to change this.
Right way is to write another entry in cards structure and so on. Better leave it to me.

Regards
Igor

Thanks for all your help, I understand better now. I have moved to code
like that at the bottom. It still doesn't work, but feels a lot closer.

Before I keep playing with values, I want to check I'm on the right track.
Does it look right? Specific questions:
1. I see there is a hw_init function. Should I be using that? I put the
logic into fe_attach because there was already card-specific logic in
there. But this feels like hw initialisation.

2. Should I set the control to input or output? I'm assuming input = 1.

3. Would pin 15 be numbered from the left or right - is it 0x4, or 0x2000?

Thanks,

Paul

*** dm1105.c.old 2010-01-13 16:15:00.000000000 +1100
--- dm1105.c 2010-01-21 08:13:14.000000000 +1100
***************
*** 51,56 ****
--- 51,57 ----
#define DM1105_BOARD_DVBWORLD_2002 1
#define DM1105_BOARD_DVBWORLD_2004 2
#define DM1105_BOARD_AXESS_DM05 3
+ #define DM1105_BOARD_UNBRANDED 4

/* ----------------------------------------------- */ /*
***************
*** 171,176 ****
--- 172,181 ----
#define DM05_LNB_13V 0x00020000
#define DM05_LNB_18V 0x00030000

+ /* GPIO's for demod reset for unbranded 195d:1105 */
+ #define UNBRANDED_DEMOD_MASK 0x00008000
+ #define UNBRANDED_DEMOD_RESET 0x00008000
+
static unsigned int card[] = {[0 ... 3] = UNSET }; module_param_array(card, int, NULL, 0444); MODULE_PARM_DESC(card, "card type");
***************
*** 206,211 ****
--- 211,219 ----

        [DM1105_BOARD_AXESS_DM05] = {
                .name           = "Axess/EasyTv DM05",
        },
linux/drivers/media/dvb/dm1105/dm1105.c +3 -0
+       [DM1105_BOARD_UNBRANDED] = {
+               .name           = "Unbranded 195d:1105",
+         },
  };
 
  static const struct dm1105_subid dm1105_subids[] = {

***************
*** 229,234 ****
--- 237,246 ----

                .subvendor = 0x195d,
                .subdevice = 0x1105,
                .card      = DM1105_BOARD_AXESS_DM05,
(quoted diff) +4 -0
+       }, {
+               .subvendor = 0x195d,
+               .subdevice = 0x1105,
+               .card      = DM1105_BOARD_UNBRANDED,
        },
  };

***************
*** 698,703 ****
--- 710,727 ----

                        dm1105dvb->fe->ops.set_voltage =

dm1105dvb_set_voltage;

                break;
(quoted diff) +3 -0
+       case DM1105_BOARD_UNBRANDED:
+                 printk(KERN_ERR "Attaching as board_unbranded\n");
+               outl(UNBRANDED_DEMOD_MASK,

dm_io_mem(DM1105_GPIOCTR));
+ outl(UNBRANDED_DEMOD_RESET ,
dm_io_mem(DM1105_GPIOVAL));

(quoted diff) +1 -0
+               dm1105dvb->fe = dvb_attach(

Review

Quoted 10 lines
(quoted diff) +7 -0
+                       si21xx_attach, &serit_config,
+                       &dm1105dvb->i2c_adap);
+                       if (dm1105dvb->fe)
+                               dm1105dvb->fe->ops.set_voltage =
+                                       dm1105dvb_set_voltage;
+
+               break;
        case DM1105_BOARD_DVBWORLD_2002:
        case DM1105_BOARD_AXESS_DM05:
        default:

Some things are missed, like keep GPIO15 high in set_voltage function.
Try attached patch against current v4l-dvb tree with modprobe option card=4

    modprobe dm1105 card=4
Quoted 4 lines

Hi Nameer,
You can modify sended by me patch to guess GPIO pin. Simply try all of them, it is only 17. Just replace all appearances DM1105_GPIO(15) with number you want.

Ok I will do that.

Quoted 7 lines
Quoted 2 lines

Thanks
Nameer

Hi Igor,

    I tried all DM1105_GPIO(0) to DM1105_GPIO(17), same error. Any Idea ?

Nameer

Hi

I have some ideas, for example, to add to driver i2c_scan function.

Signature · 2 lines
Igor M. Liplianin
Microsoft Windows Free Zone - Linux used for all Computing Tasks
#14 lore raw
Quoted 179 lines · Igor M. Liplianin
Quoted 177 lines · On 3 февраля 2010 00:07:36 Nameer Kazzaz wrote:
Quoted 175 lines · Nameer Kazzaz
Quoted 163 lines · Igor M. Liplianin
Quoted 5 lines · On 2 февраля 2010 17:21:46 Nameer Kazzaz wrote:

Hi Igor,
What do you think ? if I can help you solve this, let me know
what I
can do.

Quoted 156 lines

Thanks
Nameer

Quoted 151 lines · Nameer Kazzaz

Hi there,
dmesg output with patched dm1105.c against current v4l-dvb 'modprob dm1105 card=4'

dm1105 0000:05:0f.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
DVB: registering new adapter (dm1105)
dm1105 0000:05:0f.0: MAC dd49b0dc
dm1105 0000:05:0f.0: could not attach frontend
dm1105 0000:05:0f.0: PCI INT A disabled

Thanks
Nameer Kazzaz

Quoted 136 lines · Igor M. Liplianin
Quoted 118 lines · On 20 ?????? 2010 23:20:20 [email protected] wrote:
Quoted 8 lines · Igor

Oh, that is wrong. It is registers addresses, Never touch this.

Let's look on that part of code:

/* GPIO's for LNB power control */
#define DM1105_LNB_MASK 0x00000000 //
later in

code write it to

Quoted 4 lines

DM1105_GPIOCTR, all GPIO's as OUT
#define DM1105_LNB_OFF 0x00020000 //
later in

code write it to

Quoted 9 lines

DM1105_GPIOVAL, set GPIO17 to HIGH

But you have not to change this.
Right way is to write another entry in cards structure and so on. Better leave it to me.

Regards
Igor

Thanks for all your help, I understand better now. I have moved to code
like that at the bottom. It still doesn't work, but feels a lot closer.

Before I keep playing with values, I want to check I'm on the right track.
Does it look right? Specific questions:
1. I see there is a hw_init function. Should I be using that? I put the
logic into fe_attach because there was already card-specific logic in
there. But this feels like hw initialisation.

2. Should I set the control to input or output? I'm assuming input = 1.

3. Would pin 15 be numbered from the left or right - is it 0x4, or 0x2000?

Thanks,

Paul

*** dm1105.c.old 2010-01-13 16:15:00.000000000 +1100
--- dm1105.c 2010-01-21 08:13:14.000000000 +1100
***************
*** 51,56 ****
--- 51,57 ----
#define DM1105_BOARD_DVBWORLD_2002 1
#define DM1105_BOARD_DVBWORLD_2004 2
#define DM1105_BOARD_AXESS_DM05 3
+ #define DM1105_BOARD_UNBRANDED 4

/* ----------------------------------------------- */ /*
***************
*** 171,176 ****
--- 172,181 ----
#define DM05_LNB_13V 0x00020000
#define DM05_LNB_18V 0x00030000

+ /* GPIO's for demod reset for unbranded 195d:1105 */
+ #define UNBRANDED_DEMOD_MASK 0x00008000
+ #define UNBRANDED_DEMOD_RESET 0x00008000
+
static unsigned int card[] = {[0 ... 3] = UNSET }; module_param_array(card, int, NULL, 0444); MODULE_PARM_DESC(card, "card type");
***************
*** 206,211 ****
--- 211,219 ----

        [DM1105_BOARD_AXESS_DM05] = {
                .name           = "Axess/EasyTv DM05",
        },
(quoted diff) +3 -0
+       [DM1105_BOARD_UNBRANDED] = {
+               .name           = "Unbranded 195d:1105",
+         },
  };
 
  static const struct dm1105_subid dm1105_subids[] = {

***************
*** 229,234 ****
--- 237,246 ----

                .subvendor = 0x195d,
                .subdevice = 0x1105,
                .card      = DM1105_BOARD_AXESS_DM05,
(quoted diff) +4 -0
+       }, {
+               .subvendor = 0x195d,
+               .subdevice = 0x1105,
+               .card      = DM1105_BOARD_UNBRANDED,
        },
  };

***************
*** 698,703 ****
--- 710,727 ----

                        dm1105dvb->fe->ops.set_voltage =

dm1105dvb_set_voltage;

                break;
(quoted diff) +3 -0
+       case DM1105_BOARD_UNBRANDED:
+                 printk(KERN_ERR "Attaching as board_unbranded\n");
+               outl(UNBRANDED_DEMOD_MASK,

dm_io_mem(DM1105_GPIOCTR));
+ outl(UNBRANDED_DEMOD_RESET ,
dm_io_mem(DM1105_GPIOVAL));

(quoted diff) +1 -0
+               dm1105dvb->fe = dvb_attach(

Review

Quoted 10 lines
(quoted diff) +7 -0
+                       si21xx_attach, &serit_config,
+                       &dm1105dvb->i2c_adap);
+                       if (dm1105dvb->fe)
+                               dm1105dvb->fe->ops.set_voltage =
+                                       dm1105dvb_set_voltage;
+
+               break;
        case DM1105_BOARD_DVBWORLD_2002:
        case DM1105_BOARD_AXESS_DM05:
        default:

Some things are missed, like keep GPIO15 high in set_voltage function.
Try attached patch against current v4l-dvb tree with modprobe option card=4

    modprobe dm1105 card=4
Quoted 5 lines

Hi Nameer,
You can modify sended by me patch to guess GPIO pin. Simply try all of them, it is only 17. Just replace all appearances DM1105_GPIO(15) with number you want.

Ok I will do that.

Thanks
Nameer

Quoted 9 lines
Quoted 5 lines

Hi Igor,

    I tried all DM1105_GPIO(0) to DM1105_GPIO(17), same error. Any Idea ?

Nameer

Hi

I have some ideas, for example, to add to driver i2c_scan function.

Hi Igor,
Ok so if you need any more info from the pci board and testing any
patches please let me know. And thanks for your help on this.

Nameer