Lines Matching +full:audio +full:- +full:video
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 Audio/video-routing-related ivtv functions.
4 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com>
5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl>
9 #include "ivtv-driver.h"
10 #include "ivtv-i2c.h"
11 #include "ivtv-cards.h"
12 #include "ivtv-gpio.h"
13 #include "ivtv-routing.h"
15 #include <media/drv-intf/msp3400.h>
20 /* Selects the audio input and output according to the current
28 if (test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags)) in ivtv_audio_set_io()
29 in = &itv->card->radio_input; in ivtv_audio_set_io()
31 in = &itv->card->audio_inputs[itv->audio_input]; in ivtv_audio_set_io()
34 input = in->muxer_input; in ivtv_audio_set_io()
35 if (itv->card->hw_muxer & IVTV_HW_M52790) in ivtv_audio_set_io()
37 v4l2_subdev_call(itv->sd_muxer, audio, s_routing, in ivtv_audio_set_io()
40 input = in->audio_input; in ivtv_audio_set_io()
42 if (itv->card->hw_audio & IVTV_HW_MSP34XX) in ivtv_audio_set_io()
44 ivtv_call_hw(itv, itv->card->hw_audio, audio, s_routing, in ivtv_audio_set_io()
48 /* Selects the video input and output according to the current
52 int inp = itv->active_input; in ivtv_video_set_io()
56 v4l2_subdev_call(itv->sd_video, video, s_routing, in ivtv_video_set_io()
57 itv->card->video_inputs[inp].video_input, 0, 0); in ivtv_video_set_io()
59 type = itv->card->video_inputs[inp].video_type; in ivtv_video_set_io()
64 input = 2; /* S-Video */ in ivtv_video_set_io()
69 if (itv->card->hw_video & IVTV_HW_GPIO) in ivtv_video_set_io()
70 ivtv_call_hw(itv, IVTV_HW_GPIO, video, s_routing, in ivtv_video_set_io()
73 if (itv->card->hw_video & IVTV_HW_UPD64031A) { in ivtv_video_set_io()
79 /* S-Video: GR bypassed, turn it off */ in ivtv_video_set_io()
82 input |= itv->card->gr_config; in ivtv_video_set_io()
84 ivtv_call_hw(itv, IVTV_HW_UPD64031A, video, s_routing, in ivtv_video_set_io()
88 if (itv->card->hw_video & IVTV_HW_UPD6408X) { in ivtv_video_set_io()
92 /* S-Video uses YCNR mode and internal Y-ADC, the in ivtv_video_set_io()
96 else if (itv->card->hw_video & IVTV_HW_UPD64031A) { in ivtv_video_set_io()
100 itv->card->type == IVTV_CARD_CX23416GYC) { in ivtv_video_set_io()
104 ivtv_call_hw(itv, IVTV_HW_UPD6408X, video, s_routing, in ivtv_video_set_io()