Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357329
b: refs/heads/master
c: 0c87c66
h: refs/heads/master
i:
  357327: 4331bd4
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Jan 6, 2013
1 parent 755966d commit 36988fe
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24b9f50170f55a3179c6f6d51022eb7d50502d05
refs/heads/master: 0c87c66aa383b045c437e7cf456eef28a8aa7b66
3 changes: 2 additions & 1 deletion trunk/drivers/media/usb/dvb-usb-v2/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config DVB_USB_V2
tristate "Support for various USB DVB devices v2"
depends on DVB_CORE && USB && I2C && RC_CORE
depends on DVB_CORE && USB && I2C
help
By enabling this you will be able to choose the various supported
USB1.1 and USB2.0 DVB devices.
Expand Down Expand Up @@ -113,6 +113,7 @@ config DVB_USB_IT913X
config DVB_USB_LME2510
tristate "LME DM04/QQBOX DVB-S USB2.0 support"
depends on DVB_USB_V2
depends on RC_CORE
select DVB_TDA10086 if MEDIA_SUBDRV_AUTOSELECT
select DVB_TDA826X if MEDIA_SUBDRV_AUTOSELECT
select DVB_STV0288 if MEDIA_SUBDRV_AUTOSELECT
Expand Down
9 changes: 9 additions & 0 deletions trunk/drivers/media/usb/dvb-usb-v2/dvb_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,13 @@ extern int dvb_usbv2_reset_resume(struct usb_interface *);
extern int dvb_usbv2_generic_rw(struct dvb_usb_device *, u8 *, u16, u8 *, u16);
extern int dvb_usbv2_generic_write(struct dvb_usb_device *, u8 *, u16);

/* stub implementations that will be never called when RC-core is disabled */
#if !defined(CONFIG_RC_CORE) && !defined(CONFIG_RC_CORE_MODULE)
#define rc_repeat(args...)
#define rc_keydown(args...)
#define rc_keydown_notimeout(args...)
#define rc_keyup(args...)
#define rc_g_keycode_from_table(args...) 0
#endif

#endif
12 changes: 12 additions & 0 deletions trunk/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ static int dvb_usbv2_i2c_exit(struct dvb_usb_device *d)
return 0;
}

#if defined(CONFIG_RC_CORE) || defined(CONFIG_RC_CORE_MODULE)
static void dvb_usb_read_remote_control(struct work_struct *work)
{
struct dvb_usb_device *d = container_of(work,
Expand Down Expand Up @@ -202,6 +203,17 @@ static int dvb_usbv2_remote_exit(struct dvb_usb_device *d)

return 0;
}
#else
static int dvb_usbv2_remote_init(struct dvb_usb_device *d)
{
return 0;
}

static int dvb_usbv2_remote_exit(struct dvb_usb_device *d)
{
return 0;
}
#endif

static void dvb_usb_data_complete(struct usb_data_stream *stream, u8 *buf,
size_t len)
Expand Down

0 comments on commit 36988fe

Please sign in to comment.