Lines Matching +full:0 +full:x01f00000
20 switch (coded & 0x3) { in lola_sample_rate_convert()
21 case 0: freq = 48000; break; in lola_sample_rate_convert()
24 default: return 0; /* error */ in lola_sample_rate_convert()
28 switch (coded & 0x1c) { in lola_sample_rate_convert()
29 case (0 << 2): break; in lola_sample_rate_convert()
35 default: return 0; /* error */ in lola_sample_rate_convert()
39 switch (coded & 0x60) { in lola_sample_rate_convert()
40 case (0 << 5): break; in lola_sample_rate_convert()
43 default: return 0; /* error */ in lola_sample_rate_convert()
63 (val % LOLA_GRANULARITY_STEP) != 0) in check_gran_clock_compatibility()
82 return 0; in lola_set_granularity()
83 #if 0 in lola_set_granularity()
98 val, 0); in lola_set_granularity()
99 if (err < 0) in lola_set_granularity()
117 if (err < 0) { in lola_init_clock_widget()
118 dev_err(chip->card->dev, "Can't read wcaps for 0x%x\n", nid); in lola_init_clock_widget()
122 if ((val & 0xfff00000) != 0x01f00000) { /* test SubType and Type */ in lola_init_clock_widget()
124 return 0; in lola_init_clock_widget()
128 chip->clock.items = val & 0xff; in lola_init_clock_widget()
139 idx = 0; in lola_init_clock_widget()
140 idx_list = 0; in lola_init_clock_widget()
141 for (i = 0; i < nb_verbs; i++) { in lola_init_clock_widget()
146 idx, 0, &val, &res_ex); in lola_init_clock_widget()
147 if (err < 0) { in lola_init_clock_widget()
152 items[0] = val & 0xfff; in lola_init_clock_widget()
153 items[1] = (val >> 16) & 0xfff; in lola_init_clock_widget()
154 items[2] = res_ex & 0xfff; in lola_init_clock_widget()
155 items[3] = (res_ex >> 16) & 0xfff; in lola_init_clock_widget()
157 for (j = 0; j < 4; j++) { in lola_init_clock_widget()
159 unsigned int freq = items[j] & 0xff; in lola_init_clock_widget()
175 /* video clock has a format (0:NTSC, 1:PAL)*/ in lola_init_clock_widget()
176 if (items[j] & 0x80) in lola_init_clock_widget()
197 return 0; in lola_init_clock_widget()
209 0, &res, NULL); in lola_enable_clock_events()
210 if (err < 0) in lola_enable_clock_events()
217 return 0; in lola_enable_clock_events()
228 0, &res, NULL); in lola_set_clock_index()
229 if (err < 0) in lola_set_clock_index()
235 return 0; in lola_set_clock_index()
254 chip->clock.cur_freq = lola_sample_rate_convert(val & 0x7f); in lola_update_ext_clock_freq()
255 chip->clock.cur_valid = (val & 0x100) != 0; in lola_update_ext_clock_freq()
262 int freq = 0; in lola_set_clock()
284 if (err < 0) in lola_set_clock()
291 return 0; in lola_set_clock()
299 return 0; in lola_set_sample_rate()
301 for (i = 0; i < chip->clock.items; i++) { in lola_set_sample_rate()