diff options
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-mpeg.c | 13 | ||||
-rw-r--r-- | v4l/ChangeLog | 6 |
2 files changed, 14 insertions, 5 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-mpeg.c b/linux/drivers/media/video/cx88/cx88-mpeg.c index 1fedfd16b..35a16616b 100644 --- a/linux/drivers/media/video/cx88/cx88-mpeg.c +++ b/linux/drivers/media/video/cx88/cx88-mpeg.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-mpeg.c,v 1.33 2005/07/27 01:45:19 mkrufky Exp $ + * $Id: cx88-mpeg.c,v 1.34 2005/07/27 02:04:28 mkrufky Exp $ * * Support for the mpeg transport stream transfers * PCI function #2 of the cx2388x. @@ -75,12 +75,15 @@ static int cx8802_start_dma(struct cx8802_dev *dev, udelay(100); cx_write(MO_PINMUX_IO, 0x00); cx_write(TS_HW_SOP_CNTRL,0x47<<16|188<<4|0x01); - if ((core->board == CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q) || - (core->board == CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T) || - (core->board == CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD)) { + switch (core->board) { + case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q: + case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T: + case CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD: cx_write(TS_SOP_STAT, 1<<13); - } else { + break; + default: cx_write(TS_SOP_STAT, 0x00); + break; } cx_write(TS_GEN_CNTRL, dev->ts_gen_cntrl); udelay(100); diff --git a/v4l/ChangeLog b/v4l/ChangeLog index ea4b49f7b..b5156f1c7 100644 --- a/v4l/ChangeLog +++ b/v4l/ChangeLog @@ -1,3 +1,9 @@ +2005-07-27 02:01 mkrufky + * cx88-mpeg.c: + - convert ugly if-else statement to switch-case. + + Signed-off-by: Michael Krufky <mkrufky@m1k.net> + 2005-07-27 01:41 mkrufky * cx88-mpeg.c: - update for FusionHDTV 5 Gold. |