summaryrefslogtreecommitdiff
path: root/drivers/media/usb/em28xx
diff options
context:
space:
mode:
authorNils Rothaug <nils.rothaug@gmx.de>2024-06-23 13:46:47 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-06-29 13:20:05 +0300
commit361e2ff5cefe10da266ced01845ab0b08112a1fd (patch)
tree399e90f006b9c031710d6ab2cf83b4447b481044 /drivers/media/usb/em28xx
parentceac017e1292913a256f1d90ff367e9e868f1c86 (diff)
downloadlinux-361e2ff5cefe10da266ced01845ab0b08112a1fd.tar.xz
media: em28xx: Set GPIOs for non-audio boards when switching input
Fixes changing the Line Out audio source with the video input on MyGica UTV3 board. Previously, GPIOs were only set in em28xx_set_audio_source(), which only boards with USB audio support reach. Signed-off-by: Nils Rothaug <nils.rothaug@gmx.de> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/usb/em28xx')
-rw-r--r--drivers/media/usb/em28xx/em28xx-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-core.c b/drivers/media/usb/em28xx/em28xx-core.c
index 61d7bf701d57..29a7f3f19b56 100644
--- a/drivers/media/usb/em28xx/em28xx-core.c
+++ b/drivers/media/usb/em28xx/em28xx-core.c
@@ -416,8 +416,9 @@ int em28xx_audio_analog_set(struct em28xx *dev)
int ret, i;
u8 xclk;
+ /* Set GPIOs here for boards without audio */
if (dev->int_audio_type == EM28XX_INT_AUDIO_NONE)
- return 0;
+ return em28xx_gpio_set(dev, INPUT(dev->ctl_input)->gpio);
/*
* It is assumed that all devices use master volume for output.