Commit cd65d24e authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] xirlink_cit: comment unreachable code

drivers/media/usb/gspca/xirlink_cit.c:1776 cit_start_model2() info: ignoring unreachable code.
drivers/media/usb/gspca/xirlink_cit.c:1858 cit_start_model2() info: ignoring unreachable code.
drivers/media/usb/gspca/xirlink_cit.c:1910 cit_start_model2() info: ignoring unreachable code.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 48902bc7
...@@ -1772,7 +1772,8 @@ static int cit_start_model2(struct gspca_dev *gspca_dev) ...@@ -1772,7 +1772,8 @@ static int cit_start_model2(struct gspca_dev *gspca_dev)
cit_write_reg(gspca_dev, 0x0070, 0x0119); /* All except 176x144 */ cit_write_reg(gspca_dev, 0x0070, 0x0119); /* All except 176x144 */
sd->sof_len = 2; sd->sof_len = 2;
break; break;
/* case VIDEOSIZE_352x240: */ #if 0
case VIDEOSIZE_352x240:
cit_write_reg(gspca_dev, 0x002c, 0x0103); /* All except 320x240 */ cit_write_reg(gspca_dev, 0x002c, 0x0103); /* All except 320x240 */
cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */ cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */
cit_write_reg(gspca_dev, 0x001e, 0x0105); /* 320x240, 352x240 */ cit_write_reg(gspca_dev, 0x001e, 0x0105); /* 320x240, 352x240 */
...@@ -1780,6 +1781,7 @@ static int cit_start_model2(struct gspca_dev *gspca_dev) ...@@ -1780,6 +1781,7 @@ static int cit_start_model2(struct gspca_dev *gspca_dev)
cit_write_reg(gspca_dev, 0x0070, 0x0119); /* All except 176x144 */ cit_write_reg(gspca_dev, 0x0070, 0x0119); /* All except 176x144 */
sd->sof_len = 2; sd->sof_len = 2;
break; break;
#endif
case 352: /* 352x288 */ case 352: /* 352x288 */
cit_write_reg(gspca_dev, 0x002c, 0x0103); /* All except 320x240 */ cit_write_reg(gspca_dev, 0x002c, 0x0103); /* All except 320x240 */
cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */ cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */
...@@ -1853,13 +1855,15 @@ static int cit_start_model2(struct gspca_dev *gspca_dev) ...@@ -1853,13 +1855,15 @@ static int cit_start_model2(struct gspca_dev *gspca_dev)
cit_model2_Packet1(gspca_dev, 0x0018, 0x0044); /* Another hardware setting */ cit_model2_Packet1(gspca_dev, 0x0018, 0x0044); /* Another hardware setting */
clock_div = 8; clock_div = 8;
break; break;
/* case VIDEOSIZE_352x240: */ #if 0
case VIDEOSIZE_352x240:
/* This mode doesn't work as Windows programs it; changed to work */ /* This mode doesn't work as Windows programs it; changed to work */
cit_model2_Packet1(gspca_dev, 0x0014, 0x0009); /* Windows sets this to 8 */ cit_model2_Packet1(gspca_dev, 0x0014, 0x0009); /* Windows sets this to 8 */
cit_model2_Packet1(gspca_dev, 0x0016, 0x0003); /* Horizontal shift */ cit_model2_Packet1(gspca_dev, 0x0016, 0x0003); /* Horizontal shift */
cit_model2_Packet1(gspca_dev, 0x0018, 0x0044); /* Windows sets this to 0x0045 */ cit_model2_Packet1(gspca_dev, 0x0018, 0x0044); /* Windows sets this to 0x0045 */
clock_div = 10; clock_div = 10;
break; break;
#endif
case 352: /* 352x288 */ case 352: /* 352x288 */
cit_model2_Packet1(gspca_dev, 0x0014, 0x0003); cit_model2_Packet1(gspca_dev, 0x0014, 0x0003);
cit_model2_Packet1(gspca_dev, 0x0016, 0x0002); /* Horizontal shift */ cit_model2_Packet1(gspca_dev, 0x0016, 0x0002); /* Horizontal shift */
...@@ -1906,9 +1910,11 @@ static int cit_start_model2(struct gspca_dev *gspca_dev) ...@@ -1906,9 +1910,11 @@ static int cit_start_model2(struct gspca_dev *gspca_dev)
case 320: /* 320x240 */ case 320: /* 320x240 */
cit_model2_Packet1(gspca_dev, 0x0026, 0x0044); cit_model2_Packet1(gspca_dev, 0x0026, 0x0044);
break; break;
/* case VIDEOSIZE_352x240: */ #if 0
case VIDEOSIZE_352x240:
cit_model2_Packet1(gspca_dev, 0x0026, 0x0046); cit_model2_Packet1(gspca_dev, 0x0026, 0x0046);
break; break;
#endif
case 352: /* 352x288 */ case 352: /* 352x288 */
cit_model2_Packet1(gspca_dev, 0x0026, 0x0048); cit_model2_Packet1(gspca_dev, 0x0026, 0x0048);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment