Lines Matching refs:tone
236 int tone; member
379 struct dsp_tone *tone = &dsp->tone; in dsp_tone_copy() local
382 if (!tone->tone) { in dsp_tone_copy()
388 pat = (struct pattern *)tone->pattern; in dsp_tone_copy()
390 index = tone->index; /* gives current sequence index */ in dsp_tone_copy()
391 count = tone->count; /* gives current sample */ in dsp_tone_copy()
425 tone->index = index; in dsp_tone_copy()
426 tone->count = count; in dsp_tone_copy()
462 struct dsp *dsp = from_timer(dsp, t, tone.tl); in dsp_tone_timeout()
463 struct dsp_tone *tone = &dsp->tone; in dsp_tone_timeout() local
464 struct pattern *pat = (struct pattern *)tone->pattern; in dsp_tone_timeout()
465 int index = tone->index; in dsp_tone_timeout()
467 if (!tone->tone) in dsp_tone_timeout()
473 tone->index = index; in dsp_tone_timeout()
481 tone->tl.expires = jiffies + (pat->seq[index] * HZ) / 8000; in dsp_tone_timeout()
482 add_timer(&tone->tl); in dsp_tone_timeout()
496 dsp_tone(struct dsp *dsp, int tone) in dsp_tone() argument
500 struct dsp_tone *tonet = &dsp->tone; in dsp_tone()
506 if (!tone) { in dsp_tone()
511 tonet->tone = 0; in dsp_tone()
517 while (pattern[i].tone) { in dsp_tone()
518 if (pattern[i].tone == tone) { in dsp_tone()
525 printk(KERN_WARNING "dsp: given tone 0x%x is invalid\n", tone); in dsp_tone()
530 __func__, tone, 0); in dsp_tone()
531 tonet->tone = tone; in dsp_tone()