Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9085009683dd46d95105eda14efa8bda403b459f
Commit:     9085009683dd46d95105eda14efa8bda403b459f
Parent:     87410dab1238623e082e9a78a62f1bbeb6c475e3
Author:     Hans Verkuil <[EMAIL PROTECTED]>
AuthorDate: Sun Aug 5 08:02:45 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 22:04:56 2007 -0300

    V4L/DVB (5998): ivtv: no need to mute the audio input
    
    When changing channels the audio has to be muted. This is done
    by calling CX2341X_ENC_MUTE_AUDIO and by muted the audio input.
    The latter is not necessary and is now removed.
    
    Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/ivtv/ivtv-fileops.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/drivers/media/video/ivtv/ivtv-fileops.c 
b/drivers/media/video/ivtv/ivtv-fileops.c
index fedddec..9e867b5 100644
--- a/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/drivers/media/video/ivtv/ivtv-fileops.c
@@ -924,21 +924,13 @@ int ivtv_v4l2_open(struct inode *inode, struct file *filp)
 
 void ivtv_mute(struct ivtv *itv)
 {
-       struct v4l2_control ctrl = { V4L2_CID_AUDIO_MUTE, 1 };
-
-       /* Mute sound to avoid pop */
-       ivtv_control_ioctls(itv, VIDIOC_S_CTRL, &ctrl);
-
        if (atomic_read(&itv->capturing))
                ivtv_vapi(itv, CX2341X_ENC_MUTE_AUDIO, 1, 1);
-
        IVTV_DEBUG_INFO("Mute\n");
 }
 
 void ivtv_unmute(struct ivtv *itv)
 {
-       struct v4l2_control ctrl = { V4L2_CID_AUDIO_MUTE, 0 };
-
        /* initialize or refresh input */
        if (atomic_read(&itv->capturing) == 0)
                ivtv_vapi(itv, CX2341X_ENC_INITIALIZE_INPUT, 0);
@@ -949,8 +941,5 @@ void ivtv_unmute(struct ivtv *itv)
                ivtv_vapi(itv, CX2341X_ENC_MISC, 1, 12);
                ivtv_vapi(itv, CX2341X_ENC_MUTE_AUDIO, 1, 0);
        }
-
-       /* Unmute */
-       ivtv_control_ioctls(itv, VIDIOC_S_CTRL, &ctrl);
        IVTV_DEBUG_INFO("Unmute\n");
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to