Skip to contentSkip to conversation

em28xx: fix snapshot button support

PATCH New Frank Schäfer 1 participant 1 message Apr 11, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 em28xx: fix snapshot button support

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.

---
 drivers/media/usb/em28xx/em28xx-cards.c |    3 ++-

1 Datei geändert, 2 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)

drivers/media/usb/em28xx/em28xx-cards.c +2 -1
index 085b8fc..2da17af 100644
@@ -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 */
 }
Signature · 1 line
1.7.10.4