Home
last modified time | relevance | path

Searched refs:tch_buf (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/media/test-drivers/vivid/
Dvivid-touch-cap.c204 static void vivid_fill_buff_noise(__s16 *tch_buf, int size) in vivid_fill_buff_noise() argument
213 tch_buf[i] = 0; in vivid_fill_buff_noise()
215 tch_buf[i] = (rand / 10) % 7 - 3; in vivid_fill_buff_noise()
225 __s16 *tch_buf, in vivid_tch_buf_set() argument
232 tch_buf[index] = offset + get_random_pressure(); in vivid_tch_buf_set()
235 tch_buf[index - 1] = offset + get_random_pressure(); in vivid_tch_buf_set()
237 tch_buf[index + 1] = offset + get_random_pressure(); in vivid_tch_buf_set()
239 tch_buf[index - f->width] = offset + get_random_pressure(); in vivid_tch_buf_set()
241 tch_buf[index + f->width] = offset + get_random_pressure(); in vivid_tch_buf_set()
244 tch_buf[index - 1 - f->width] = offset + get_random_pressure(); in vivid_tch_buf_set()
[all …]