Skip to contentSkip to conversation

[0904_13] Siano: move DVB_API and remove redundant code

PATCH Uri Shkolnik 2 participants 2 messages Apr 20, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw
Quoted 160 lines · Mauro Carvalho Chehab

From: Mauro Carvalho Chehab <[email protected]>
Subject: Re: [PATCH] [0904_13] Siano: move DVB_API and remove redundant code
To: "Uri Shkolnik" <[email protected]>
Cc: "LinuxML" <[email protected]>
Date: Monday, April 20, 2009, 9:19 PM
On Mon, 20 Apr 2009 11:07:57 -0700
(PDT)
Uri Shkolnik <[email protected]>

Quoted 4 lines · wrote:

--- On Mon, 4/20/09, Mauro Carvalho Chehab <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines

From: Mauro Carvalho Chehab <[email protected]>
Subject: Re: [PATCH] [0904_13] Siano: move

DVB_API and remove redundant code

Quoted 9 lines
Quoted 9 lines

To: "Uri Shkolnik" <[email protected]>
Cc: "LinuxML" <[email protected]>
Date: Monday, April 20, 2009, 9:02 PM
On Sun, 5 Apr 2009 03:31:32 -0700
(PDT)
Uri Shkolnik <[email protected]>

Quoted 1 line · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

# HG changeset patch
# User Uri Shkolnik <[email protected]>
# Date 1238755204 -10800
# Node ID

f65a29f0f9a66f82a91525ae0085a15f00ac91c2

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

# Parent

897669fdeb3be75a2bde978557b5398a4a7d8914

Quoted 1 line

[PATCH] [0904_13] Siano: move DVB_API and

remove

Quoted 5 lines
Quoted 5 lines

redundant code

Quoted 4 lines

From: Uri Shkolnik <[email protected]>

The DVB-API related information has been

moved from

Quoted 2 lines
Quoted 2 lines

the core header

Quoted 1 line

to the smsdvb, and the redundant code has

been removed

Quoted 4 lines
Quoted 4 lines

from the

Quoted 3 lines

core header.

This code has been moved since it is used

only by

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the smsdvb client component.

This patch depends on the previous patches that I

asked

Quoted 2 lines
Quoted 2 lines

some changes. Please
re-submit it together with the other patches that

weren't

Quoted 2 lines
Quoted 2 lines

committed. It is
probably not much valuable to commit the later

patches, so

Quoted 5 lines
Quoted 5 lines

I'll stop analysing
the code here.

The patch itself looks sane to my eyes.

Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines

Priority: normal

diff -r 897669fdeb3b -r f65a29f0f9a6

linux/drivers/media/dvb/siano/smscoreapi.h

Quoted 1 line

---

a/linux/drivers/media/dvb/siano/smscoreapi.h

Quoted 3 lines
Quoted 3 lines

Fri Apr 03 13:31:13 2009 +0300

Quoted 1 line

+++

b/linux/drivers/media/dvb/siano/smscoreapi.h

Quoted 2 lines
Quoted 2 lines

Fri Apr 03 13:40:04 2009 +0300

Review along with this

Quoted 1 line
(quoted diff) +0 -0
@@ -36,15 +36,6 @@ along with this

program.  If

Quoted 18 lines
Quoted 18 lines

not, see <h

Quoted 12 lines
(quoted diff) +0 -0
   #include <asm/page.h>


  /* #include "smsir.h" */

(quoted diff) +0 -9
-
-#define SMS_DVB3_SUBSYS
-#ifdef SMS_DVB3_SUBSYS
-#include "dmxdev.h"
-#include "dvbdev.h"
-#include "dvb_demux.h"
-#include "dvb_frontend.h"
-
-#endif
Quoted 4 lines


  #define kmutex_init(_p_) mutex_init(_p_)
  #define kmutex_lock(_p_) mutex_lock(_p_)
diff -r 897669fdeb3b -r f65a29f0f9a6

linux/drivers/media/dvb/siano/smsdvb.c

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

---

a/linux/drivers/media/dvb/siano/smsdvb.c
Fri Apr 03 13:31:13 2009 +0300

Quoted 1 line

+++

b/linux/drivers/media/dvb/siano/smsdvb.c
Fri Apr 03 13:40:04 2009 +0300

Review along with this

Quoted 1 line
(quoted diff) +0 -0
@@ -22,6 +22,11 @@ along with this

program.  If

Quoted 23 lines
Quoted 23 lines

not, see <h

Quoted 12 lines
(quoted diff) +5 -0
   #include <linux/module.h>
   #include <linux/init.h>
   #include <asm/byteorder.h>
+
+#include "dmxdev.h"
+#include "dvbdev.h"
+#include "dvb_demux.h"
+#include "dvb_frontend.h"


  #include "smscoreapi.h"
  /*#include "smsendian.h"*/

Review struct smsdvb_client_t { · line 58

Quoted 2 lines
(quoted diff) +0 -0
@@ -52,7 +57,7 @@ struct smsdvb_client_t {
       fe_status_t fe_status;
       int fe_ber, fe_snr, fe_unc,

fe_signal_strength;

Quoted 2 lines


-    struct completion tune_done,

stat_done;

Quoted 3 lines

+    struct completion tune_done;

      /* todo: save freq/band

instead whole struct */

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

      struct

dvb_frontend_parameters fe_params;

Quoted 6 lines


--
To unsubscribe from this list: send the

line

Quoted 7 lines
Quoted 7 lines

"unsubscribe linux-media" in

Quoted 2 lines

the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Quoted 7 lines
Quoted 3 lines

Cheers,
Mauro

OK

I'll submit patches to fix the various rejects on the

coming Wednesday (I'm ooo tomorrow).

Quoted 2 lines

BTW - is it possible for me to clone the current tree

you currently have? (after applying the approved patches), it will help me for future patches.

Quoted 8 lines

Sure. The better is to apply your patches over the fresh clone. You can use
the ./hgimport script to help you to pick the patches from your old tree.

Cheers,
Mauro

Regarding the ./hgimport script - how do I tell that script to refer to your tree and not to any other hg tree? Isn't the default look-up is the dvb-api trunk?

Regards,

Uri

#1 lore raw
Quoted 170 lines · On Mon, 20 Apr 2009 11:24:11 -0700 (PDT) Uri Shkolnik <[email protected]> wrote:
Quoted 165 lines · Mauro Carvalho Chehab

From: Mauro Carvalho Chehab <[email protected]>
Subject: Re: [PATCH] [0904_13] Siano: move DVB_API and remove redundant code
To: "Uri Shkolnik" <[email protected]>
Cc: "LinuxML" <[email protected]>
Date: Monday, April 20, 2009, 9:19 PM
On Mon, 20 Apr 2009 11:07:57 -0700
(PDT)
Uri Shkolnik <[email protected]>

Quoted 4 lines · wrote:

--- On Mon, 4/20/09, Mauro Carvalho Chehab <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines

From: Mauro Carvalho Chehab <[email protected]>
Subject: Re: [PATCH] [0904_13] Siano: move

DVB_API and remove redundant code

Quoted 9 lines
Quoted 9 lines

To: "Uri Shkolnik" <[email protected]>
Cc: "LinuxML" <[email protected]>
Date: Monday, April 20, 2009, 9:02 PM
On Sun, 5 Apr 2009 03:31:32 -0700
(PDT)
Uri Shkolnik <[email protected]>

Quoted 1 line · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

# HG changeset patch
# User Uri Shkolnik <[email protected]>
# Date 1238755204 -10800
# Node ID

f65a29f0f9a66f82a91525ae0085a15f00ac91c2

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

# Parent

897669fdeb3be75a2bde978557b5398a4a7d8914

Quoted 1 line

[PATCH] [0904_13] Siano: move DVB_API and

remove

Quoted 5 lines
Quoted 5 lines

redundant code

Quoted 4 lines

From: Uri Shkolnik <[email protected]>

The DVB-API related information has been

moved from

Quoted 2 lines
Quoted 2 lines

the core header

Quoted 1 line

to the smsdvb, and the redundant code has

been removed

Quoted 4 lines
Quoted 4 lines

from the

Quoted 3 lines

core header.

This code has been moved since it is used

only by

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

the smsdvb client component.

This patch depends on the previous patches that I

asked

Quoted 2 lines
Quoted 2 lines

some changes. Please
re-submit it together with the other patches that

weren't

Quoted 2 lines
Quoted 2 lines

committed. It is
probably not much valuable to commit the later

patches, so

Quoted 5 lines
Quoted 5 lines

I'll stop analysing
the code here.

The patch itself looks sane to my eyes.

Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines

Priority: normal

diff -r 897669fdeb3b -r f65a29f0f9a6

linux/drivers/media/dvb/siano/smscoreapi.h

Quoted 1 line

---

a/linux/drivers/media/dvb/siano/smscoreapi.h

Quoted 3 lines
Quoted 3 lines

Fri Apr 03 13:31:13 2009 +0300

Quoted 1 line

+++

b/linux/drivers/media/dvb/siano/smscoreapi.h

Quoted 2 lines
Quoted 2 lines

Fri Apr 03 13:40:04 2009 +0300

Review along with this

Quoted 1 line
(quoted diff) +0 -0
@@ -36,15 +36,6 @@ along with this

program.  If

Quoted 18 lines
Quoted 18 lines

not, see <h

Quoted 12 lines
(quoted diff) +0 -0
   #include <asm/page.h>


  /* #include "smsir.h" */

(quoted diff) +0 -9
-
-#define SMS_DVB3_SUBSYS
-#ifdef SMS_DVB3_SUBSYS
-#include "dmxdev.h"
-#include "dvbdev.h"
-#include "dvb_demux.h"
-#include "dvb_frontend.h"
-
-#endif
Quoted 4 lines


  #define kmutex_init(_p_) mutex_init(_p_)
  #define kmutex_lock(_p_) mutex_lock(_p_)
diff -r 897669fdeb3b -r f65a29f0f9a6

linux/drivers/media/dvb/siano/smsdvb.c

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

---

a/linux/drivers/media/dvb/siano/smsdvb.c
Fri Apr 03 13:31:13 2009 +0300

Quoted 1 line

+++

b/linux/drivers/media/dvb/siano/smsdvb.c
Fri Apr 03 13:40:04 2009 +0300

Review along with this

Quoted 1 line
(quoted diff) +0 -0
@@ -22,6 +22,11 @@ along with this

program.  If

Quoted 23 lines
Quoted 23 lines

not, see <h

Quoted 12 lines
(quoted diff) +5 -0
   #include <linux/module.h>
   #include <linux/init.h>
   #include <asm/byteorder.h>
+
+#include "dmxdev.h"
+#include "dvbdev.h"
+#include "dvb_demux.h"
+#include "dvb_frontend.h"


  #include "smscoreapi.h"
  /*#include "smsendian.h"*/

Review struct smsdvb_client_t { · line 58

Quoted 2 lines
(quoted diff) +0 -0
@@ -52,7 +57,7 @@ struct smsdvb_client_t {
       fe_status_t fe_status;
       int fe_ber, fe_snr, fe_unc,

fe_signal_strength;

Quoted 2 lines


-    struct completion tune_done,

stat_done;

Quoted 3 lines

+    struct completion tune_done;

      /* todo: save freq/band

instead whole struct */

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

      struct

dvb_frontend_parameters fe_params;

Quoted 6 lines


--
To unsubscribe from this list: send the

line

Quoted 7 lines
Quoted 7 lines

"unsubscribe linux-media" in

Quoted 2 lines

the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Quoted 7 lines
Quoted 3 lines

Cheers,
Mauro

OK

I'll submit patches to fix the various rejects on the

coming Wednesday (I'm ooo tomorrow).

Quoted 2 lines

BTW - is it possible for me to clone the current tree

you currently have? (after applying the approved patches), it will help me for future patches.

Sure. The better is to apply your patches over the fresh clone. You can use
the ./hgimport script to help you to pick the patches from your old tree.

Quoted 5 lines
Quoted 3 lines

Cheers,
Mauro

Regarding the ./hgimport script - how do I tell that script to refer to your tree and not to any other hg tree? Isn't the default look-up is the dvb-api trunk?

It has no defaults. You can point it to a remote URL or to a local path.

Quoted 8 lines

Regards,

Uri

Cheers,
Mauro