Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] v4l: subdev: Move [gs]_std operation to video ops

The g_std and s_std operations are video-related, move them to the video
ops where they belong.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Laurent Pinchart and committed by
Mauro Carvalho Chehab
8774bed9 85ada737

+107 -91
+1 -1
drivers/media/i2c/adv7180.c
··· 461 461 } 462 462 463 463 static const struct v4l2_subdev_video_ops adv7180_video_ops = { 464 + .s_std = adv7180_s_std, 464 465 .querystd = adv7180_querystd, 465 466 .g_input_status = adv7180_g_input_status, 466 467 .s_routing = adv7180_s_routing, ··· 473 472 }; 474 473 475 474 static const struct v4l2_subdev_core_ops adv7180_core_ops = { 476 - .s_std = adv7180_s_std, 477 475 .s_power = adv7180_s_power, 478 476 }; 479 477
+2 -2
drivers/media/i2c/adv7183.c
··· 501 501 502 502 static const struct v4l2_subdev_core_ops adv7183_core_ops = { 503 503 .log_status = adv7183_log_status, 504 - .g_std = adv7183_g_std, 505 - .s_std = adv7183_s_std, 506 504 .reset = adv7183_reset, 507 505 #ifdef CONFIG_VIDEO_ADV_DEBUG 508 506 .g_register = adv7183_g_register, ··· 509 511 }; 510 512 511 513 static const struct v4l2_subdev_video_ops adv7183_video_ops = { 514 + .g_std = adv7183_g_std, 515 + .s_std = adv7183_s_std, 512 516 .s_routing = adv7183_s_routing, 513 517 .querystd = adv7183_querystd, 514 518 .g_input_status = adv7183_g_input_status,
+2 -2
drivers/media/i2c/adv7842.c
··· 2873 2873 2874 2874 static const struct v4l2_subdev_core_ops adv7842_core_ops = { 2875 2875 .log_status = adv7842_log_status, 2876 - .g_std = adv7842_g_std, 2877 - .s_std = adv7842_s_std, 2878 2876 .ioctl = adv7842_ioctl, 2879 2877 .interrupt_service_routine = adv7842_isr, 2880 2878 #ifdef CONFIG_VIDEO_ADV_DEBUG ··· 2882 2884 }; 2883 2885 2884 2886 static const struct v4l2_subdev_video_ops adv7842_video_ops = { 2887 + .g_std = adv7842_g_std, 2888 + .s_std = adv7842_s_std, 2885 2889 .s_routing = adv7842_s_routing, 2886 2890 .querystd = adv7842_querystd, 2887 2891 .g_input_status = adv7842_g_input_status,
+1 -1
drivers/media/i2c/bt819.c
··· 387 387 .s_ctrl = v4l2_subdev_s_ctrl, 388 388 .queryctrl = v4l2_subdev_queryctrl, 389 389 .querymenu = v4l2_subdev_querymenu, 390 - .s_std = bt819_s_std, 391 390 }; 392 391 393 392 static const struct v4l2_subdev_video_ops bt819_video_ops = { 393 + .s_std = bt819_s_std, 394 394 .s_routing = bt819_s_routing, 395 395 .s_stream = bt819_s_stream, 396 396 .querystd = bt819_querystd,
+2 -2
drivers/media/i2c/cx25840/cx25840-core.c
··· 5041 5041 .g_ext_ctrls = v4l2_subdev_g_ext_ctrls, 5042 5042 .queryctrl = v4l2_subdev_queryctrl, 5043 5043 .querymenu = v4l2_subdev_querymenu, 5044 - .s_std = cx25840_s_std, 5045 - .g_std = cx25840_g_std, 5046 5044 .reset = cx25840_reset, 5047 5045 .load_fw = cx25840_load_fw, 5048 5046 .s_io_pin_config = common_s_io_pin_config, ··· 5065 5067 }; 5066 5068 5067 5069 static const struct v4l2_subdev_video_ops cx25840_video_ops = { 5070 + .s_std = cx25840_s_std, 5071 + .g_std = cx25840_g_std, 5068 5072 .s_routing = cx25840_s_video_routing, 5069 5073 .s_mbus_fmt = cx25840_s_mbus_fmt, 5070 5074 .s_stream = cx25840_s_stream,
+1 -5
drivers/media/i2c/ks0127.c
··· 648 648 649 649 /* ----------------------------------------------------------------------- */ 650 650 651 - static const struct v4l2_subdev_core_ops ks0127_core_ops = { 652 - .s_std = ks0127_s_std, 653 - }; 654 - 655 651 static const struct v4l2_subdev_video_ops ks0127_video_ops = { 652 + .s_std = ks0127_s_std, 656 653 .s_routing = ks0127_s_routing, 657 654 .s_stream = ks0127_s_stream, 658 655 .querystd = ks0127_querystd, ··· 657 660 }; 658 661 659 662 static const struct v4l2_subdev_ops ks0127_ops = { 660 - .core = &ks0127_core_ops, 661 663 .video = &ks0127_video_ops, 662 664 }; 663 665
+1 -1
drivers/media/i2c/ml86v7667.c
··· 276 276 }; 277 277 278 278 static struct v4l2_subdev_video_ops ml86v7667_subdev_video_ops = { 279 + .s_std = ml86v7667_s_std, 279 280 .querystd = ml86v7667_querystd, 280 281 .g_input_status = ml86v7667_g_input_status, 281 282 .enum_mbus_fmt = ml86v7667_enum_mbus_fmt, ··· 287 286 }; 288 287 289 288 static struct v4l2_subdev_core_ops ml86v7667_subdev_core_ops = { 290 - .s_std = ml86v7667_s_std, 291 289 #ifdef CONFIG_VIDEO_ADV_DEBUG 292 290 .g_register = ml86v7667_g_register, 293 291 .s_register = ml86v7667_s_register,
+1 -1
drivers/media/i2c/msp3400-driver.c
··· 649 649 .s_ctrl = v4l2_subdev_s_ctrl, 650 650 .queryctrl = v4l2_subdev_queryctrl, 651 651 .querymenu = v4l2_subdev_querymenu, 652 - .s_std = msp_s_std, 653 652 }; 654 653 655 654 static const struct v4l2_subdev_video_ops msp_video_ops = { 655 + .s_std = msp_s_std, 656 656 .querystd = msp_querystd, 657 657 }; 658 658
+1 -1
drivers/media/i2c/saa6752hs.c
··· 643 643 644 644 static const struct v4l2_subdev_core_ops saa6752hs_core_ops = { 645 645 .init = saa6752hs_init, 646 - .s_std = saa6752hs_s_std, 647 646 }; 648 647 649 648 static const struct v4l2_subdev_video_ops saa6752hs_video_ops = { 649 + .s_std = saa6752hs_s_std, 650 650 .s_mbus_fmt = saa6752hs_s_mbus_fmt, 651 651 .try_mbus_fmt = saa6752hs_try_mbus_fmt, 652 652 .g_mbus_fmt = saa6752hs_g_mbus_fmt,
+1 -1
drivers/media/i2c/saa7110.c
··· 365 365 .s_ctrl = v4l2_subdev_s_ctrl, 366 366 .queryctrl = v4l2_subdev_queryctrl, 367 367 .querymenu = v4l2_subdev_querymenu, 368 - .s_std = saa7110_s_std, 369 368 }; 370 369 371 370 static const struct v4l2_subdev_video_ops saa7110_video_ops = { 371 + .s_std = saa7110_s_std, 372 372 .s_routing = saa7110_s_routing, 373 373 .s_stream = saa7110_s_stream, 374 374 .querystd = saa7110_querystd,
+1 -1
drivers/media/i2c/saa7115.c
··· 1582 1582 .s_ctrl = v4l2_subdev_s_ctrl, 1583 1583 .queryctrl = v4l2_subdev_queryctrl, 1584 1584 .querymenu = v4l2_subdev_querymenu, 1585 - .s_std = saa711x_s_std, 1586 1585 .reset = saa711x_reset, 1587 1586 .s_gpio = saa711x_s_gpio, 1588 1587 #ifdef CONFIG_VIDEO_ADV_DEBUG ··· 1600 1601 }; 1601 1602 1602 1603 static const struct v4l2_subdev_video_ops saa711x_video_ops = { 1604 + .s_std = saa711x_s_std, 1603 1605 .s_routing = saa711x_s_routing, 1604 1606 .s_crystal_freq = saa711x_s_crystal_freq, 1605 1607 .s_mbus_fmt = saa711x_s_mbus_fmt,
+1 -1
drivers/media/i2c/saa717x.c
··· 1198 1198 .g_register = saa717x_g_register, 1199 1199 .s_register = saa717x_s_register, 1200 1200 #endif 1201 - .s_std = saa717x_s_std, 1202 1201 .g_ext_ctrls = v4l2_subdev_g_ext_ctrls, 1203 1202 .try_ext_ctrls = v4l2_subdev_try_ext_ctrls, 1204 1203 .s_ext_ctrls = v4l2_subdev_s_ext_ctrls, ··· 1215 1216 }; 1216 1217 1217 1218 static const struct v4l2_subdev_video_ops saa717x_video_ops = { 1219 + .s_std = saa717x_s_std, 1218 1220 .s_routing = saa717x_s_video_routing, 1219 1221 .s_mbus_fmt = saa717x_s_mbus_fmt, 1220 1222 .s_stream = saa717x_s_stream,
+1 -1
drivers/media/i2c/saa7191.c
··· 573 573 static const struct v4l2_subdev_core_ops saa7191_core_ops = { 574 574 .g_ctrl = saa7191_g_ctrl, 575 575 .s_ctrl = saa7191_s_ctrl, 576 - .s_std = saa7191_s_std, 577 576 }; 578 577 579 578 static const struct v4l2_subdev_video_ops saa7191_video_ops = { 579 + .s_std = saa7191_s_std, 580 580 .s_routing = saa7191_s_routing, 581 581 .querystd = saa7191_querystd, 582 582 .g_input_status = saa7191_g_input_status,
+2 -2
drivers/media/i2c/soc_camera/tw9910.c
··· 814 814 } 815 815 816 816 static struct v4l2_subdev_core_ops tw9910_subdev_core_ops = { 817 - .s_std = tw9910_s_std, 818 - .g_std = tw9910_g_std, 819 817 #ifdef CONFIG_VIDEO_ADV_DEBUG 820 818 .g_register = tw9910_g_register, 821 819 .s_register = tw9910_s_register, ··· 877 879 } 878 880 879 881 static struct v4l2_subdev_video_ops tw9910_subdev_video_ops = { 882 + .s_std = tw9910_s_std, 883 + .g_std = tw9910_g_std, 880 884 .s_stream = tw9910_s_stream, 881 885 .g_mbus_fmt = tw9910_g_fmt, 882 886 .s_mbus_fmt = tw9910_s_fmt,
+5 -5
drivers/media/i2c/sony-btf-mpx.c
··· 327 327 328 328 /* --------------------------------------------------------------------------*/ 329 329 330 - static const struct v4l2_subdev_core_ops sony_btf_mpx_core_ops = { 331 - .s_std = sony_btf_mpx_s_std, 332 - }; 333 - 334 330 static const struct v4l2_subdev_tuner_ops sony_btf_mpx_tuner_ops = { 335 331 .s_tuner = sony_btf_mpx_s_tuner, 336 332 .g_tuner = sony_btf_mpx_g_tuner, 337 333 }; 338 334 335 + static const struct v4l2_subdev_video_ops sony_btf_mpx_video_ops = { 336 + .s_std = sony_btf_mpx_s_std, 337 + }; 338 + 339 339 static const struct v4l2_subdev_ops sony_btf_mpx_ops = { 340 - .core = &sony_btf_mpx_core_ops, 341 340 .tuner = &sony_btf_mpx_tuner_ops, 341 + .video = &sony_btf_mpx_video_ops, 342 342 }; 343 343 344 344 /* --------------------------------------------------------------------------*/
+5 -1
drivers/media/i2c/tvaudio.c
··· 1862 1862 .s_ctrl = v4l2_subdev_s_ctrl, 1863 1863 .queryctrl = v4l2_subdev_queryctrl, 1864 1864 .querymenu = v4l2_subdev_querymenu, 1865 - .s_std = tvaudio_s_std, 1866 1865 }; 1867 1866 1868 1867 static const struct v4l2_subdev_tuner_ops tvaudio_tuner_ops = { ··· 1875 1876 .s_routing = tvaudio_s_routing, 1876 1877 }; 1877 1878 1879 + static const struct v4l2_subdev_video_ops tvaudio_video_ops = { 1880 + .s_std = tvaudio_s_std, 1881 + }; 1882 + 1878 1883 static const struct v4l2_subdev_ops tvaudio_ops = { 1879 1884 .core = &tvaudio_core_ops, 1880 1885 .tuner = &tvaudio_tuner_ops, 1881 1886 .audio = &tvaudio_audio_ops, 1887 + .video = &tvaudio_video_ops, 1882 1888 }; 1883 1889 1884 1890 /* ----------------------------------------------------------------------- */
+1 -1
drivers/media/i2c/tvp514x.c
··· 1010 1010 .s_ctrl = v4l2_subdev_s_ctrl, 1011 1011 .queryctrl = v4l2_subdev_queryctrl, 1012 1012 .querymenu = v4l2_subdev_querymenu, 1013 - .s_std = tvp514x_s_std, 1014 1013 }; 1015 1014 1016 1015 static const struct v4l2_subdev_video_ops tvp514x_video_ops = { 1016 + .s_std = tvp514x_s_std, 1017 1017 .s_routing = tvp514x_s_routing, 1018 1018 .querystd = tvp514x_querystd, 1019 1019 .enum_mbus_fmt = tvp514x_enum_mbus_fmt,
+1 -1
drivers/media/i2c/tvp5150.c
··· 1063 1063 1064 1064 static const struct v4l2_subdev_core_ops tvp5150_core_ops = { 1065 1065 .log_status = tvp5150_log_status, 1066 - .s_std = tvp5150_s_std, 1067 1066 .reset = tvp5150_reset, 1068 1067 #ifdef CONFIG_VIDEO_ADV_DEBUG 1069 1068 .g_register = tvp5150_g_register, ··· 1075 1076 }; 1076 1077 1077 1078 static const struct v4l2_subdev_video_ops tvp5150_video_ops = { 1079 + .s_std = tvp5150_s_std, 1078 1080 .s_routing = tvp5150_s_routing, 1079 1081 .enum_mbus_fmt = tvp5150_enum_mbus_fmt, 1080 1082 .s_mbus_fmt = tvp5150_mbus_fmt,
+1 -1
drivers/media/i2c/tw2804.c
··· 342 342 }; 343 343 344 344 static const struct v4l2_subdev_video_ops tw2804_video_ops = { 345 + .s_std = tw2804_s_std, 345 346 .s_routing = tw2804_s_video_routing, 346 347 }; 347 348 348 349 static const struct v4l2_subdev_core_ops tw2804_core_ops = { 349 350 .log_status = tw2804_log_status, 350 - .s_std = tw2804_s_std, 351 351 }; 352 352 353 353 static const struct v4l2_subdev_ops tw2804_ops = {
+1 -1
drivers/media/i2c/tw9903.c
··· 187 187 188 188 static const struct v4l2_subdev_core_ops tw9903_core_ops = { 189 189 .log_status = tw9903_log_status, 190 - .s_std = tw9903_s_std, 191 190 }; 192 191 193 192 static const struct v4l2_subdev_video_ops tw9903_video_ops = { 193 + .s_std = tw9903_s_std, 194 194 .s_routing = tw9903_s_video_routing, 195 195 }; 196 196
+1 -1
drivers/media/i2c/tw9906.c
··· 157 157 158 158 static const struct v4l2_subdev_core_ops tw9906_core_ops = { 159 159 .log_status = tw9906_log_status, 160 - .s_std = tw9906_s_std, 161 160 }; 162 161 163 162 static const struct v4l2_subdev_video_ops tw9906_video_ops = { 163 + .s_std = tw9906_s_std, 164 164 .s_routing = tw9906_s_video_routing, 165 165 }; 166 166
+5 -1
drivers/media/i2c/vp27smpx.c
··· 124 124 125 125 static const struct v4l2_subdev_core_ops vp27smpx_core_ops = { 126 126 .log_status = vp27smpx_log_status, 127 - .s_std = vp27smpx_s_std, 128 127 }; 129 128 130 129 static const struct v4l2_subdev_tuner_ops vp27smpx_tuner_ops = { ··· 132 133 .g_tuner = vp27smpx_g_tuner, 133 134 }; 134 135 136 + static const struct v4l2_subdev_video_ops vp27smpx_video_ops = { 137 + .s_std = vp27smpx_s_std, 138 + }; 139 + 135 140 static const struct v4l2_subdev_ops vp27smpx_ops = { 136 141 .core = &vp27smpx_core_ops, 137 142 .tuner = &vp27smpx_tuner_ops, 143 + .video = &vp27smpx_video_ops, 138 144 }; 139 145 140 146 /* ----------------------------------------------------------------------- */
+1 -1
drivers/media/i2c/vpx3220.c
··· 457 457 .s_ctrl = v4l2_subdev_s_ctrl, 458 458 .queryctrl = v4l2_subdev_queryctrl, 459 459 .querymenu = v4l2_subdev_querymenu, 460 - .s_std = vpx3220_s_std, 461 460 }; 462 461 463 462 static const struct v4l2_subdev_video_ops vpx3220_video_ops = { 463 + .s_std = vpx3220_s_std, 464 464 .s_routing = vpx3220_s_routing, 465 465 .s_stream = vpx3220_s_stream, 466 466 .querystd = vpx3220_querystd,
+1 -1
drivers/media/pci/bt8xx/bttv-driver.c
··· 1182 1182 break; 1183 1183 } 1184 1184 id = tvnorm->v4l2_id; 1185 - bttv_call_all(btv, core, s_std, id); 1185 + bttv_call_all(btv, video, s_std, id); 1186 1186 1187 1187 return 0; 1188 1188 }
+1 -1
drivers/media/pci/cx18/cx18-av-core.c
··· 1263 1263 .log_status = cx18_av_log_status, 1264 1264 .load_fw = cx18_av_load_fw, 1265 1265 .reset = cx18_av_reset, 1266 - .s_std = cx18_av_s_std, 1267 1266 #ifdef CONFIG_VIDEO_ADV_DEBUG 1268 1267 .g_register = cx18_av_g_register, 1269 1268 .s_register = cx18_av_s_register, ··· 1282 1283 }; 1283 1284 1284 1285 static const struct v4l2_subdev_video_ops cx18_av_video_ops = { 1286 + .s_std = cx18_av_s_std, 1285 1287 .s_routing = cx18_av_s_video_routing, 1286 1288 .s_stream = cx18_av_s_stream, 1287 1289 .s_mbus_fmt = cx18_av_s_mbus_fmt,
+1 -1
drivers/media/pci/cx18/cx18-fileops.c
··· 760 760 /* Mark that the radio is no longer in use */ 761 761 clear_bit(CX18_F_I_RADIO_USER, &cx->i_flags); 762 762 /* Switch tuner to TV */ 763 - cx18_call_all(cx, core, s_std, cx->std); 763 + cx18_call_all(cx, video, s_std, cx->std); 764 764 /* Select correct audio input (i.e. TV tuner or Line in) */ 765 765 cx18_audio_set_io(cx); 766 766 if (atomic_read(&cx->ana_capturing) > 0) {
+5 -1
drivers/media/pci/cx18/cx18-gpio.c
··· 180 180 181 181 static const struct v4l2_subdev_core_ops gpiomux_core_ops = { 182 182 .log_status = gpiomux_log_status, 183 - .s_std = gpiomux_s_std, 184 183 }; 185 184 186 185 static const struct v4l2_subdev_tuner_ops gpiomux_tuner_ops = { ··· 190 191 .s_routing = gpiomux_s_audio_routing, 191 192 }; 192 193 194 + static const struct v4l2_subdev_video_ops gpiomux_video_ops = { 195 + .s_std = gpiomux_s_std, 196 + }; 197 + 193 198 static const struct v4l2_subdev_ops gpiomux_ops = { 194 199 .core = &gpiomux_core_ops, 195 200 .tuner = &gpiomux_tuner_ops, 196 201 .audio = &gpiomux_audio_ops, 202 + .video = &gpiomux_video_ops, 197 203 }; 198 204 199 205 /*
+1 -1
drivers/media/pci/cx18/cx18-ioctl.c
··· 602 602 (unsigned long long) cx->std); 603 603 604 604 /* Tuner */ 605 - cx18_call_all(cx, core, s_std, cx->std); 605 + cx18_call_all(cx, video, s_std, cx->std); 606 606 return 0; 607 607 } 608 608
+2 -2
drivers/media/pci/cx23885/cx23885-video.c
··· 326 326 327 327 dev->tvnorm = norm; 328 328 329 - call_all(dev, core, s_std, norm); 329 + call_all(dev, video, s_std, norm); 330 330 331 331 return 0; 332 332 } ··· 1589 1589 fe = &dev->ts1.analog_fe; 1590 1590 1591 1591 if (fe && fe->ops.tuner_ops.set_analog_params) { 1592 - call_all(dev, core, s_std, dev->tvnorm); 1592 + call_all(dev, video, s_std, dev->tvnorm); 1593 1593 fe->ops.tuner_ops.set_analog_params(fe, &params); 1594 1594 } 1595 1595 else
+1 -1
drivers/media/pci/cx88/cx88-core.c
··· 1012 1012 set_tvaudio(core); 1013 1013 1014 1014 // tell i2c chips 1015 - call_all(core, core, s_std, norm); 1015 + call_all(core, video, s_std, norm); 1016 1016 1017 1017 /* The chroma_agc control should be inaccessible if the video format is SECAM */ 1018 1018 v4l2_ctrl_grab(core->chroma_agc, cxiformat == VideoFormatSECAM);
+1 -1
drivers/media/pci/ivtv/ivtv-fileops.c
··· 894 894 /* Mark that the radio is no longer in use */ 895 895 clear_bit(IVTV_F_I_RADIO_USER, &itv->i_flags); 896 896 /* Switch tuner to TV */ 897 - ivtv_call_all(itv, core, s_std, itv->std); 897 + ivtv_call_all(itv, video, s_std, itv->std); 898 898 /* Select correct audio input (i.e. TV tuner or Line in) */ 899 899 ivtv_audio_set_io(itv); 900 900 if (itv->hw_flags & IVTV_HW_SAA711X) {
+1 -1
drivers/media/pci/ivtv/ivtv-ioctl.c
··· 1090 1090 itv->vbi.sliced_decoder_line_size = itv->is_60hz ? 272 : 284; 1091 1091 1092 1092 /* Tuner */ 1093 - ivtv_call_all(itv, core, s_std, itv->std); 1093 + ivtv_call_all(itv, video, s_std, itv->std); 1094 1094 } 1095 1095 1096 1096 void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id std)
+2 -2
drivers/media/pci/saa7134/saa7134-video.c
··· 477 477 saa7134_set_decoder(dev); 478 478 479 479 if (card_in(dev, dev->ctl_input).tv) 480 - saa_call_all(dev, core, s_std, dev->tvnorm->id); 480 + saa_call_all(dev, video, s_std, dev->tvnorm->id); 481 481 /* Set the correct norm for the saa6752hs. This function 482 482 does nothing if there is no saa6752hs. */ 483 - saa_call_empress(dev, core, s_std, dev->tvnorm->id); 483 + saa_call_empress(dev, video, s_std, dev->tvnorm->id); 484 484 } 485 485 486 486 static void set_h_prescale(struct saa7134_dev *dev, int task, int prescale)
+7 -7
drivers/media/pci/saa7146/mxb.c
··· 357 357 tea6420_route(mxb, 6); 358 358 359 359 /* select video mode in saa7111a */ 360 - saa7111a_call(mxb, core, s_std, std); 360 + saa7111a_call(mxb, video, s_std, std); 361 361 362 362 /* select tuner-output on saa7111a */ 363 363 i = 0; ··· 379 379 /* These two gpio calls set the GPIO pins that control the tda9820 */ 380 380 saa7146_write(dev, GPIO_CTRL, 0x00404050); 381 381 saa7111a_call(mxb, core, s_gpio, 1); 382 - saa7111a_call(mxb, core, s_std, std); 383 - tuner_call(mxb, core, s_std, std); 382 + saa7111a_call(mxb, video, s_std, std); 383 + tuner_call(mxb, video, s_std, std); 384 384 385 385 /* switch to tuner-channel on tea6415c */ 386 386 tea6415c_call(mxb, video, s_routing, 3, 17, 0); ··· 771 771 /* These two gpio calls set the GPIO pins that control the tda9820 */ 772 772 saa7146_write(dev, GPIO_CTRL, 0x00404050); 773 773 saa7111a_call(mxb, core, s_gpio, 0); 774 - saa7111a_call(mxb, core, s_std, std); 774 + saa7111a_call(mxb, video, s_std, std); 775 775 if (mxb->cur_input == 0) 776 - tuner_call(mxb, core, s_std, std); 776 + tuner_call(mxb, video, s_std, std); 777 777 } else { 778 778 v4l2_std_id std = V4L2_STD_PAL_BG; 779 779 ··· 783 783 /* These two gpio calls set the GPIO pins that control the tda9820 */ 784 784 saa7146_write(dev, GPIO_CTRL, 0x00404050); 785 785 saa7111a_call(mxb, core, s_gpio, 1); 786 - saa7111a_call(mxb, core, s_std, std); 786 + saa7111a_call(mxb, video, s_std, std); 787 787 if (mxb->cur_input == 0) 788 - tuner_call(mxb, core, s_std, std); 788 + tuner_call(mxb, video, s_std, std); 789 789 } 790 790 return 0; 791 791 }
+2 -2
drivers/media/pci/sta2x11/sta2x11_vip.c
··· 444 444 int status; 445 445 446 446 if (V4L2_STD_ALL == std) { 447 - v4l2_subdev_call(vip->decoder, core, s_std, std); 447 + v4l2_subdev_call(vip->decoder, video, s_std, std); 448 448 ssleep(2); 449 449 v4l2_subdev_call(vip->decoder, video, querystd, &newstd); 450 450 v4l2_subdev_call(vip->decoder, video, g_input_status, &status); ··· 467 467 vip->format = formats_50[0]; 468 468 } 469 469 470 - return v4l2_subdev_call(vip->decoder, core, s_std, std); 470 + return v4l2_subdev_call(vip->decoder, video, s_std, std); 471 471 } 472 472 473 473 /**
+1 -1
drivers/media/pci/zoran/zoran_device.c
··· 1572 1572 } 1573 1573 1574 1574 decoder_call(zr, core, init, 0); 1575 - decoder_call(zr, core, s_std, zr->norm); 1575 + decoder_call(zr, video, s_std, zr->norm); 1576 1576 decoder_call(zr, video, s_routing, 1577 1577 zr->card.input[zr->input].muxsel, 0, 0); 1578 1578
+1 -1
drivers/media/pci/zoran/zoran_driver.c
··· 1469 1469 if (on) 1470 1470 zr36057_overlay(zr, 0); 1471 1471 1472 - decoder_call(zr, core, s_std, norm); 1472 + decoder_call(zr, video, s_std, norm); 1473 1473 encoder_call(zr, video, s_std_output, norm); 1474 1474 1475 1475 if (on)
+2 -2
drivers/media/platform/blackfin/bfin_capture.c
··· 631 631 if (vb2_is_busy(&bcap_dev->buffer_queue)) 632 632 return -EBUSY; 633 633 634 - ret = v4l2_subdev_call(bcap_dev->sd, core, s_std, std); 634 + ret = v4l2_subdev_call(bcap_dev->sd, video, s_std, std); 635 635 if (ret < 0) 636 636 return ret; 637 637 ··· 1065 1065 /* now we can probe the default state */ 1066 1066 if (config->inputs[0].capabilities & V4L2_IN_CAP_STD) { 1067 1067 v4l2_std_id std; 1068 - ret = v4l2_subdev_call(bcap_dev->sd, core, g_std, &std); 1068 + ret = v4l2_subdev_call(bcap_dev->sd, video, g_std, &std); 1069 1069 if (ret) { 1070 1070 v4l2_err(&bcap_dev->v4l2_dev, 1071 1071 "Unable to get std\n");
+1 -1
drivers/media/platform/davinci/vpfe_capture.c
··· 1217 1217 } 1218 1218 1219 1219 ret = v4l2_device_call_until_err(&vpfe_dev->v4l2_dev, sdinfo->grp_id, 1220 - core, s_std, std_id); 1220 + video, s_std, std_id); 1221 1221 if (ret < 0) { 1222 1222 v4l2_err(&vpfe_dev->v4l2_dev, "Failed to set standard\n"); 1223 1223 goto unlock_out;
+1 -1
drivers/media/platform/davinci/vpif_capture.c
··· 951 951 vpif_config_format(ch); 952 952 953 953 /* set standard in the sub device */ 954 - ret = v4l2_subdev_call(ch->sd, core, s_std, std_id); 954 + ret = v4l2_subdev_call(ch->sd, video, s_std, std_id); 955 955 if (ret && ret != -ENOIOCTLCMD && ret != -ENODEV) { 956 956 vpif_dbg(1, debug, "Failed to set standard for sub devices\n"); 957 957 return ret;
+1 -1
drivers/media/platform/davinci/vpif_display.c
··· 718 718 return ret; 719 719 } 720 720 721 - ret = v4l2_device_call_until_err(&vpif_obj.v4l2_dev, 1, core, 721 + ret = v4l2_device_call_until_err(&vpif_obj.v4l2_dev, 1, video, 722 722 s_std, std_id); 723 723 if (ret < 0) 724 724 vpif_err("Failed to set standard for sub devices\n");
+1 -1
drivers/media/platform/fsl-viu.c
··· 964 964 struct viu_fh *fh = priv; 965 965 966 966 fh->dev->std = id; 967 - decoder_call(fh->dev, core, s_std, id); 967 + decoder_call(fh->dev, video, s_std, id); 968 968 return 0; 969 969 } 970 970
+2 -2
drivers/media/platform/soc_camera/soc_camera.c
··· 314 314 struct soc_camera_device *icd = file->private_data; 315 315 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); 316 316 317 - return v4l2_subdev_call(sd, core, s_std, a); 317 + return v4l2_subdev_call(sd, video, s_std, a); 318 318 } 319 319 320 320 static int soc_camera_g_std(struct file *file, void *priv, v4l2_std_id *a) ··· 322 322 struct soc_camera_device *icd = file->private_data; 323 323 struct v4l2_subdev *sd = soc_camera_to_subdev(icd); 324 324 325 - return v4l2_subdev_call(sd, core, g_std, a); 325 + return v4l2_subdev_call(sd, video, g_std, a); 326 326 } 327 327 328 328 static int soc_camera_enum_framesizes(struct file *file, void *fh,
+1 -1
drivers/media/platform/timblogiw.c
··· 347 347 mutex_lock(&lw->lock); 348 348 349 349 if (TIMBLOGIW_HAS_DECODER(lw)) 350 - err = v4l2_subdev_call(lw->sd_enc, core, s_std, std); 350 + err = v4l2_subdev_call(lw->sd_enc, video, s_std, std); 351 351 352 352 if (!err) 353 353 fh->cur_norm = timblogiw_get_norm(std);
+3 -3
drivers/media/platform/vino.c
··· 2586 2586 } 2587 2587 if (data_norm == 3) 2588 2588 data_norm = VINO_DATA_NORM_PAL; 2589 - ret = decoder_call(core, s_std, norm); 2589 + ret = decoder_call(video, s_std, norm); 2590 2590 } 2591 2591 2592 2592 spin_lock_irqsave(&vino_drvdata->input_lock, flags); ··· 2675 2675 } 2676 2676 if (data_norm == 3) 2677 2677 data_norm = VINO_DATA_NORM_PAL; 2678 - ret = decoder_call(core, s_std, norm); 2678 + ret = decoder_call(video, s_std, norm); 2679 2679 } 2680 2680 2681 2681 spin_lock_irqsave(&vino_drvdata->input_lock, flags); ··· 2809 2809 * as it may take a while... */ 2810 2810 2811 2811 norm = vino_data_norms[data_norm].std; 2812 - err = decoder_call(core, s_std, norm); 2812 + err = decoder_call(video, s_std, norm); 2813 2813 2814 2814 spin_lock_irqsave(&vino_drvdata->input_lock, *flags); 2815 2815
+2 -2
drivers/media/usb/au0828/au0828-video.c
··· 1109 1109 /* If we've never sent the standard in tuner core, do so now. 1110 1110 We don't do this at device probe because we don't want to 1111 1111 incur the cost of a firmware load */ 1112 - v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_std, dev->std); 1112 + v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, dev->std); 1113 1113 v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, &f); 1114 1114 i2c_gate_ctrl(dev, 0); 1115 1115 } ··· 1368 1368 have to make the au0828 bridge adjust the size of its capture 1369 1369 buffer, which is currently hardcoded at 720x480 */ 1370 1370 1371 - v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_std, norm); 1371 + v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, norm); 1372 1372 1373 1373 i2c_gate_ctrl(dev, 0); 1374 1374
+1 -1
drivers/media/usb/cx231xx/cx231xx-417.c
··· 1516 1516 dev->ts1.height = 576; 1517 1517 cx2341x_handler_set_50hz(&dev->mpeg_ctrl_handler, true); 1518 1518 } 1519 - call_all(dev, core, s_std, dev->norm); 1519 + call_all(dev, video, s_std, dev->norm); 1520 1520 /* do mode control overrides */ 1521 1521 cx231xx_do_mode_ctrl_overrides(dev); 1522 1522
+3 -3
drivers/media/usb/cx231xx/cx231xx-video.c
··· 1009 1009 dev->width = 720; 1010 1010 dev->height = (dev->norm & V4L2_STD_625_50) ? 576 : 480; 1011 1011 1012 - call_all(dev, core, s_std, dev->norm); 1012 + call_all(dev, video, s_std, dev->norm); 1013 1013 1014 1014 /* We need to reset basic properties in the decoder related to 1015 1015 resolution (since a standard change effects things like the number ··· 1108 1108 /* There's a tuner, so reset the standard and put it on the 1109 1109 last known frequency (since it was probably powered down 1110 1110 until now */ 1111 - call_all(dev, core, s_std, dev->norm); 1111 + call_all(dev, video, s_std, dev->norm); 1112 1112 } 1113 1113 1114 1114 return 0; ··· 2099 2099 /* Set the initial input */ 2100 2100 video_mux(dev, dev->video_input); 2101 2101 2102 - call_all(dev, core, s_std, dev->norm); 2102 + call_all(dev, video, s_std, dev->norm); 2103 2103 2104 2104 v4l2_ctrl_handler_init(&dev->ctrl_handler, 10); 2105 2105 v4l2_ctrl_handler_init(&dev->radio_ctrl_handler, 5);
+2 -2
drivers/media/usb/em28xx/em28xx-video.c
··· 1400 1400 &v4l2->hscale, &v4l2->vscale); 1401 1401 1402 1402 em28xx_resolution_set(dev); 1403 - v4l2_device_call_all(&v4l2->v4l2_dev, 0, core, s_std, v4l2->norm); 1403 + v4l2_device_call_all(&v4l2->v4l2_dev, 0, video, s_std, v4l2->norm); 1404 1404 1405 1405 return 0; 1406 1406 } ··· 2440 2440 2441 2441 /* set default norm */ 2442 2442 v4l2->norm = V4L2_STD_PAL; 2443 - v4l2_device_call_all(&v4l2->v4l2_dev, 0, core, s_std, v4l2->norm); 2443 + v4l2_device_call_all(&v4l2->v4l2_dev, 0, video, s_std, v4l2->norm); 2444 2444 v4l2->interlaced_fieldmode = EM28XX_INTERLACED_DEFAULT; 2445 2445 2446 2446 /* Analog specific initialization */
+1 -1
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
··· 2910 2910 v4l2_std_id vs; 2911 2911 vs = hdw->std_mask_cur; 2912 2912 v4l2_device_call_all(&hdw->v4l2_dev, 0, 2913 - core, s_std, vs); 2913 + video, s_std, vs); 2914 2914 pvr2_hdw_cx25840_vbi_hack(hdw); 2915 2915 } 2916 2916 hdw->tuner_signal_stale = !0;
+2 -2
drivers/media/usb/stk1160/stk1160-v4l.c
··· 406 406 407 407 stk1160_set_std(dev); 408 408 409 - v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_std, 409 + v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, 410 410 dev->norm); 411 411 412 412 return 0; ··· 682 682 dev->fmt = &format[0]; 683 683 stk1160_set_std(dev); 684 684 685 - v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_std, 685 + v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, 686 686 dev->norm); 687 687 688 688 video_set_drvdata(&dev->vdev, dev);
+1 -1
drivers/media/usb/tm6000/tm6000-cards.c
··· 1120 1120 tm6000_config_tuner(dev); 1121 1121 1122 1122 /* Set video standard */ 1123 - v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_std, dev->norm); 1123 + v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, dev->norm); 1124 1124 1125 1125 /* Set tuner frequency - also loads firmware on xc2028/xc3028 */ 1126 1126 f.tuner = 0;
+1 -1
drivers/media/usb/tm6000/tm6000-video.c
··· 1071 1071 if (rc < 0) 1072 1072 return rc; 1073 1073 1074 - v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_std, dev->norm); 1074 + v4l2_device_call_all(&dev->v4l2_dev, 0, video, s_std, dev->norm); 1075 1075 1076 1076 return 0; 1077 1077 }
+1 -1
drivers/media/usb/usbvision/usbvision-video.c
··· 597 597 598 598 usbvision->tvnorm_id = id; 599 599 600 - call_all(usbvision, core, s_std, usbvision->tvnorm_id); 600 + call_all(usbvision, video, s_std, usbvision->tvnorm_id); 601 601 /* propagate the change to the decoder */ 602 602 usbvision_muxsel(usbvision, usbvision->ctl_input); 603 603
+5 -1
drivers/media/v4l2-core/tuner-core.c
··· 1301 1301 1302 1302 static const struct v4l2_subdev_core_ops tuner_core_ops = { 1303 1303 .log_status = tuner_log_status, 1304 - .s_std = tuner_s_std, 1305 1304 .s_power = tuner_s_power, 1306 1305 }; 1307 1306 ··· 1314 1315 .s_config = tuner_s_config, 1315 1316 }; 1316 1317 1318 + static const struct v4l2_subdev_video_ops tuner_video_ops = { 1319 + .s_std = tuner_s_std, 1320 + }; 1321 + 1317 1322 static const struct v4l2_subdev_ops tuner_ops = { 1318 1323 .core = &tuner_core_ops, 1319 1324 .tuner = &tuner_tuner_ops, 1325 + .video = &tuner_video_ops, 1320 1326 }; 1321 1327 1322 1328 /*
+1 -1
drivers/staging/media/davinci_vpfe/vpfe_video.c
··· 944 944 goto unlock_out; 945 945 } 946 946 ret = v4l2_device_call_until_err(&vpfe_dev->v4l2_dev, sdinfo->grp_id, 947 - core, s_std, std_id); 947 + video, s_std, std_id); 948 948 if (ret < 0) { 949 949 v4l2_err(&vpfe_dev->v4l2_dev, "Failed to set standard\n"); 950 950 video->stdid = V4L2_STD_UNKNOWN;
+1 -1
drivers/staging/media/go7007/go7007-v4l2.c
··· 665 665 go->sensor_framerate = 30000; 666 666 } 667 667 668 - call_all(&go->v4l2_dev, core, s_std, go->std); 668 + call_all(&go->v4l2_dev, video, s_std, go->std); 669 669 set_capture_size(go, NULL, 0); 670 670 return 0; 671 671 }
+1 -1
drivers/staging/media/go7007/s2250-board.c
··· 474 474 475 475 static const struct v4l2_subdev_core_ops s2250_core_ops = { 476 476 .log_status = s2250_log_status, 477 - .s_std = s2250_s_std, 478 477 }; 479 478 480 479 static const struct v4l2_subdev_audio_ops s2250_audio_ops = { ··· 481 482 }; 482 483 483 484 static const struct v4l2_subdev_video_ops s2250_video_ops = { 485 + .s_std = s2250_s_std, 484 486 .s_routing = s2250_s_video_routing, 485 487 .s_mbus_fmt = s2250_s_mbus_fmt, 486 488 };
+4
drivers/staging/media/go7007/saa7134-go7007.c
··· 434 434 .g_ctrl = saa7134_go7007_g_ctrl, 435 435 .s_ctrl = saa7134_go7007_s_ctrl, 436 436 .queryctrl = saa7134_go7007_queryctrl, 437 + }; 438 + 439 + static const struct v4l2_subdev_video_ops saa7134_go7007_video_ops = { 437 440 .s_std = saa7134_go7007_s_std, 438 441 }; 439 442 440 443 static const struct v4l2_subdev_ops saa7134_go7007_sd_ops = { 441 444 .core = &saa7134_go7007_core_ops, 445 + .video = &saa7134_go7007_video_ops, 442 446 }; 443 447 444 448 /* --------------------------------------------------------------------------*/
+3 -3
include/media/v4l2-subdev.h
··· 159 159 int (*s_ext_ctrls)(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls); 160 160 int (*try_ext_ctrls)(struct v4l2_subdev *sd, struct v4l2_ext_controls *ctrls); 161 161 int (*querymenu)(struct v4l2_subdev *sd, struct v4l2_querymenu *qm); 162 - int (*g_std)(struct v4l2_subdev *sd, v4l2_std_id *norm); 163 - int (*s_std)(struct v4l2_subdev *sd, v4l2_std_id norm); 164 162 long (*ioctl)(struct v4l2_subdev *sd, unsigned int cmd, void *arg); 165 163 #ifdef CONFIG_COMPAT 166 164 long (*compat_ioctl32)(struct v4l2_subdev *sd, unsigned int cmd, ··· 314 316 struct v4l2_subdev_video_ops { 315 317 int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config); 316 318 int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags); 319 + int (*g_std)(struct v4l2_subdev *sd, v4l2_std_id *norm); 320 + int (*s_std)(struct v4l2_subdev *sd, v4l2_std_id norm); 317 321 int (*s_std_output)(struct v4l2_subdev *sd, v4l2_std_id std); 318 322 int (*g_std_output)(struct v4l2_subdev *sd, v4l2_std_id *std); 319 323 int (*querystd)(struct v4l2_subdev *sd, v4l2_std_id *std); ··· 693 693 /* Call an ops of a v4l2_subdev, doing the right checks against 694 694 NULL pointers. 695 695 696 - Example: err = v4l2_subdev_call(sd, core, s_std, norm); 696 + Example: err = v4l2_subdev_call(sd, video, s_std, norm); 697 697 */ 698 698 #define v4l2_subdev_call(sd, o, f, args...) \ 699 699 (!(sd) ? -ENODEV : (((sd)->ops->o && (sd)->ops->o->f) ? \