Lines Matching refs:sample_rate
56 float sample_rate; member
315 ALOGD("prop: %d rate: %f", sub->prop, sub->sample_rate); in print_subscribe_info()
408 static int vdev_subscribe(vehicle_hw_device_t* device, int32_t prop, float sample_rate, in vdev_subscribe() argument
410 ALOGD("vdev_subscribe 0x%x, %f", prop, sample_rate); in vdev_subscribe()
436 if ((config->change_mode == VEHICLE_PROP_CHANGE_MODE_ON_CHANGE) && (sample_rate != 0)) { in vdev_subscribe()
439 prop, sample_rate); in vdev_subscribe()
442 if ((config->max_sample_rate < sample_rate) || (config->min_sample_rate > sample_rate)) { in vdev_subscribe()
445 prop, sample_rate, config->min_sample_rate, config->max_sample_rate); in vdev_subscribe()
453 sub->sample_rate = sample_rate; in vdev_subscribe()
460 } else if (sub->sample_rate != sample_rate){ // sample rate changed in vdev_subscribe()
462 sub->sample_rate = sample_rate; in vdev_subscribe()