Lines Matching +full:0 +full:x61
54 outb(chip->val61, 0x61); in pcsp_timer_update()
55 chip->thalf = 0; in pcsp_timer_update()
61 return 0; in pcsp_timer_update()
67 val ^= 0x80; in pcsp_timer_update()
73 outb_p(chip->val61, 0x61); in pcsp_timer_update()
74 outb_p(timer_cnt, 0x42); in pcsp_timer_update()
75 outb(chip->val61 ^ 1, 0x61); in pcsp_timer_update()
77 outb(chip->val61 ^ 2, 0x61); in pcsp_timer_update()
107 if (periods_elapsed < 0) { in pcsp_pointer_update()
110 "PCSP: buffer_bytes mod period_bytes != 0 ? (%zi %zi %zi)\n", in pcsp_pointer_update()
163 chip->val61 = inb(0x61) | 0x03; in pcsp_start_playing()
164 outb_p(0x92, 0x43); /* binary, mode 1, LSB only, ch 2 */ in pcsp_start_playing()
167 chip->thalf = 0; in pcsp_start_playing()
169 hrtimer_start(&pcsp_chip.timer, 0, HRTIMER_MODE_REL); in pcsp_start_playing()
170 return 0; in pcsp_start_playing()
181 atomic_set(&chip->timer_active, 0); in pcsp_stop_playing()
184 outb_p(0xb6, 0x43); /* binary, mode 3, LSB/MSB, ch 2 */ in pcsp_stop_playing()
185 outb(chip->val61 & 0xFC, 0x61); in pcsp_stop_playing()
209 return 0; in snd_pcsp_playback_close()
217 return 0; in snd_pcsp_playback_hw_params()
227 return 0; in snd_pcsp_playback_hw_free()
234 chip->playback_ptr = 0; in snd_pcsp_playback_prepare()
235 chip->period_ptr = 0; in snd_pcsp_playback_prepare()
248 return 0; in snd_pcsp_playback_prepare()
268 return 0; in snd_pcsp_trigger()
301 .fifo_size = 0,
317 return 0; in snd_pcsp_playback_open()
334 err = snd_pcm_new(chip->card, "pcspeaker", 0, 1, 0, &chip->pcm); in snd_pcsp_new_pcm()
335 if (err < 0) in snd_pcsp_new_pcm()
351 return 0; in snd_pcsp_new_pcm()