diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-26 01:15:58 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-26 01:15:58 -0200 |
commit | ac7f0711100c91e1a60ca431ee0af689a8d7764b (patch) | |
tree | b7b6fa7d1e9d82f98e991aa0b7d5787852635d07 /linux/drivers/media/video/saa7134/saa7134-video.c | |
parent | a9a028ac2653b3000c2440eeea4bf5dedc54cf48 (diff) | |
parent | b00454e4b4eabd62d82aa2d1f2177a6f5b15905c (diff) | |
download | mediapointer-dvb-s2-ac7f0711100c91e1a60ca431ee0af689a8d7764b.tar.gz mediapointer-dvb-s2-ac7f0711100c91e1a60ca431ee0af689a8d7764b.tar.bz2 |
merge: http://linuxtv.org/hg/~tap/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-video.c')
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-video.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-video.c b/linux/drivers/media/video/saa7134/saa7134-video.c index 1621eab4b..646e10e43 100644 --- a/linux/drivers/media/video/saa7134/saa7134-video.c +++ b/linux/drivers/media/video/saa7134/saa7134-video.c @@ -1236,16 +1236,24 @@ static int set_control(struct saa7134_dev *dev, struct saa7134_fh *fh, restart_overlay = 1; break; case V4L2_CID_PRIVATE_AUTOMUTE: + { + struct v4l2_priv_tun_config tda9887_cfg; + + tda9887_cfg.tuner = TUNER_TDA9887; + tda9887_cfg.priv = &dev->tda9887_conf; + dev->ctl_automute = c->value; if (dev->tda9887_conf) { if (dev->ctl_automute) dev->tda9887_conf |= TDA9887_AUTOMUTE; else dev->tda9887_conf &= ~TDA9887_AUTOMUTE; - saa7134_i2c_call_clients(dev, TDA9887_SET_CONFIG, - &dev->tda9887_conf); + + saa7134_i2c_call_clients(dev, TUNER_SET_CONFIG, + &tda9887_cfg); } break; + } default: return -EINVAL; } |