Lines Matching full:tone
23 /* generate or stop tone */
24 static void generate_tone(struct hda_beep *beep, int tone) in generate_tone() argument
28 if (tone && !beep->playing) { in generate_tone()
35 AC_VERB_SET_BEEP_CONTROL, tone); in generate_tone()
36 if (!tone && beep->playing) { in generate_tone()
50 generate_tone(beep, beep->tone); in snd_hda_generate_beep()
53 /* (non-standard) Linear beep tone calculation for IDT/STAC codecs
55 * The tone frequency of beep generator on IDT/STAC codecs is
56 * defined from the 8bit tone parameter, in Hz,
57 * freq = 48000 * (257 - tone) / 1024
78 /* HD-audio standard beep tone parameter calculation
80 * The tone frequency in Hz is calculated as
81 * freq = 48000 / (tone * 4)
108 beep->tone = beep_linear_tone(beep, hz); in snd_hda_beep_event()
110 beep->tone = beep_standard_tone(beep, hz); in snd_hda_beep_event()