The patch titled

     v4l: MXB fix to correct tuner ioctl

has been added to the -mm tree.  Its filename is

     v4l-mxb-fix-to-correct-tuner-ioctl.patch

Patches currently in -mm which might be from [EMAIL PROTECTED] are

v4l-bttv-input.patch
v4l-bttv-update.patch
v4l-cx88-update.patch
v4l-documentation.patch
v4l-saa7134-hybrid-dvb.patch
v4l-i2c-bt832.patch
v4l-i2c-infrared-remote-control.patch
v4l-i2c-miscelaneous.patch
v4l-i2c-tuner.patch
v4l-drivers-media-video-kconfig.patch
v4l-mxb-fix-to-correct-tuner-ioctl.patch
v4l-saa7134-update.patch
v4l-tuner-3026-replace-obsolete-ioctl.patch
v4l-tv-eeprom.patch



From: Mauro Carvalho Chehab <[EMAIL PROTECTED]>

- driver command adapted to use new control (TUNER_SET_TYPE_ADDR, 
  instead of TUNER_SET_TYPE)

Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/media/video/mxb.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff -puN drivers/media/video/mxb.c~v4l-mxb-fix-to-correct-tuner-ioctl 
drivers/media/video/mxb.c
--- devel/drivers/media/video/mxb.c~v4l-mxb-fix-to-correct-tuner-ioctl  
2005-07-08 22:38:47.000000000 -0700
+++ devel-akpm/drivers/media/video/mxb.c        2005-07-08 22:38:47.000000000 
-0700
@@ -326,6 +326,7 @@ static int mxb_init_done(struct saa7146_
        struct mxb* mxb = (struct mxb*)dev->ext_priv;
        struct video_decoder_init init;
        struct i2c_msg msg;
+       struct tuner_setup tun_setup;
 
        int i = 0, err = 0;
        struct  tea6415c_multiplex vm;  
@@ -349,8 +350,10 @@ static int mxb_init_done(struct saa7146_
        mxb->saa7111a->driver->command(mxb->saa7111a,DECODER_SET_VBI_BYPASS, 
&i);
 
        /* select a tuner type */
-       i = 5; 
-       mxb->tuner->driver->command(mxb->tuner,TUNER_SET_TYPE, &i);
+       tun_setup.mode_mask = T_ANALOG_TV;
+       tun_setup.addr = ADDR_UNSET;
+       tun_setup.type = 5;
+       mxb->tuner->driver->command(mxb->tuner,TUNER_SET_TYPE_ADDR, &tun_setup);
        
        /* mute audio on tea6420s */
        mxb->tea6420_1->driver->command(mxb->tea6420_1,TEA6420_SWITCH, 
&TEA6420_line[6][0]);
_
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to