summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146_core.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-03-14 09:56:11 +0000
committerMichael Hunold <devnull@localhost>2003-03-14 09:56:11 +0000
commitcfe4730591564ebe99859d687a3dba2427dbb292 (patch)
treecb4e5d5c924336eddd89241018a84025f34ef2c7 /linux/drivers/media/common/saa7146_core.c
parent3ca8682b7e844390bbee9e29dfe05066b4628d1a (diff)
downloadmediapointer-dvb-s2-cfe4730591564ebe99859d687a3dba2427dbb292.tar.gz
mediapointer-dvb-s2-cfe4730591564ebe99859d687a3dba2427dbb292.tar.bz2
saa7146: set default values for brightness/contrast/saturation on driver load
mxb: prevent helper modules to probe on unknown i2c-busses. (for example on a Matrox gfx card)
Diffstat (limited to 'linux/drivers/media/common/saa7146_core.c')
-rw-r--r--linux/drivers/media/common/saa7146_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/common/saa7146_core.c b/linux/drivers/media/common/saa7146_core.c
index c01d5eed1..8142adb55 100644
--- a/linux/drivers/media/common/saa7146_core.c
+++ b/linux/drivers/media/common/saa7146_core.c
@@ -332,6 +332,9 @@ int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent)
list_add_tail(&dev->item,&saa7146_devices);
saa7146_num++;
+ /* set some default values */
+ saa7146_write(dev, BCS_CTRL, 0x80400040);
+
err = 0;
goto out;
attach_error: