Skip to content

Commit 361e2ff

Browse files
nprothHans Verkuil
authored andcommitted
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>
1 parent ceac017 commit 361e2ff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/media/usb/em28xx/em28xx-core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,9 @@ int em28xx_audio_analog_set(struct em28xx *dev)
416416
int ret, i;
417417
u8 xclk;
418418

419+
/* Set GPIOs here for boards without audio */
419420
if (dev->int_audio_type == EM28XX_INT_AUDIO_NONE)
420-
return 0;
421+
return em28xx_gpio_set(dev, INPUT(dev->ctl_input)->gpio);
421422

422423
/*
423424
* It is assumed that all devices use master volume for output.

0 commit comments

Comments
 (0)