media: rc: add LIRC_CAN_SEND for the buffer allocation to support IR TX

Change-Id: I12c0695686084bd8f9a14e9b93284a17ef58c63f
This commit is contained in:
Joy Cho
2019-02-26 13:45:34 +09:00
parent c96db883a1
commit e2b032fead

View File

@@ -360,7 +360,7 @@ int lirc_register_driver(struct lirc_driver *d)
if (minor < 0)
return minor;
if (LIRC_CAN_REC(d->features)) {
if (LIRC_CAN_REC(d->features) || LIRC_CAN_SEND(d->features)) {
err = lirc_allocate_buffer(irctls[minor]);
if (err)
lirc_unregister_driver(minor);