diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-03-23 15:13:41 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-04-15 08:49:46 +0100 |
commit | 999a9fbf0724e5f04720f334d099c8c6ec903508 (patch) | |
tree | afd5f46723e9d06dac9524cf565cbeae8afd03fe /drivers/media | |
parent | 727c070cd0a3a7ae8f45b1b8dd65254607feef0c (diff) | |
download | linux-stable-999a9fbf0724e5f04720f334d099c8c6ec903508.tar.gz linux-stable-999a9fbf0724e5f04720f334d099c8c6ec903508.tar.bz2 linux-stable-999a9fbf0724e5f04720f334d099c8c6ec903508.zip |
media: pci: saa7146: hexium_orion: initialize input 0
When this driver is loaded for the first time, input 0 is
not initialized. In order to capture from that input you would
have to switch to input 1, then back to 0.
Properly initialize the input when the driver is loaded.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/pci/saa7146/hexium_orion.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/pci/saa7146/hexium_orion.c b/drivers/media/pci/saa7146/hexium_orion.c index 2eb4bee16b71..6207f0861bb0 100644 --- a/drivers/media/pci/saa7146/hexium_orion.c +++ b/drivers/media/pci/saa7146/hexium_orion.c @@ -379,6 +379,7 @@ static int hexium_attach(struct saa7146_dev *dev, struct saa7146_pci_extension_d /* the rest */ hexium->cur_input = 0; hexium_init_done(dev); + hexium_set_input(hexium, 0); return 0; } |