+ /* Calculate actual samplerate used and complain if it is different
+ * from the requested.
+ */
+ ols->cur_samplerate = CLOCK_RATE / (ols->cur_samplerate_divider + 1);
+ if(ols->flag_reg & FLAG_DEMUX)
+ ols->cur_samplerate *= 2;
+ ols->period_ps = 1000000000000 / ols->cur_samplerate;
+ if(ols->cur_samplerate != samplerate)
+ sr_warn("ols: can't match samplerate %" PRIu64 ", using %" PRIu64,
+ samplerate, ols->cur_samplerate);
+