if (test_and_clear_bit(CX23885_IR_TX_FIFO_SERVICE_REQ, notifications))
events |= V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ;
if (events == 0) return;
}
/* Possibly called in an IRQ context */ void cx23885_ir_rx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events)
{ struct cx23885_dev *dev = to_cx23885(sd->v4l2_dev); unsignedlong *notifications = &dev->ir_rx_notifications;
if (events & V4L2_SUBDEV_IR_RX_FIFO_SERVICE_REQ)
set_bit(CX23885_IR_RX_FIFO_SERVICE_REQ, notifications); if (events & V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED)
set_bit(CX23885_IR_RX_END_OF_RX_DETECTED, notifications); if (events & V4L2_SUBDEV_IR_RX_HW_FIFO_OVERRUN)
set_bit(CX23885_IR_RX_HW_FIFO_OVERRUN, notifications); if (events & V4L2_SUBDEV_IR_RX_SW_FIFO_OVERRUN)
set_bit(CX23885_IR_RX_SW_FIFO_OVERRUN, notifications);
/* * For the integrated AV core, we are already in a workqueue context. * For the CX23888 integrated IR, we are in an interrupt context.
*/ if (sd == dev->sd_cx25840)
cx23885_ir_rx_work_handler(&dev->ir_rx_work); else
schedule_work(&dev->ir_rx_work);
}
/* Possibly called in an IRQ context */ void cx23885_ir_tx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events)
{ struct cx23885_dev *dev = to_cx23885(sd->v4l2_dev); unsignedlong *notifications = &dev->ir_tx_notifications;
if (events & V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ)
set_bit(CX23885_IR_TX_FIFO_SERVICE_REQ, notifications);
/* * For the integrated AV core, we are already in a workqueue context. * For the CX23888 integrated IR, we are in an interrupt context.
*/ if (sd == dev->sd_cx25840)
cx23885_ir_tx_work_handler(&dev->ir_tx_work); else
schedule_work(&dev->ir_tx_work);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.