Home
last modified time | relevance | path

Searched refs:speed (Results 1 – 25 of 39) sorted by relevance

12

/sound/oss/
Dsb_audio.c285 static int sb1_audio_set_speed(int dev, int speed) in sb1_audio_set_speed() argument
294 if (speed > 0) in sb1_audio_set_speed()
296 if (speed < 4000) in sb1_audio_set_speed()
297 speed = 4000; in sb1_audio_set_speed()
299 if (speed > max_speed) in sb1_audio_set_speed()
300 speed = max_speed; in sb1_audio_set_speed()
302 devc->tconst = (256 - ((1000000 + speed / 2) / speed)) & 0xff; in sb1_audio_set_speed()
304 speed = (1000000 + tmp / 2) / tmp; in sb1_audio_set_speed()
306 devc->speed = speed; in sb1_audio_set_speed()
308 return devc->speed; in sb1_audio_set_speed()
[all …]
Dwaveartist.c141 int speed; member
526 unsigned int speed; in waveartist_get_speed() local
531 if (portc->speed == 8000) in waveartist_get_speed()
532 speed = 0x2E71; in waveartist_get_speed()
533 else if (portc->speed == 11025) in waveartist_get_speed()
534 speed = 0x4000; in waveartist_get_speed()
535 else if (portc->speed == 22050) in waveartist_get_speed()
536 speed = 0x8000; in waveartist_get_speed()
537 else if (portc->speed == 44100) in waveartist_get_speed()
538 speed = 0x0; in waveartist_get_speed()
[all …]
Dsb_ess.c318 int speed, diff; in ess_calc_div() local
321 speed = *speedp; in ess_calc_div()
322 divider = (clock + speed / 2) / speed; in ess_calc_div()
333 diff = speed - *speedp; in ess_calc_div()
406 int speed; in ess_speed() local
409 ess_common_speed (devc, &(devc->speed), &div); in ess_speed()
412 printk (KERN_INFO "FKS: ess_speed (%d) b speed = %d, div=%x\n", audionum, devc->speed, div); in ess_speed()
416 speed = (devc->speed * 9) / 20; in ess_speed()
418 div2 = 256 - 7160000 / (speed * 82); in ess_speed()
670 static int ess_audio_set_speed(int dev, int speed) in ess_audio_set_speed() argument
[all …]
Dad1848.c109 int speed; member
779 int speed; in ad1848_set_speed() member
808 return portc->speed; in ad1848_set_speed()
817 portc->speed = arg; in ad1848_set_speed()
819 return portc->speed; in ad1848_set_speed()
821 if (arg < speed_table[0].speed) in ad1848_set_speed()
823 if (arg > speed_table[n - 1].speed) in ad1848_set_speed()
828 if (speed_table[i].speed == arg) in ad1848_set_speed()
830 else if (speed_table[i].speed > arg) in ad1848_set_speed()
834 diff1 = arg - speed_table[i - 1].speed; in ad1848_set_speed()
[all …]
Dsb.h104 int speed, bits, channels; member
/sound/oss/dmasound/
Ddmasound_q40.c126 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctx_law()
162 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctx_s8()
199 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctx_u8()
236 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctc_law()
275 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctc_s8()
314 int hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in q40_ctc_u8()
404 u_char speed; in Q40PlayNextFrame() local
419 speed=(dmasound.hard.speed==10000 ? 0 : 1); in Q40PlayNextFrame()
432 master_outb( speed, SAMPLE_RATE_REG); in Q40PlayNextFrame()
516 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) <= catchRadius) in Q40Init()
[all …]
Ddmasound_atari.c392 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_law()
452 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s8()
506 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u8()
562 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s16be()
618 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u16be()
676 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_s16le()
734 long hSpeed = dmasound.hard.speed, sSpeed = dmasound.soft.speed; in ata_ctx_u16le()
918 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) < catchRadius) in TTInit()
921 dmasound.soft.speed = freq[idx]; in TTInit()
929 if (dmasound.hard.speed > 50066) { in TTInit()
[all …]
Ddmasound_core.c238 static int sound_set_speed(int speed) in sound_set_speed() argument
240 if (speed < 0) in sound_set_speed()
241 return dmasound.soft.speed; in sound_set_speed()
249 (speed > dmasound.mach.max_dsp_speed)) in sound_set_speed()
250 speed = dmasound.mach.max_dsp_speed ; in sound_set_speed()
252 dmasound.soft.speed = speed; in sound_set_speed()
255 dmasound.dsp.speed = dmasound.soft.speed; in sound_set_speed()
257 return dmasound.soft.speed; in sound_set_speed()
501 sq->block_size *= dmasound.hard.speed ; in sq_setup()
502 sq->block_size /= dmasound.soft.speed ; in sq_setup()
[all …]
Ddmasound_paula.c363 if (dmasound.soft.speed) in AmiInit()
364 period = amiga_colorclock/dmasound.soft.speed-1; in AmiInit()
376 dmasound.hard.speed = amiga_colorclock/(period+1); in AmiInit()
674 .speed = 8000
681 .speed = 8000
Ddmasound.h102 int speed; /* speed */ member
/sound/firewire/
Diso-resources.c49 static unsigned int packet_bandwidth(unsigned int max_payload_bytes, int speed) in packet_bandwidth() argument
57 if (speed <= SCODE_400) in packet_bandwidth()
58 s400_bytes = bytes * (1 << (SCODE_400 - speed)); in packet_bandwidth()
60 s400_bytes = DIV_ROUND_UP(bytes, 1 << (speed - SCODE_400)); in packet_bandwidth()
107 unsigned int max_payload_bytes, int speed) in fw_iso_resources_allocate() argument
115 r->bandwidth = packet_bandwidth(max_payload_bytes, speed); in fw_iso_resources_allocate()
Dcmp.c222 if (c->speed > SCODE_400) { in opcr_set_modify()
224 xspd = c->speed - SCODE_800; in opcr_set_modify()
226 spd = c->speed; in opcr_set_modify()
279 c->speed = min(c->max_speed, in cmp_connection_establish()
286 max_payload_bytes, c->speed); in cmp_connection_establish()
Diso-resources.h34 unsigned int max_payload_bytes, int speed);
Dcmp.h26 int speed; member
Damdtp.h156 int amdtp_stream_start(struct amdtp_stream *s, int channel, int speed);
/sound/drivers/
Dserial-u16550.c75 static int speed[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 38400}; /* 9600,19200,38400,57600,1152… variable
92 module_param_array(speed, int, NULL, 0444);
93 MODULE_PARM_DESC(speed, "Speed in bauds.");
135 unsigned int speed; member
789 unsigned int speed, in snd_uart16550_create() argument
826 uart->divisor = base / speed; in snd_uart16550_create()
827 uart->speed = base / (unsigned int)uart->divisor; in snd_uart16550_create()
956 speed[dev], in snd_serial_probe()
/sound/pci/pcxhr/
Dpcxhr_mix22.c355 unsigned int speed, pllreg = 0; in hr222_sub_set_clock() local
393 speed = rate < 55000 ? 0 : 1; in hr222_sub_set_clock()
394 if (mgr->codec_speed != speed) { in hr222_sub_set_clock()
395 mgr->codec_speed = speed; in hr222_sub_set_clock()
396 if (speed == 0) in hr222_sub_set_clock()
Dpcxhr.c325 unsigned int val, realfreq, speed; in pcxhr_sub_set_clock() local
335 speed = 0; /* single speed */ in pcxhr_sub_set_clock()
337 speed = 1; /* dual speed */ in pcxhr_sub_set_clock()
339 speed = 2; /* quad speed */ in pcxhr_sub_set_clock()
340 if (mgr->codec_speed != speed) { in pcxhr_sub_set_clock()
353 rmh.cmd[1] = speed; in pcxhr_sub_set_clock()
370 if (mgr->codec_speed != speed) { in pcxhr_sub_set_clock()
380 mgr->codec_speed = speed; /* save new codec speed */ in pcxhr_sub_set_clock()
/sound/usb/
Dproc.c110 if (subs->speed != USB_SPEED_FULL) in proc_dump_substream_formats()
127 subs->speed == USB_SPEED_FULL in proc_dump_ep_status()
Dhelper.h28 #define snd_usb_get_speed(dev) ((dev)->speed)
Dcard.h140 unsigned int speed; /* USB_SPEED_XXX */ member
/sound/ppc/
Dpmac.h177 void snd_pmac_beep_dma_start(struct snd_pmac *chip, int bytes, unsigned long addr, int speed);
/sound/soc/codecs/
Dcs42xx8.c177 unsigned char speed; member
273 fm = cs42xx8->slave_mode ? CS42XX8_FM_AUTO : cs42xx8_ratios[i].speed; in cs42xx8_hw_params()
/sound/usb/usx2y/
Dus122l.c339 if (us122l->dev->speed == USB_SPEED_HIGH) { in us122l_start()
400 high_speed = us122l->dev->speed == USB_SPEED_HIGH; in usb_stream_hwdep_ioctl()
613 && device->speed == USB_SPEED_HIGH) { in snd_us122l_probe()
Dusb_stream.c162 int usb_frames = dev->speed == USB_SPEED_HIGH ? 8000 : 1000; in usb_stream_new()
179 if (dev->speed == USB_SPEED_HIGH) in usb_stream_new()
224 if (dev->speed == USB_SPEED_FULL) in usb_stream_new()

12