• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/media/video/pvrusb2/

Lines Matching defs:hdw

24 #include "pvrusb2-hdw-internal.h"
29 static void set_standard(struct pvr2_hdw *hdw)
33 if (hdw->input_val == PVR2_CVAL_INPUT_RADIO) {
34 pvr2_i2c_core_cmd(hdw,AUDC_SET_RADIO,NULL);
37 vs = hdw->std_mask_cur;
38 pvr2_i2c_core_cmd(hdw,VIDIOC_S_STD,&vs);
40 hdw->tuner_signal_stale = !0;
44 static int check_standard(struct pvr2_hdw *hdw)
46 return (hdw->input_dirty != 0) || (hdw->std_dirty != 0);
57 static void set_bcsh(struct pvr2_hdw *hdw)
62 hdw->brightness_val,hdw->contrast_val,
63 hdw->saturation_val,hdw->hue_val);
66 ctrl.value = hdw->brightness_val;
67 pvr2_i2c_core_cmd(hdw,VIDIOC_S_CTRL,&ctrl);
69 ctrl.value = hdw->contrast_val;
70 pvr2_i2c_core_cmd(hdw,VIDIOC_S_CTRL,&ctrl);
72 ctrl.value = hdw->saturation_val;
73 pvr2_i2c_core_cmd(hdw,VIDIOC_S_CTRL,&ctrl);
75 ctrl.value = hdw->hue_val;
76 pvr2_i2c_core_cmd(hdw,VIDIOC_S_CTRL,&ctrl);
80 static int check_bcsh(struct pvr2_hdw *hdw)
82 return (hdw->brightness_dirty ||
83 hdw->contrast_dirty ||
84 hdw->saturation_dirty ||
85 hdw->hue_dirty);
96 static void set_volume(struct pvr2_hdw *hdw)
102 hdw->volume_val,
103 hdw->balance_val,
104 hdw->bass_val,
105 hdw->treble_val,
106 hdw->mute_val);
109 ctrl.value = hdw->mute_val ? 1 : 0;
110 pvr2_i2c_core_cmd(hdw,VIDIOC_S_CTRL,&ctrl);
112 ctrl.value = hdw->volume_val;
113 pvr2_i2c_core_cmd(hdw,VIDIOC_S_CTRL,&ctrl);
115 ctrl.value = hdw->balance_val;
116 pvr2_i2c_core_cmd(hdw,VIDIOC_S_CTRL,&ctrl);
118 ctrl.value = hdw->bass_val;
119 pvr2_i2c_core_cmd(hdw,VIDIOC_S_CTRL,&ctrl);
121 ctrl.value = hdw->treble_val;
122 pvr2_i2c_core_cmd(hdw,VIDIOC_S_CTRL,&ctrl);
126 static int check_volume(struct pvr2_hdw *hdw)
128 return (hdw->volume_dirty ||
129 hdw->balance_dirty ||
130 hdw->bass_dirty ||
131 hdw->treble_dirty ||
132 hdw->mute_dirty);
143 static void set_audiomode(struct pvr2_hdw *hdw)
147 vt.audmode = hdw->audiomode_val;
148 pvr2_i2c_core_cmd(hdw,VIDIOC_S_TUNER,&vt);
152 static int check_audiomode(struct pvr2_hdw *hdw)
154 return (hdw->input_dirty ||
155 hdw->audiomode_dirty);
166 static void set_frequency(struct pvr2_hdw *hdw)
170 fv = pvr2_hdw_get_cur_freq(hdw);
172 if (hdw->tuner_signal_stale) {
173 pvr2_i2c_core_status_poll(hdw);
176 if (hdw->tuner_signal_info.capability & V4L2_TUNER_CAP_LOW) {
184 if (hdw->input_val == PVR2_CVAL_INPUT_RADIO) {
190 pvr2_i2c_core_cmd(hdw,VIDIOC_S_FREQUENCY,&freq);
194 static int check_frequency(struct pvr2_hdw *hdw)
196 return hdw->freqDirty != 0;
207 static void set_size(struct pvr2_hdw *hdw)
214 fmt.fmt.pix.width = hdw->res_hor_val;
215 fmt.fmt.pix.height = hdw->res_ver_val;
220 pvr2_i2c_core_cmd(hdw,VIDIOC_S_FMT,&fmt);
224 static int check_size(struct pvr2_hdw *hdw)
226 return (hdw->res_hor_dirty || hdw->res_ver_dirty);
237 static void do_log(struct pvr2_hdw *hdw)
240 pvr2_i2c_core_cmd(hdw,VIDIOC_LOG_STATUS,NULL);
245 static int check_log(struct pvr2_hdw *hdw)
247 return hdw->log_requested != 0;
267 pvr2_i2c_client_cmd(cp,VIDIOC_G_TUNER,&cp->hdw->tuner_signal_info);