There are no drivers which use this functionality.
Showing the changes to include/media/lirc_dev.h (1 of 3 files). Show all
Unified · Split
| @@ -133,12 +133,6 @@ static inline unsigned int lirc_buffer_write(struct lirc_buffer *buf, · 132 unmodified lines | ||
| 133 | 133 | * @buffer_size: Number of FIFO buffers with @chunk_size size. If zero, |
| 134 | 134 | * creates a buffer with BUFLEN size (16 bytes). |
| 135 | 135 | * |
| 136 | − * @sample_rate: if zero, the device will wait for an event with a new | |
| 137 | − * code to be parsed. Otherwise, specifies the sample | |
| 138 | − * rate for polling. Value should be between 0 | |
| 139 | − * and HZ. If equal to HZ, it would mean one polling per | |
| 140 | − * second. | |
| 141 | − * | |
| 142 | 136 | * @features: lirc compatible hardware features, like LIRC_MODE_RAW, |
| 143 | 137 | * LIRC_CAN\_\*, as defined at include/media/lirc.h. |
| 144 | 138 | * |
| @@ -153,14 +147,6 @@ static inline unsigned int lirc_buffer_write(struct lirc_buffer *buf, · 8 unmodified lines | ||
| 153 | 147 | * @max_timeout: Maximum timeout for record. Valid only if |
| 154 | 148 | * LIRC_CAN_SET_REC_TIMEOUT is defined. |
| 155 | 149 | * |
| 156 | − * @add_to_buf: add_to_buf will be called after specified period of the | |
| 157 | − * time or triggered by the external event, this behavior | |
| 158 | − * depends on value of the sample_rate this function will | |
| 159 | − * be called in user context. This routine should return | |
| 160 | − * 0 if data was added to the buffer and -ENODATA if none | |
| 161 | − * was available. This should add some number of bits | |
| 162 | − * evenly divisible by code_length to the buffer. | |
| 163 | − * | |
| 164 | 150 | * @rbuf: if not NULL, it will be used as a read buffer, you will |
| 165 | 151 | * have to write to the buffer by other means, like irq's |
| 166 | 152 | * (see also lirc_serial.c). |
| @@ -184,7 +170,6 @@ struct lirc_driver { · 17 unmodified lines | ||
| 184 | 170 | int minor; |
| 185 | 171 | __u32 code_length; |
| 186 | 172 | unsigned int buffer_size; /* in chunks holding one code each */ |
| 187 | − int sample_rate; | |
| 188 | 173 | __u32 features; |
| 189 | 174 | |
| 190 | 175 | unsigned int chunk_size; |
| @@ -192,7 +177,6 @@ struct lirc_driver { · 1 unmodified line | ||
| 192 | 177 | void *data; |
| 193 | 178 | int min_timeout; |
| 194 | 179 | int max_timeout; |
| 195 | − int (*add_to_buf)(void *data, struct lirc_buffer *buf); | |
| 196 | 180 | struct lirc_buffer *rbuf; |
| 197 | 181 | struct rc_dev *rdev; |
| 198 | 182 | const struct file_operations *fops; |