Home
last modified time | relevance | path

Searched refs:hz (Results 1 – 7 of 7) sorted by relevance

/sound/pci/hda/
Dhda_beep.c68 static int beep_linear_tone(struct hda_beep *beep, int hz) in beep_linear_tone() argument
70 if (hz <= 0) in beep_linear_tone()
72 hz *= 1000; /* fixed point */ in beep_linear_tone()
73 hz = hz - DIGBEEP_HZ_MIN in beep_linear_tone()
75 if (hz < 0) in beep_linear_tone()
76 hz = 0; /* turn off PC beep*/ in beep_linear_tone()
77 else if (hz >= (DIGBEEP_HZ_MAX - DIGBEEP_HZ_MIN)) in beep_linear_tone()
78 hz = 1; /* max frequency */ in beep_linear_tone()
80 hz /= DIGBEEP_HZ_STEP; in beep_linear_tone()
81 hz = 255 - hz; in beep_linear_tone()
[all …]
Dhda_codec.c4056 unsigned int hz; member
4110 for (i = 0; rate_bits[i].hz; i++) in snd_hda_calc_stream_format()
4111 if (rate_bits[i].hz == rate) { in snd_hda_calc_stream_format()
4115 if (!rate_bits[i].hz) { in snd_hda_calc_stream_format()
/sound/ppc/
Dbeep.c36 int hz; member
100 unsigned int code, int hz) in snd_pmac_beep_event() argument
115 case SND_BELL: if (hz) hz = 1000; in snd_pmac_beep_event()
124 if (! hz) { in snd_pmac_beep_event()
135 if (hz <= srate / BEEP_BUFLEN || hz > srate / 2) in snd_pmac_beep_event()
136 hz = 1000; in snd_pmac_beep_event()
146 if (hz == beep->hz && beep->volume == beep->volume_play) { in snd_pmac_beep_event()
149 period = srate * 256 / hz; /* fixed point */ in snd_pmac_beep_event()
159 beep->hz = hz; in snd_pmac_beep_event()
/sound/soc/codecs/
Dcs42l52.c996 unsigned int code, int hz) in cs42l52_beep_event() argument
1001 dev_dbg(codec->dev, "Beep event %x %x\n", code, hz); in cs42l52_beep_event()
1005 if (hz) in cs42l52_beep_event()
1006 hz = 261; in cs42l52_beep_event()
1014 cs42l52->beep_rate = hz; in cs42l52_beep_event()
Dwm8962.c3143 unsigned int code, int hz) in wm8962_beep_event() argument
3148 dev_dbg(codec->dev, "Beep event %x %x\n", code, hz); in wm8962_beep_event()
3152 if (hz) in wm8962_beep_event()
3153 hz = 1000; in wm8962_beep_event()
3161 wm8962->beep_rate = hz; in wm8962_beep_event()
/sound/isa/sb/
Demu8000_pcm.c149 static int calc_rate_offset(int hz) in calc_rate_offset() argument
151 return snd_sf_linear_to_log(hz, OFFSET_SAMPLERATE, SAMPLERATE_RATIO); in calc_rate_offset()
/sound/synth/emux/
Dsoundfont.c846 calc_rate_offset(int hz) in calc_rate_offset() argument
848 return snd_sf_linear_to_log(hz, OFFSET_SAMPLERATE, SAMPLERATE_RATIO); in calc_rate_offset()