Lines Matching defs:clock
27 /* for clock source and sampling rate */
90 [EFR_STATUS_BAD_CLOCK] = "bad clock",
274 command_get_clock(struct snd_efw *efw, struct efc_clock *clock)
281 (__be32 *)clock, sizeof(struct efc_clock));
283 be32_to_cpus(&clock->source);
284 be32_to_cpus(&clock->sampling_rate);
285 be32_to_cpus(&clock->index);
296 struct efc_clock clock = {0};
306 err = command_get_clock(efw, &clock);
311 if ((clock.source == source) && (clock.sampling_rate == rate))
315 if ((source != UINT_MAX) && (clock.source != source))
316 clock.source = source;
317 if ((rate != UINT_MAX) && (clock.sampling_rate != rate))
318 clock.sampling_rate = rate;
319 clock.index = 0;
321 cpu_to_be32s(&clock.source);
322 cpu_to_be32s(&clock.sampling_rate);
323 cpu_to_be32s(&clock.index);
327 (__be32 *)&clock, sizeof(struct efc_clock),
333 * With firmware version 5.8, just after changing clock state, these
346 struct efc_clock clock = {0};
348 err = command_get_clock(efw, &clock);
350 *source = clock.source;
358 struct efc_clock clock = {0};
360 err = command_get_clock(efw, &clock);
362 *rate = clock.sampling_rate;