• Home
  • Raw
  • Download

Lines Matching refs:itv

94 void ivtv_reset_ir_gpio(struct ivtv *itv)  in ivtv_reset_ir_gpio()  argument
98 if (itv->card->type != IVTV_CARD_PVR_150) in ivtv_reset_ir_gpio()
119 struct ivtv *itv = algo->data; in ivtv_reset_tuner_gpio() local
126 curout &= ~(1 << itv->card->xceive_pin); in ivtv_reset_tuner_gpio()
130 curout |= 1 << itv->card->xceive_pin; in ivtv_reset_tuner_gpio()
148 struct ivtv *itv = sd_to_ivtv(sd); in subdev_s_clock_freq() local
151 mask = itv->card->gpio_audio_freq.mask; in subdev_s_clock_freq()
154 data = itv->card->gpio_audio_freq.f32000; in subdev_s_clock_freq()
157 data = itv->card->gpio_audio_freq.f44100; in subdev_s_clock_freq()
161 data = itv->card->gpio_audio_freq.f48000; in subdev_s_clock_freq()
171 struct ivtv *itv = sd_to_ivtv(sd); in subdev_g_tuner() local
174 mask = itv->card->gpio_audio_detect.mask; in subdev_g_tuner()
185 struct ivtv *itv = sd_to_ivtv(sd); in subdev_s_tuner() local
188 mask = itv->card->gpio_audio_mode.mask; in subdev_s_tuner()
191 data = itv->card->gpio_audio_mode.lang1; in subdev_s_tuner()
194 data = itv->card->gpio_audio_mode.lang2; in subdev_s_tuner()
197 data = itv->card->gpio_audio_mode.mono; in subdev_s_tuner()
202 data = itv->card->gpio_audio_mode.stereo; in subdev_s_tuner()
212 struct ivtv *itv = sd_to_ivtv(sd); in subdev_s_radio() local
215 mask = itv->card->gpio_audio_input.mask; in subdev_s_radio()
216 data = itv->card->gpio_audio_input.radio; in subdev_s_radio()
225 struct ivtv *itv = sd_to_ivtv(sd); in subdev_s_audio_routing() local
230 mask = itv->card->gpio_audio_input.mask; in subdev_s_audio_routing()
233 data = itv->card->gpio_audio_input.tuner; in subdev_s_audio_routing()
236 data = itv->card->gpio_audio_input.linein; in subdev_s_audio_routing()
240 data = itv->card->gpio_audio_input.radio; in subdev_s_audio_routing()
251 struct ivtv *itv = sd_to_ivtv(sd); in subdev_s_ctrl() local
256 mask = itv->card->gpio_audio_mute.mask; in subdev_s_ctrl()
257 data = ctrl->val ? itv->card->gpio_audio_mute.mute : 0; in subdev_s_ctrl()
269 struct ivtv *itv = sd_to_ivtv(sd); in subdev_log_status() local
274 v4l2_ctrl_handler_log_status(&itv->hdl_gpio, sd->name); in subdev_log_status()
281 struct ivtv *itv = sd_to_ivtv(sd); in subdev_s_video_routing() local
286 mask = itv->card->gpio_video_input.mask; in subdev_s_video_routing()
288 data = itv->card->gpio_video_input.tuner; in subdev_s_video_routing()
290 data = itv->card->gpio_video_input.composite; in subdev_s_video_routing()
292 data = itv->card->gpio_video_input.svideo; in subdev_s_video_routing()
328 int ivtv_gpio_init(struct ivtv *itv) in ivtv_gpio_init() argument
332 if (itv->card->xceive_pin) in ivtv_gpio_init()
333 pin = 1 << itv->card->xceive_pin; in ivtv_gpio_init()
335 if ((itv->card->gpio_init.direction | pin) == 0) in ivtv_gpio_init()
342 write_reg(itv->card->gpio_init.initial_value | pin, IVTV_REG_GPIO_OUT); in ivtv_gpio_init()
343 write_reg(itv->card->gpio_init.direction | pin, IVTV_REG_GPIO_DIR); in ivtv_gpio_init()
344 v4l2_subdev_init(&itv->sd_gpio, &subdev_ops); in ivtv_gpio_init()
345 snprintf(itv->sd_gpio.name, sizeof(itv->sd_gpio.name), "%s-gpio", itv->v4l2_dev.name); in ivtv_gpio_init()
346 itv->sd_gpio.grp_id = IVTV_HW_GPIO; in ivtv_gpio_init()
347 v4l2_ctrl_handler_init(&itv->hdl_gpio, 1); in ivtv_gpio_init()
348 v4l2_ctrl_new_std(&itv->hdl_gpio, &gpio_ctrl_ops, in ivtv_gpio_init()
350 if (itv->hdl_gpio.error) in ivtv_gpio_init()
351 return itv->hdl_gpio.error; in ivtv_gpio_init()
352 itv->sd_gpio.ctrl_handler = &itv->hdl_gpio; in ivtv_gpio_init()
353 v4l2_ctrl_handler_setup(&itv->hdl_gpio); in ivtv_gpio_init()
354 return v4l2_device_register_subdev(&itv->v4l2_dev, &itv->sd_gpio); in ivtv_gpio_init()