Lines Matching defs:clock
21 #include "clock.h"
171 * Assume the clock is valid if clock source supports only one
173 * (there is no clock selector) and clock type is internal.
175 * reports that clock is invalid.
178 (fmt->clock & 0xff) == cs_desc->bClockID &&
204 "%s(): cannot get clock validity for id %d\n",
242 /* If a clock source can't tell us whether it's valid, we assume it is */
255 "%s(): cannot get clock validity for id %d\n",
278 "%s(): recursive clock topology detected, id %d.\n",
283 /* first, see if the ID we're looking for is a clock source already */
290 "clock source %d is not valid, cannot use\n",
323 * For Samsung USBC Headset (AKG), setting clock selector again
324 * will result in incorrect default clock setting problems
336 /* The current clock source is invalid, try others. */
352 "found and selected valid clock source %d\n",
382 "%s(): recursive clock topology detected, id %d.\n",
387 /* first, see if the ID we're looking for is a clock source already */
394 "clock source %d is not valid, cannot use\n",
434 /* The current clock source is invalid, try others. */
452 "found and selected valid clock source %d\n",
473 * the clock source (end-leaf) must be used. However, clock selectors,
474 * clock multipliers and sample rate converters may be specified as
475 * clock source input to terminal. This functions walks the clock path
480 * Returns the clock source UnitID (>=0) on success, or an error.
490 return __uac_clock_find_source(chip, fmt, fmt->clock, visited,
493 return __uac3_clock_find_source(chip, fmt, fmt->clock, visited,
565 int altsetting, int clock)
574 snd_usb_ctrl_intf(chip) | (clock << 8),
592 int clock;
596 /* First, try to find a valid clock. This may trigger
597 * automatic clock selection if the current clock is not
600 clock = snd_usb_clock_find_source(chip, fmt, true);
601 if (clock < 0) {
602 /* We did not find a valid clock, but that might be
604 * external clock source. Try again without validation
608 clock = snd_usb_clock_find_source(chip, fmt, false);
609 if (clock < 0)
610 return clock;
613 prev_rate = get_sample_rate_v2v3(chip, iface, fmt->altsetting, clock);
620 cs_desc = snd_usb_find_clock_source_v3(chip->ctrl_intf, clock);
625 cs_desc = snd_usb_find_clock_source(chip->ctrl_intf, clock);
636 snd_usb_ctrl_intf(chip) | (clock << 8),
646 fmt->altsetting, clock);
654 "%d:%d: freq mismatch (RO clock): req %d, clock runs @%d\n",
673 /* validate clock after rate change */
674 if (!uac_clock_source_is_valid(chip, fmt, clock))