aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ivtv
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/pci/ivtv')
-rw-r--r--drivers/media/pci/ivtv/ivtv-driver.c4
-rw-r--r--drivers/media/pci/ivtv/ivtv-firmware.c4
-rw-r--r--drivers/media/pci/ivtv/ivtv-ioctl.c18
-rw-r--r--drivers/media/pci/ivtv/ivtv-ioctl.h4
4 files changed, 15 insertions, 15 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-driver.c b/drivers/media/pci/ivtv/ivtv-driver.c
index 2928e7287da8..07b8460953b6 100644
--- a/drivers/media/pci/ivtv/ivtv-driver.c
+++ b/drivers/media/pci/ivtv/ivtv-driver.c
@@ -1387,7 +1387,7 @@ int ivtv_init_on_first_open(struct ivtv *itv)
1387 if (!itv->has_cx23415) 1387 if (!itv->has_cx23415)
1388 write_reg_sync(0x03, IVTV_REG_DMACONTROL); 1388 write_reg_sync(0x03, IVTV_REG_DMACONTROL);
1389 1389
1390 ivtv_s_std_enc(itv, &itv->tuner_std); 1390 ivtv_s_std_enc(itv, itv->tuner_std);
1391 1391
1392 /* Default interrupts enabled. For the PVR350 this includes the 1392 /* Default interrupts enabled. For the PVR350 this includes the
1393 decoder VSYNC interrupt, which is always on. It is not only used 1393 decoder VSYNC interrupt, which is always on. It is not only used
@@ -1397,7 +1397,7 @@ int ivtv_init_on_first_open(struct ivtv *itv)
1397 if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) { 1397 if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) {
1398 ivtv_clear_irq_mask(itv, IVTV_IRQ_MASK_INIT | IVTV_IRQ_DEC_VSYNC); 1398 ivtv_clear_irq_mask(itv, IVTV_IRQ_MASK_INIT | IVTV_IRQ_DEC_VSYNC);
1399 ivtv_set_osd_alpha(itv); 1399 ivtv_set_osd_alpha(itv);
1400 ivtv_s_std_dec(itv, &itv->tuner_std); 1400 ivtv_s_std_dec(itv, itv->tuner_std);
1401 } else { 1401 } else {
1402 ivtv_clear_irq_mask(itv, IVTV_IRQ_MASK_INIT); 1402 ivtv_clear_irq_mask(itv, IVTV_IRQ_MASK_INIT);
1403 } 1403 }
diff --git a/drivers/media/pci/ivtv/ivtv-firmware.c b/drivers/media/pci/ivtv/ivtv-firmware.c
index 68387d4369d6..ed73edd2bcd3 100644
--- a/drivers/media/pci/ivtv/ivtv-firmware.c
+++ b/drivers/media/pci/ivtv/ivtv-firmware.c
@@ -302,7 +302,7 @@ static int ivtv_firmware_restart(struct ivtv *itv)
302 /* Restore encoder video standard */ 302 /* Restore encoder video standard */
303 std = itv->std; 303 std = itv->std;
304 itv->std = 0; 304 itv->std = 0;
305 ivtv_s_std_enc(itv, &std); 305 ivtv_s_std_enc(itv, std);
306 306
307 if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) { 307 if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) {
308 ivtv_init_mpeg_decoder(itv); 308 ivtv_init_mpeg_decoder(itv);
@@ -310,7 +310,7 @@ static int ivtv_firmware_restart(struct ivtv *itv)
310 /* Restore decoder video standard */ 310 /* Restore decoder video standard */
311 std = itv->std_out; 311 std = itv->std_out;
312 itv->std_out = 0; 312 itv->std_out = 0;
313 ivtv_s_std_dec(itv, &std); 313 ivtv_s_std_dec(itv, std);
314 314
315 /* Restore framebuffer if active */ 315 /* Restore framebuffer if active */
316 if (itv->ivtvfb_restore) 316 if (itv->ivtvfb_restore)
diff --git a/drivers/media/pci/ivtv/ivtv-ioctl.c b/drivers/media/pci/ivtv/ivtv-ioctl.c
index 852f11e0d636..080f179070a6 100644
--- a/drivers/media/pci/ivtv/ivtv-ioctl.c
+++ b/drivers/media/pci/ivtv/ivtv-ioctl.c
@@ -1103,10 +1103,10 @@ static int ivtv_g_std(struct file *file, void *fh, v4l2_std_id *std)
1103 return 0; 1103 return 0;
1104} 1104}
1105 1105
1106void ivtv_s_std_enc(struct ivtv *itv, v4l2_std_id *std) 1106void ivtv_s_std_enc(struct ivtv *itv, v4l2_std_id std)
1107{ 1107{
1108 itv->std = *std; 1108 itv->std = std;
1109 itv->is_60hz = (*std & V4L2_STD_525_60) ? 1 : 0; 1109 itv->is_60hz = (std & V4L2_STD_525_60) ? 1 : 0;
1110 itv->is_50hz = !itv->is_60hz; 1110 itv->is_50hz = !itv->is_60hz;
1111 cx2341x_handler_set_50hz(&itv->cxhdl, itv->is_50hz); 1111 cx2341x_handler_set_50hz(&itv->cxhdl, itv->is_50hz);
1112 itv->cxhdl.width = 720; 1112 itv->cxhdl.width = 720;
@@ -1122,15 +1122,15 @@ void ivtv_s_std_enc(struct ivtv *itv, v4l2_std_id *std)
1122 ivtv_call_all(itv, core, s_std, itv->std); 1122 ivtv_call_all(itv, core, s_std, itv->std);
1123} 1123}
1124 1124
1125void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id *std) 1125void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id std)
1126{ 1126{
1127 struct yuv_playback_info *yi = &itv->yuv_info; 1127 struct yuv_playback_info *yi = &itv->yuv_info;
1128 DEFINE_WAIT(wait); 1128 DEFINE_WAIT(wait);
1129 int f; 1129 int f;
1130 1130
1131 /* set display standard */ 1131 /* set display standard */
1132 itv->std_out = *std; 1132 itv->std_out = std;
1133 itv->is_out_60hz = (*std & V4L2_STD_525_60) ? 1 : 0; 1133 itv->is_out_60hz = (std & V4L2_STD_525_60) ? 1 : 0;
1134 itv->is_out_50hz = !itv->is_out_60hz; 1134 itv->is_out_50hz = !itv->is_out_60hz;
1135 ivtv_call_all(itv, video, s_std_output, itv->std_out); 1135 ivtv_call_all(itv, video, s_std_output, itv->std_out);
1136 1136
@@ -1168,14 +1168,14 @@ void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id *std)
1168 } 1168 }
1169} 1169}
1170 1170
1171static int ivtv_s_std(struct file *file, void *fh, v4l2_std_id *std) 1171static int ivtv_s_std(struct file *file, void *fh, v4l2_std_id std)
1172{ 1172{
1173 struct ivtv *itv = fh2id(fh)->itv; 1173 struct ivtv *itv = fh2id(fh)->itv;
1174 1174
1175 if ((*std & V4L2_STD_ALL) == 0) 1175 if ((std & V4L2_STD_ALL) == 0)
1176 return -EINVAL; 1176 return -EINVAL;
1177 1177
1178 if (*std == itv->std) 1178 if (std == itv->std)
1179 return 0; 1179 return 0;
1180 1180
1181 if (test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags) || 1181 if (test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags) ||
diff --git a/drivers/media/pci/ivtv/ivtv-ioctl.h b/drivers/media/pci/ivtv/ivtv-ioctl.h
index 34c6bc132ebd..75c397756116 100644
--- a/drivers/media/pci/ivtv/ivtv-ioctl.h
+++ b/drivers/media/pci/ivtv/ivtv-ioctl.h
@@ -27,8 +27,8 @@ u16 ivtv_get_service_set(struct v4l2_sliced_vbi_format *fmt);
27void ivtv_set_osd_alpha(struct ivtv *itv); 27void ivtv_set_osd_alpha(struct ivtv *itv);
28int ivtv_set_speed(struct ivtv *itv, int speed); 28int ivtv_set_speed(struct ivtv *itv, int speed);
29void ivtv_set_funcs(struct video_device *vdev); 29void ivtv_set_funcs(struct video_device *vdev);
30void ivtv_s_std_enc(struct ivtv *itv, v4l2_std_id *std); 30void ivtv_s_std_enc(struct ivtv *itv, v4l2_std_id std);
31void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id *std); 31void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id std);
32int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf); 32int ivtv_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
33int ivtv_s_input(struct file *file, void *fh, unsigned int inp); 33int ivtv_s_input(struct file *file, void *fh, unsigned int inp);
34 34