/sound/oss/ |
D | sb_audio.c | 285 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 …]
|
D | waveartist.c | 141 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 …]
|
D | sb_ess.c | 318 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 …]
|
D | ad1848.c | 109 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 …]
|
D | sb.h | 104 int speed, bits, channels; member
|
/sound/oss/dmasound/ |
D | dmasound_q40.c | 126 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 …]
|
D | dmasound_atari.c | 392 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 …]
|
D | dmasound_core.c | 238 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 …]
|
D | dmasound_paula.c | 363 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
|
D | dmasound.h | 102 int speed; /* speed */ member
|
/sound/firewire/ |
D | iso-resources.c | 49 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()
|
D | cmp.c | 222 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()
|
D | iso-resources.h | 34 unsigned int max_payload_bytes, int speed);
|
D | cmp.h | 26 int speed; member
|
D | amdtp.h | 156 int amdtp_stream_start(struct amdtp_stream *s, int channel, int speed);
|
/sound/drivers/ |
D | serial-u16550.c | 75 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/ |
D | pcxhr_mix22.c | 355 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()
|
D | pcxhr.c | 325 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/ |
D | proc.c | 110 if (subs->speed != USB_SPEED_FULL) in proc_dump_substream_formats() 127 subs->speed == USB_SPEED_FULL in proc_dump_ep_status()
|
D | helper.h | 28 #define snd_usb_get_speed(dev) ((dev)->speed)
|
D | card.h | 140 unsigned int speed; /* USB_SPEED_XXX */ member
|
/sound/ppc/ |
D | pmac.h | 177 void snd_pmac_beep_dma_start(struct snd_pmac *chip, int bytes, unsigned long addr, int speed);
|
/sound/soc/codecs/ |
D | cs42xx8.c | 177 unsigned char speed; member 273 fm = cs42xx8->slave_mode ? CS42XX8_FM_AUTO : cs42xx8_ratios[i].speed; in cs42xx8_hw_params()
|
/sound/usb/usx2y/ |
D | us122l.c | 339 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()
|
D | usb_stream.c | 162 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()
|