Lines Matching +full:0 +full:x000001ff

27 		rmh.Cmd[0] |= CMD_MODIFY_CLOCK_S_BIT;  in vx_modify_board_clock()
39 rmh.Cmd[0] |= 1 << 0; /* reference: AUDIO 0 */ in vx_modify_board_inputs()
46 * returns 0 or 1.
56 val = (vx_inb(chip, RUER) >> 7) & 0x01; in vx_read_one_cbit()
60 val = (vx_inl(chip, RUER) >> 7) & 0x01; in vx_read_one_cbit()
69 * @val: bit value, 0 or 1
73 val = !!val; /* 0 or 1 */ in vx_write_one_cbit()
76 vx_outb(chip, CSUER, 0); /* write */ in vx_write_one_cbit()
79 vx_outl(chip, CSUER, 0); /* write */ in vx_write_one_cbit()
89 * returns the frequency of UER, or 0 if not sync,
97 freq = 0; in vx_read_uer_status()
104 if (val < 0) in vx_read_uer_status()
121 /* bit 0 corresponds to consumer/professional bit */ in vx_read_uer_status()
122 *mode = vx_read_one_cbit(chip, 0) ? in vx_read_uer_status()
137 * switch ( HexFreq & 0x00000F00 )
138 * case 0x00000100: ;
139 * case 0x00000200:
140 * case 0x00000300: HexFreq -= 0x00000201 ;
141 * case 0x00000400:
142 * case 0x00000500:
143 * case 0x00000600:
144 * case 0x00000700: HexFreq = (dword) (((double) 28224000 / (double) (Frequency*2)) - 1)
145 * default : HexFreq = (dword) ((double) 28224000 / (double) (Frequency*4)) - 0x000001FF
152 if (snd_BUG_ON(freq <= 0)) in vx_calc_clock_from_freq()
153 return 0; in vx_calc_clock_from_freq()
159 if (snd_BUG_ON(hexfreq <= 0x00000200)) in vx_calc_clock_from_freq()
160 return 0; in vx_calc_clock_from_freq()
162 if (hexfreq <= 0x03ff) in vx_calc_clock_from_freq()
163 return hexfreq - 0x00000201; in vx_calc_clock_from_freq()
164 if (hexfreq <= 0x07ff) in vx_calc_clock_from_freq()
166 if (hexfreq <= 0x0fff) in vx_calc_clock_from_freq()
167 return (hexfreq / 4) + 0x000001ff; in vx_calc_clock_from_freq()
169 return 0x5fe; /* min freq = 6893 Hz */ in vx_calc_clock_from_freq()
186 vx_toggle_dac_mute(chip, 0); in vx_change_clock_source()
200 "set internal clock to 0x%x from freq %d\n", clock, freq); in vx_set_internal_clock()
203 vx_outb(chip, HIFREQ, (clock >> 8) & 0x0f); in vx_set_internal_clock()
204 vx_outb(chip, LOFREQ, clock & 0xff); in vx_set_internal_clock()
206 vx_outl(chip, HIFREQ, (clock >> 8) & 0x0f); in vx_set_internal_clock()
207 vx_outl(chip, LOFREQ, clock & 0xff); in vx_set_internal_clock()
224 for (i = 0; i < 32; i++) in vx_set_iec958_status()
234 int src_changed = 0; in vx_set_clock()
237 return 0; in vx_set_clock()
258 return 0; in vx_set_clock()
264 return 0; in vx_set_clock()
267 return 0; in vx_set_clock()
279 return 0; in vx_change_frequency()
282 return 0; in vx_change_frequency()
287 if (freq < 0) in vx_change_frequency()
296 return 0; in vx_change_frequency()