Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=661c7e44c5cc2828c7acb00cb71d985e129e3641
Commit:     661c7e44c5cc2828c7acb00cb71d985e129e3641
Parent:     bfde287c2f8f0fe4e50e0eb136e4dca6b0ed84dc
Author:     Steven Toth <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 6 16:07:49 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 22:14:28 2007 -0300

    V4L/DVB (6192): Ensure start_dma() is capable of starting dma on port VIDB
    
    start_dma() would fail to start dma if a device used VIDB (portb).
    
    Signed-off-by: Steven Toth <[EMAIL PROTECTED]>
    Reviewed-by: Michael Krufky <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/cx23885/cx23885-core.c |    9 ++++++---
 drivers/media/video/cx23885/cx23885.h      |   10 ++++++----
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/drivers/media/video/cx23885/cx23885-core.c 
b/drivers/media/video/cx23885/cx23885-core.c
index f5b73c4..907ea4c 100644
--- a/drivers/media/video/cx23885/cx23885-core.c
+++ b/drivers/media/video/cx23885/cx23885-core.c
@@ -1015,9 +1015,12 @@ static int cx23885_start_dma(struct cx23885_tsport *port,
        /* write TS length to chip */
        cx_write(port->reg_lngth, buf->vb.width);
 
-       if (!(cx23885_boards[dev->board].portc & CX23885_MPEG_DVB)) {
-               printk( "%s() Failed. Unsupported value in .portc (0x%08x)\n",
-                       __FUNCTION__, cx23885_boards[dev->board].portc );
+       if ( (!(cx23885_boards[dev->board].portb & CX23885_MPEG_DVB)) &&
+               (!(cx23885_boards[dev->board].portc & CX23885_MPEG_DVB)) ) {
+               printk( "%s() Failed. Unsupported value in .portb/c 
(0x%08x)/(0x%08x)\n",
+                       __FUNCTION__,
+                       cx23885_boards[dev->board].portb,
+                       cx23885_boards[dev->board].portc );
                return -EINVAL;
        }
 
diff --git a/drivers/media/video/cx23885/cx23885.h 
b/drivers/media/video/cx23885/cx23885.h
index c0f4e43..e44698a 100644
--- a/drivers/media/video/cx23885/cx23885.h
+++ b/drivers/media/video/cx23885/cx23885.h
@@ -86,12 +86,14 @@ struct cx23885_input {
        u32             gpio0, gpio1, gpio2, gpio3;
 };
 
+typedef enum {
+       CX23885_MPEG_UNDEFINED = 0,
+       CX23885_MPEG_DVB
+} port_t;
+
 struct cx23885_board {
        char                    *name;
-       enum {
-               CX23885_MPEG_UNDEFINED = 0,
-               CX23885_MPEG_DVB
-       } portc;
+       port_t                  portb, portc;
        struct cx23885_input    input[MAX_CX23885_INPUT];
 };
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to