diff options
author | Antti Palosaari <crope@iki.fi> | 2014-07-22 01:44:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-22 10:33:34 -0400 |
commit | c08de62f1fa8813de5bcc0db48570b2340cbaf18 (patch) | |
tree | 6083c82a5ed86e95e8044b600171935751ea2872 /drivers/media/usb/msi2500/msi2500.c | |
parent | 9ab10e469fe117b6c4e2337158d1a97f804f8de7 (diff) |
[media] msi2500: correct style issues
Correct some style issues, mostly reported by checkpatch.pl.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/msi2500/msi2500.c')
-rw-r--r-- | drivers/media/usb/msi2500/msi2500.c | 70 |
1 files changed, 51 insertions, 19 deletions
diff --git a/drivers/media/usb/msi2500/msi2500.c b/drivers/media/usb/msi2500/msi2500.c index 483dc6e6642d..755f959215fe 100644 --- a/drivers/media/usb/msi2500/msi2500.c +++ b/drivers/media/usb/msi2500/msi2500.c | |||
@@ -55,9 +55,14 @@ MODULE_PARM_DESC(emulated_formats, "enable emulated formats (disappears in futur | |||
55 | #define ISO_BUFFER_SIZE (ISO_FRAMES_PER_DESC * ISO_MAX_FRAME_SIZE) | 55 | #define ISO_BUFFER_SIZE (ISO_FRAMES_PER_DESC * ISO_MAX_FRAME_SIZE) |
56 | #define MAX_ISOC_ERRORS 20 | 56 | #define MAX_ISOC_ERRORS 20 |
57 | 57 | ||
58 | /* TODO: These should be moved to V4L2 API */ | 58 | /* |
59 | #define V4L2_PIX_FMT_SDR_S12 v4l2_fourcc('D', 'S', '1', '2') /* signed 12-bit */ | 59 | * TODO: These formats should be moved to V4L2 API. Formats are currently |
60 | #define V4L2_PIX_FMT_SDR_MSI2500_384 v4l2_fourcc('M', '3', '8', '4') /* Mirics MSi2500 format 384 */ | 60 | * disabled from formats[] table, not visible to userspace. |
61 | */ | ||
62 | /* signed 12-bit */ | ||
63 | #define MSI2500_PIX_FMT_SDR_S12 v4l2_fourcc('D', 'S', '1', '2') | ||
64 | /* Mirics MSi2500 format 384 */ | ||
65 | #define MSI2500_PIX_FMT_SDR_MSI2500_384 v4l2_fourcc('M', '3', '8', '4') | ||
61 | 66 | ||
62 | static const struct v4l2_frequency_band bands[] = { | 67 | static const struct v4l2_frequency_band bands[] = { |
63 | { | 68 | { |
@@ -86,10 +91,10 @@ static struct msi3101_format formats[] = { | |||
86 | #if 0 | 91 | #if 0 |
87 | }, { | 92 | }, { |
88 | .name = "10+2-bit signed", | 93 | .name = "10+2-bit signed", |
89 | .pixelformat = V4L2_PIX_FMT_SDR_MSI2500_384, | 94 | .pixelformat = MSI2500_PIX_FMT_SDR_MSI2500_384, |
90 | }, { | 95 | }, { |
91 | .name = "12-bit signed", | 96 | .name = "12-bit signed", |
92 | .pixelformat = V4L2_PIX_FMT_SDR_S12, | 97 | .pixelformat = MSI2500_PIX_FMT_SDR_S12, |
93 | #endif | 98 | #endif |
94 | }, { | 99 | }, { |
95 | .name = "Complex S14LE", | 100 | .name = "Complex S14LE", |
@@ -221,6 +226,7 @@ static int msi3101_convert_stream_504(struct msi3101_state *s, u8 *dst, | |||
221 | unsigned long jiffies_now = jiffies; | 226 | unsigned long jiffies_now = jiffies; |
222 | unsigned long msecs = jiffies_to_msecs(jiffies_now) - jiffies_to_msecs(s->jiffies_next); | 227 | unsigned long msecs = jiffies_to_msecs(jiffies_now) - jiffies_to_msecs(s->jiffies_next); |
223 | unsigned int samples = sample_num[i_max - 1] - s->sample; | 228 | unsigned int samples = sample_num[i_max - 1] - s->sample; |
229 | |||
224 | s->jiffies_next = jiffies_now; | 230 | s->jiffies_next = jiffies_now; |
225 | s->sample = sample_num[i_max - 1]; | 231 | s->sample = sample_num[i_max - 1]; |
226 | dev_dbg(&s->udev->dev, | 232 | dev_dbg(&s->udev->dev, |
@@ -278,6 +284,7 @@ static int msi3101_convert_stream_504_u8(struct msi3101_state *s, u8 *dst, | |||
278 | if (unlikely(time_is_before_jiffies(s->jiffies_next))) { | 284 | if (unlikely(time_is_before_jiffies(s->jiffies_next))) { |
279 | #define MSECS 10000UL | 285 | #define MSECS 10000UL |
280 | unsigned int samples = sample_num[i_max - 1] - s->sample; | 286 | unsigned int samples = sample_num[i_max - 1] - s->sample; |
287 | |||
281 | s->jiffies_next = jiffies + msecs_to_jiffies(MSECS); | 288 | s->jiffies_next = jiffies + msecs_to_jiffies(MSECS); |
282 | s->sample = sample_num[i_max - 1]; | 289 | s->sample = sample_num[i_max - 1]; |
283 | dev_dbg(&s->udev->dev, | 290 | dev_dbg(&s->udev->dev, |
@@ -373,6 +380,7 @@ static int msi3101_convert_stream_384(struct msi3101_state *s, u8 *dst, | |||
373 | unsigned long jiffies_now = jiffies; | 380 | unsigned long jiffies_now = jiffies; |
374 | unsigned long msecs = jiffies_to_msecs(jiffies_now) - jiffies_to_msecs(s->jiffies_next); | 381 | unsigned long msecs = jiffies_to_msecs(jiffies_now) - jiffies_to_msecs(s->jiffies_next); |
375 | unsigned int samples = sample_num[i_max - 1] - s->sample; | 382 | unsigned int samples = sample_num[i_max - 1] - s->sample; |
383 | |||
376 | s->jiffies_next = jiffies_now; | 384 | s->jiffies_next = jiffies_now; |
377 | s->sample = sample_num[i_max - 1]; | 385 | s->sample = sample_num[i_max - 1]; |
378 | dev_dbg(&s->udev->dev, | 386 | dev_dbg(&s->udev->dev, |
@@ -438,6 +446,7 @@ static int msi3101_convert_stream_336(struct msi3101_state *s, u8 *dst, | |||
438 | unsigned long jiffies_now = jiffies; | 446 | unsigned long jiffies_now = jiffies; |
439 | unsigned long msecs = jiffies_to_msecs(jiffies_now) - jiffies_to_msecs(s->jiffies_next); | 447 | unsigned long msecs = jiffies_to_msecs(jiffies_now) - jiffies_to_msecs(s->jiffies_next); |
440 | unsigned int samples = sample_num[i_max - 1] - s->sample; | 448 | unsigned int samples = sample_num[i_max - 1] - s->sample; |
449 | |||
441 | s->jiffies_next = jiffies_now; | 450 | s->jiffies_next = jiffies_now; |
442 | s->sample = sample_num[i_max - 1]; | 451 | s->sample = sample_num[i_max - 1]; |
443 | dev_dbg(&s->udev->dev, | 452 | dev_dbg(&s->udev->dev, |
@@ -501,6 +510,7 @@ static int msi3101_convert_stream_252(struct msi3101_state *s, u8 *dst, | |||
501 | unsigned long jiffies_now = jiffies; | 510 | unsigned long jiffies_now = jiffies; |
502 | unsigned long msecs = jiffies_to_msecs(jiffies_now) - jiffies_to_msecs(s->jiffies_next); | 511 | unsigned long msecs = jiffies_to_msecs(jiffies_now) - jiffies_to_msecs(s->jiffies_next); |
503 | unsigned int samples = sample_num[i_max - 1] - s->sample; | 512 | unsigned int samples = sample_num[i_max - 1] - s->sample; |
513 | |||
504 | s->jiffies_next = jiffies_now; | 514 | s->jiffies_next = jiffies_now; |
505 | s->sample = sample_num[i_max - 1]; | 515 | s->sample = sample_num[i_max - 1]; |
506 | dev_dbg(&s->udev->dev, | 516 | dev_dbg(&s->udev->dev, |
@@ -521,7 +531,7 @@ static int msi3101_convert_stream_252_u16(struct msi3101_state *s, u8 *dst, | |||
521 | int i, j, i_max, dst_len = 0; | 531 | int i, j, i_max, dst_len = 0; |
522 | u32 sample_num[3]; | 532 | u32 sample_num[3]; |
523 | u16 *u16dst = (u16 *) dst; | 533 | u16 *u16dst = (u16 *) dst; |
524 | struct {signed int x:14;} se; | 534 | struct {signed int x:14; } se; |
525 | 535 | ||
526 | /* There could be 1-3 1024 bytes URB frames */ | 536 | /* There could be 1-3 1024 bytes URB frames */ |
527 | i_max = src_len / 1024; | 537 | i_max = src_len / 1024; |
@@ -573,6 +583,7 @@ static int msi3101_convert_stream_252_u16(struct msi3101_state *s, u8 *dst, | |||
573 | if (unlikely(time_is_before_jiffies(s->jiffies_next))) { | 583 | if (unlikely(time_is_before_jiffies(s->jiffies_next))) { |
574 | #define MSECS 10000UL | 584 | #define MSECS 10000UL |
575 | unsigned int samples = sample_num[i_max - 1] - s->sample; | 585 | unsigned int samples = sample_num[i_max - 1] - s->sample; |
586 | |||
576 | s->jiffies_next = jiffies + msecs_to_jiffies(MSECS); | 587 | s->jiffies_next = jiffies + msecs_to_jiffies(MSECS); |
577 | s->sample = sample_num[i_max - 1]; | 588 | s->sample = sample_num[i_max - 1]; |
578 | dev_dbg(&s->udev->dev, | 589 | dev_dbg(&s->udev->dev, |
@@ -667,6 +678,7 @@ handler_end: | |||
667 | static void msi3101_iso_stop(struct msi3101_state *s) | 678 | static void msi3101_iso_stop(struct msi3101_state *s) |
668 | { | 679 | { |
669 | int i; | 680 | int i; |
681 | |||
670 | dev_dbg(&s->udev->dev, "%s:\n", __func__); | 682 | dev_dbg(&s->udev->dev, "%s:\n", __func__); |
671 | 683 | ||
672 | /* Unlinking ISOC buffers one by one */ | 684 | /* Unlinking ISOC buffers one by one */ |
@@ -682,6 +694,7 @@ static void msi3101_iso_stop(struct msi3101_state *s) | |||
682 | static void msi3101_iso_free(struct msi3101_state *s) | 694 | static void msi3101_iso_free(struct msi3101_state *s) |
683 | { | 695 | { |
684 | int i; | 696 | int i; |
697 | |||
685 | dev_dbg(&s->udev->dev, "%s:\n", __func__); | 698 | dev_dbg(&s->udev->dev, "%s:\n", __func__); |
686 | 699 | ||
687 | /* Freeing ISOC buffers one by one */ | 700 | /* Freeing ISOC buffers one by one */ |
@@ -715,6 +728,7 @@ static int msi3101_isoc_init(struct msi3101_state *s) | |||
715 | struct usb_device *udev; | 728 | struct usb_device *udev; |
716 | struct urb *urb; | 729 | struct urb *urb; |
717 | int i, j, ret; | 730 | int i, j, ret; |
731 | |||
718 | dev_dbg(&s->udev->dev, "%s:\n", __func__); | 732 | dev_dbg(&s->udev->dev, "%s:\n", __func__); |
719 | 733 | ||
720 | s->isoc_errors = 0; | 734 | s->isoc_errors = 0; |
@@ -781,6 +795,7 @@ static int msi3101_isoc_init(struct msi3101_state *s) | |||
781 | static void msi3101_cleanup_queued_bufs(struct msi3101_state *s) | 795 | static void msi3101_cleanup_queued_bufs(struct msi3101_state *s) |
782 | { | 796 | { |
783 | unsigned long flags = 0; | 797 | unsigned long flags = 0; |
798 | |||
784 | dev_dbg(&s->udev->dev, "%s:\n", __func__); | 799 | dev_dbg(&s->udev->dev, "%s:\n", __func__); |
785 | 800 | ||
786 | spin_lock_irqsave(&s->queued_bufs_lock, flags); | 801 | spin_lock_irqsave(&s->queued_bufs_lock, flags); |
@@ -801,6 +816,7 @@ static void msi3101_disconnect(struct usb_interface *intf) | |||
801 | struct v4l2_device *v = usb_get_intfdata(intf); | 816 | struct v4l2_device *v = usb_get_intfdata(intf); |
802 | struct msi3101_state *s = | 817 | struct msi3101_state *s = |
803 | container_of(v, struct msi3101_state, v4l2_dev); | 818 | container_of(v, struct msi3101_state, v4l2_dev); |
819 | |||
804 | dev_dbg(&s->udev->dev, "%s:\n", __func__); | 820 | dev_dbg(&s->udev->dev, "%s:\n", __func__); |
805 | 821 | ||
806 | mutex_lock(&s->vb_queue_lock); | 822 | mutex_lock(&s->vb_queue_lock); |
@@ -820,6 +836,7 @@ static int msi3101_querycap(struct file *file, void *fh, | |||
820 | struct v4l2_capability *cap) | 836 | struct v4l2_capability *cap) |
821 | { | 837 | { |
822 | struct msi3101_state *s = video_drvdata(file); | 838 | struct msi3101_state *s = video_drvdata(file); |
839 | |||
823 | dev_dbg(&s->udev->dev, "%s:\n", __func__); | 840 | dev_dbg(&s->udev->dev, "%s:\n", __func__); |
824 | 841 | ||
825 | strlcpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); | 842 | strlcpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); |
@@ -837,6 +854,7 @@ static int msi3101_queue_setup(struct vb2_queue *vq, | |||
837 | unsigned int *nplanes, unsigned int sizes[], void *alloc_ctxs[]) | 854 | unsigned int *nplanes, unsigned int sizes[], void *alloc_ctxs[]) |
838 | { | 855 | { |
839 | struct msi3101_state *s = vb2_get_drv_priv(vq); | 856 | struct msi3101_state *s = vb2_get_drv_priv(vq); |
857 | |||
840 | dev_dbg(&s->udev->dev, "%s: *nbuffers=%d\n", __func__, *nbuffers); | 858 | dev_dbg(&s->udev->dev, "%s: *nbuffers=%d\n", __func__, *nbuffers); |
841 | 859 | ||
842 | /* Absolute min and max number of buffers available for mmap() */ | 860 | /* Absolute min and max number of buffers available for mmap() */ |
@@ -871,15 +889,16 @@ static void msi3101_buf_queue(struct vb2_buffer *vb) | |||
871 | #define CMD_STOP_STREAMING 0x45 | 889 | #define CMD_STOP_STREAMING 0x45 |
872 | #define CMD_READ_UNKNOW 0x48 | 890 | #define CMD_READ_UNKNOW 0x48 |
873 | 891 | ||
874 | #define msi3101_dbg_usb_control_msg(udev, r, t, v, _i, b, l) { \ | 892 | #define msi3101_dbg_usb_control_msg(_udev, _r, _t, _v, _i, _b, _l) { \ |
875 | char *direction; \ | 893 | char *_direction; \ |
876 | if (t == (USB_TYPE_VENDOR | USB_DIR_OUT)) \ | 894 | if (_t & USB_DIR_IN) \ |
877 | direction = ">>>"; \ | 895 | _direction = "<<<"; \ |
878 | else \ | 896 | else \ |
879 | direction = "<<<"; \ | 897 | _direction = ">>>"; \ |
880 | dev_dbg(&udev->dev, "%s: %02x %02x %02x %02x %02x %02x %02x %02x " \ | 898 | dev_dbg(&_udev->dev, "%s: %02x %02x %02x %02x %02x %02x %02x %02x " \ |
881 | "%s %*ph\n", __func__, t, r, v & 0xff, v >> 8, \ | 899 | "%s %*ph\n", __func__, _t, _r, _v & 0xff, _v >> 8, \ |
882 | _i & 0xff, _i >> 8, l & 0xff, l >> 8, direction, l, b); \ | 900 | _i & 0xff, _i >> 8, _l & 0xff, _l >> 8, _direction, \ |
901 | _l, _b); \ | ||
883 | } | 902 | } |
884 | 903 | ||
885 | static int msi3101_ctrl_msg(struct msi3101_state *s, u8 cmd, u32 data) | 904 | static int msi3101_ctrl_msg(struct msi3101_state *s, u8 cmd, u32 data) |
@@ -915,9 +934,11 @@ static int msi3101_set_usb_adc(struct msi3101_state *s) | |||
915 | f_sr = s->f_adc; | 934 | f_sr = s->f_adc; |
916 | 935 | ||
917 | /* set tuner, subdev, filters according to sampling rate */ | 936 | /* set tuner, subdev, filters according to sampling rate */ |
918 | bandwidth_auto = v4l2_ctrl_find(&s->hdl, V4L2_CID_RF_TUNER_BANDWIDTH_AUTO); | 937 | bandwidth_auto = v4l2_ctrl_find(&s->hdl, |
938 | V4L2_CID_RF_TUNER_BANDWIDTH_AUTO); | ||
919 | if (v4l2_ctrl_g_ctrl(bandwidth_auto)) { | 939 | if (v4l2_ctrl_g_ctrl(bandwidth_auto)) { |
920 | bandwidth = v4l2_ctrl_find(&s->hdl, V4L2_CID_RF_TUNER_BANDWIDTH); | 940 | bandwidth = v4l2_ctrl_find(&s->hdl, |
941 | V4L2_CID_RF_TUNER_BANDWIDTH); | ||
921 | v4l2_ctrl_s_ctrl(bandwidth, s->f_adc); | 942 | v4l2_ctrl_s_ctrl(bandwidth, s->f_adc); |
922 | } | 943 | } |
923 | 944 | ||
@@ -935,11 +956,11 @@ static int msi3101_set_usb_adc(struct msi3101_state *s) | |||
935 | s->convert_stream = msi3101_convert_stream_504; | 956 | s->convert_stream = msi3101_convert_stream_504; |
936 | reg7 = 0x000c9407; | 957 | reg7 = 0x000c9407; |
937 | break; | 958 | break; |
938 | case V4L2_PIX_FMT_SDR_MSI2500_384: | 959 | case MSI2500_PIX_FMT_SDR_MSI2500_384: |
939 | s->convert_stream = msi3101_convert_stream_384; | 960 | s->convert_stream = msi3101_convert_stream_384; |
940 | reg7 = 0x0000a507; | 961 | reg7 = 0x0000a507; |
941 | break; | 962 | break; |
942 | case V4L2_PIX_FMT_SDR_S12: | 963 | case MSI2500_PIX_FMT_SDR_S12: |
943 | s->convert_stream = msi3101_convert_stream_336; | 964 | s->convert_stream = msi3101_convert_stream_336; |
944 | reg7 = 0x00008507; | 965 | reg7 = 0x00008507; |
945 | break; | 966 | break; |
@@ -1012,7 +1033,8 @@ static int msi3101_set_usb_adc(struct msi3101_state *s) | |||
1012 | 1033 | ||
1013 | dev_dbg(&s->udev->dev, | 1034 | dev_dbg(&s->udev->dev, |
1014 | "%s: f_sr=%d f_vco=%d div_n=%d div_m=%d div_r_out=%d reg3=%08x reg4=%08x\n", | 1035 | "%s: f_sr=%d f_vco=%d div_n=%d div_m=%d div_r_out=%d reg3=%08x reg4=%08x\n", |
1015 | __func__, f_sr, f_vco, div_n, div_m, div_r_out, reg3, reg4); | 1036 | __func__, f_sr, f_vco, div_n, div_m, div_r_out, reg3, |
1037 | reg4); | ||
1016 | 1038 | ||
1017 | ret = msi3101_ctrl_msg(s, CMD_WREG, 0x00608008); | 1039 | ret = msi3101_ctrl_msg(s, CMD_WREG, 0x00608008); |
1018 | if (ret) | 1040 | if (ret) |
@@ -1053,6 +1075,7 @@ static int msi3101_start_streaming(struct vb2_queue *vq, unsigned int count) | |||
1053 | { | 1075 | { |
1054 | struct msi3101_state *s = vb2_get_drv_priv(vq); | 1076 | struct msi3101_state *s = vb2_get_drv_priv(vq); |
1055 | int ret; | 1077 | int ret; |
1078 | |||
1056 | dev_dbg(&s->udev->dev, "%s:\n", __func__); | 1079 | dev_dbg(&s->udev->dev, "%s:\n", __func__); |
1057 | 1080 | ||
1058 | if (!s->udev) | 1081 | if (!s->udev) |
@@ -1116,6 +1139,7 @@ static int msi3101_enum_fmt_sdr_cap(struct file *file, void *priv, | |||
1116 | struct v4l2_fmtdesc *f) | 1139 | struct v4l2_fmtdesc *f) |
1117 | { | 1140 | { |
1118 | struct msi3101_state *s = video_drvdata(file); | 1141 | struct msi3101_state *s = video_drvdata(file); |
1142 | |||
1119 | dev_dbg(&s->udev->dev, "%s: index=%d\n", __func__, f->index); | 1143 | dev_dbg(&s->udev->dev, "%s: index=%d\n", __func__, f->index); |
1120 | 1144 | ||
1121 | if (f->index >= s->num_formats) | 1145 | if (f->index >= s->num_formats) |
@@ -1131,6 +1155,7 @@ static int msi3101_g_fmt_sdr_cap(struct file *file, void *priv, | |||
1131 | struct v4l2_format *f) | 1155 | struct v4l2_format *f) |
1132 | { | 1156 | { |
1133 | struct msi3101_state *s = video_drvdata(file); | 1157 | struct msi3101_state *s = video_drvdata(file); |
1158 | |||
1134 | dev_dbg(&s->udev->dev, "%s: pixelformat fourcc %4.4s\n", __func__, | 1159 | dev_dbg(&s->udev->dev, "%s: pixelformat fourcc %4.4s\n", __func__, |
1135 | (char *)&s->pixelformat); | 1160 | (char *)&s->pixelformat); |
1136 | 1161 | ||
@@ -1147,6 +1172,7 @@ static int msi3101_s_fmt_sdr_cap(struct file *file, void *priv, | |||
1147 | struct msi3101_state *s = video_drvdata(file); | 1172 | struct msi3101_state *s = video_drvdata(file); |
1148 | struct vb2_queue *q = &s->vb_queue; | 1173 | struct vb2_queue *q = &s->vb_queue; |
1149 | int i; | 1174 | int i; |
1175 | |||
1150 | dev_dbg(&s->udev->dev, "%s: pixelformat fourcc %4.4s\n", __func__, | 1176 | dev_dbg(&s->udev->dev, "%s: pixelformat fourcc %4.4s\n", __func__, |
1151 | (char *)&f->fmt.sdr.pixelformat); | 1177 | (char *)&f->fmt.sdr.pixelformat); |
1152 | 1178 | ||
@@ -1176,6 +1202,7 @@ static int msi3101_try_fmt_sdr_cap(struct file *file, void *priv, | |||
1176 | { | 1202 | { |
1177 | struct msi3101_state *s = video_drvdata(file); | 1203 | struct msi3101_state *s = video_drvdata(file); |
1178 | int i; | 1204 | int i; |
1205 | |||
1179 | dev_dbg(&s->udev->dev, "%s: pixelformat fourcc %4.4s\n", __func__, | 1206 | dev_dbg(&s->udev->dev, "%s: pixelformat fourcc %4.4s\n", __func__, |
1180 | (char *)&f->fmt.sdr.pixelformat); | 1207 | (char *)&f->fmt.sdr.pixelformat); |
1181 | 1208 | ||
@@ -1198,6 +1225,7 @@ static int msi3101_s_tuner(struct file *file, void *priv, | |||
1198 | { | 1225 | { |
1199 | struct msi3101_state *s = video_drvdata(file); | 1226 | struct msi3101_state *s = video_drvdata(file); |
1200 | int ret; | 1227 | int ret; |
1228 | |||
1201 | dev_dbg(&s->udev->dev, "%s: index=%d\n", __func__, v->index); | 1229 | dev_dbg(&s->udev->dev, "%s: index=%d\n", __func__, v->index); |
1202 | 1230 | ||
1203 | if (v->index == 0) | 1231 | if (v->index == 0) |
@@ -1214,6 +1242,7 @@ static int msi3101_g_tuner(struct file *file, void *priv, struct v4l2_tuner *v) | |||
1214 | { | 1242 | { |
1215 | struct msi3101_state *s = video_drvdata(file); | 1243 | struct msi3101_state *s = video_drvdata(file); |
1216 | int ret; | 1244 | int ret; |
1245 | |||
1217 | dev_dbg(&s->udev->dev, "%s: index=%d\n", __func__, v->index); | 1246 | dev_dbg(&s->udev->dev, "%s: index=%d\n", __func__, v->index); |
1218 | 1247 | ||
1219 | if (v->index == 0) { | 1248 | if (v->index == 0) { |
@@ -1237,6 +1266,7 @@ static int msi3101_g_frequency(struct file *file, void *priv, | |||
1237 | { | 1266 | { |
1238 | struct msi3101_state *s = video_drvdata(file); | 1267 | struct msi3101_state *s = video_drvdata(file); |
1239 | int ret = 0; | 1268 | int ret = 0; |
1269 | |||
1240 | dev_dbg(&s->udev->dev, "%s: tuner=%d type=%d\n", | 1270 | dev_dbg(&s->udev->dev, "%s: tuner=%d type=%d\n", |
1241 | __func__, f->tuner, f->type); | 1271 | __func__, f->tuner, f->type); |
1242 | 1272 | ||
@@ -1258,6 +1288,7 @@ static int msi3101_s_frequency(struct file *file, void *priv, | |||
1258 | { | 1288 | { |
1259 | struct msi3101_state *s = video_drvdata(file); | 1289 | struct msi3101_state *s = video_drvdata(file); |
1260 | int ret; | 1290 | int ret; |
1291 | |||
1261 | dev_dbg(&s->udev->dev, "%s: tuner=%d type=%d frequency=%u\n", | 1292 | dev_dbg(&s->udev->dev, "%s: tuner=%d type=%d frequency=%u\n", |
1262 | __func__, f->tuner, f->type, f->frequency); | 1293 | __func__, f->tuner, f->type, f->frequency); |
1263 | 1294 | ||
@@ -1282,6 +1313,7 @@ static int msi3101_enum_freq_bands(struct file *file, void *priv, | |||
1282 | { | 1313 | { |
1283 | struct msi3101_state *s = video_drvdata(file); | 1314 | struct msi3101_state *s = video_drvdata(file); |
1284 | int ret; | 1315 | int ret; |
1316 | |||
1285 | dev_dbg(&s->udev->dev, "%s: tuner=%d type=%d index=%d\n", | 1317 | dev_dbg(&s->udev->dev, "%s: tuner=%d type=%d index=%d\n", |
1286 | __func__, band->tuner, band->type, band->index); | 1318 | __func__, band->tuner, band->type, band->index); |
1287 | 1319 | ||