Skip to content

Commit

Permalink
[media] em28xx: fix snapshot button support
Browse files Browse the repository at this point in the history
The snapshot button support is currently broken, because module em28xx-rc is
loaded only if the device has remote control support.
Fix it by also loading this module if the device has a snapshot button.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Frank Schaefer authored and Mauro Carvalho Chehab committed Apr 14, 2013
1 parent 7c15b71 commit 2b64cbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/usb/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -2810,7 +2810,8 @@ static void request_module_async(struct work_struct *work)

if (dev->board.has_dvb)
request_module("em28xx-dvb");
if ((dev->board.ir_codes || dev->board.has_ir_i2c) && !disable_ir)
if (dev->board.has_snapshot_button ||
((dev->board.ir_codes || dev->board.has_ir_i2c) && !disable_ir))
request_module("em28xx-rc");
#endif /* CONFIG_MODULES */
}
Expand Down

0 comments on commit 2b64cbd

Please sign in to comment.