diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-02-06 19:40:28 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-05 21:12:05 +0400 |
commit | 01df530c2791610727e345b3dd97ef75943c7320 (patch) | |
tree | c0e6588230df2335afe4ff6a9bd4fc59e635ede2 /drivers/media/pci/bt8xx/bttv-cards.c | |
parent | 5d478e0de87113b9fa6b4021935e605b71e0ee28 (diff) | |
download | linux-01df530c2791610727e345b3dd97ef75943c7320.tar.xz |
[media] bttv: convert to the control framework
Note that the private chroma agc control has been replaced with the standard
CHROMA_AGC control.
Also fixes a mute/automute problem where closing the file handle would force
mute on. That's not what you want since that would make the mute state out of
sync with the mute control. Instead check against the user count.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/bt8xx/bttv-cards.c')
-rw-r--r-- | drivers/media/pci/bt8xx/bttv-cards.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-cards.c b/drivers/media/pci/bt8xx/bttv-cards.c index c4c59175e52c..682ed893d718 100644 --- a/drivers/media/pci/bt8xx/bttv-cards.c +++ b/drivers/media/pci/bt8xx/bttv-cards.c @@ -3554,8 +3554,9 @@ void bttv_init_card2(struct bttv *btv) I2C_CLIENT_END }; - if (v4l2_i2c_new_subdev(&btv->c.v4l2_dev, - &btv->c.i2c_adap, "tda7432", 0, addrs)) + btv->sd_tda7432 = v4l2_i2c_new_subdev(&btv->c.v4l2_dev, + &btv->c.i2c_adap, "tda7432", 0, addrs); + if (btv->sd_tda7432) return; } |