aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-fileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-fileops.c')
-rw-r--r--drivers/media/video/ivtv/ivtv-fileops.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c
index cfaacf6096d0..e707ef3086b2 100644
--- a/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/drivers/media/video/ivtv/ivtv-fileops.c
@@ -857,15 +857,12 @@ int ivtv_v4l2_close(struct file *filp)
857 /* Mark that the radio is no longer in use */ 857 /* Mark that the radio is no longer in use */
858 clear_bit(IVTV_F_I_RADIO_USER, &itv->i_flags); 858 clear_bit(IVTV_F_I_RADIO_USER, &itv->i_flags);
859 /* Switch tuner to TV */ 859 /* Switch tuner to TV */
860 ivtv_call_all(itv, tuner, s_std, itv->std); 860 ivtv_call_all(itv, core, s_std, itv->std);
861 /* Select correct audio input (i.e. TV tuner or Line in) */ 861 /* Select correct audio input (i.e. TV tuner or Line in) */
862 ivtv_audio_set_io(itv); 862 ivtv_audio_set_io(itv);
863 if (itv->hw_flags & IVTV_HW_SAA711X) 863 if (itv->hw_flags & IVTV_HW_SAA711X) {
864 { 864 ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq,
865 struct v4l2_crystal_freq crystal_freq; 865 SAA7115_FREQ_32_11_MHZ, 0);
866 crystal_freq.freq = SAA7115_FREQ_32_11_MHZ;
867 crystal_freq.flags = 0;
868 ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq, &crystal_freq);
869 } 866 }
870 if (atomic_read(&itv->capturing) > 0) { 867 if (atomic_read(&itv->capturing) > 0) {
871 /* Undo video mute */ 868 /* Undo video mute */
@@ -956,10 +953,8 @@ static int ivtv_serialized_open(struct ivtv_stream *s, struct file *filp)
956 /* Select the correct audio input (i.e. radio tuner) */ 953 /* Select the correct audio input (i.e. radio tuner) */
957 ivtv_audio_set_io(itv); 954 ivtv_audio_set_io(itv);
958 if (itv->hw_flags & IVTV_HW_SAA711X) { 955 if (itv->hw_flags & IVTV_HW_SAA711X) {
959 struct v4l2_crystal_freq crystal_freq; 956 ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq,
960 crystal_freq.freq = SAA7115_FREQ_32_11_MHZ; 957 SAA7115_FREQ_32_11_MHZ, SAA7115_FREQ_FL_APLL);
961 crystal_freq.flags = SAA7115_FREQ_FL_APLL;
962 ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq, &crystal_freq);
963 } 958 }
964 /* Done! Unmute and continue. */ 959 /* Done! Unmute and continue. */
965 ivtv_unmute(itv); 960 ivtv_unmute(itv);