/sound/isa/sb/ |
D | sb16_csp.c | 92 static int snd_sb_csp_riff_load(struct snd_sb_csp * p, 94 static int snd_sb_csp_unload(struct snd_sb_csp * p); 95 static int snd_sb_csp_load_user(struct snd_sb_csp * p, const unsigned char __user *buf, int size, i… 96 static int snd_sb_csp_autoload(struct snd_sb_csp * p, int pcm_sfmt, int play_rec_mode); 97 static int snd_sb_csp_check_version(struct snd_sb_csp * p); 99 static int snd_sb_csp_use(struct snd_sb_csp * p); 100 static int snd_sb_csp_unuse(struct snd_sb_csp * p); 101 static int snd_sb_csp_start(struct snd_sb_csp * p, int sample_width, int channels); 102 static int snd_sb_csp_stop(struct snd_sb_csp * p); 103 static int snd_sb_csp_pause(struct snd_sb_csp * p); [all …]
|
/sound/synth/emux/ |
D | emux_seq.c | 28 static void snd_emux_init_port(struct snd_emux_port *p); 97 struct snd_emux_port *p; in snd_emux_init_seq() local 100 p = snd_emux_create_port(emu, tmpname, MIDI_CHANNELS, in snd_emux_init_seq() 102 if (p == NULL) { in snd_emux_init_seq() 107 p->port_mode = SNDRV_EMUX_PORT_MODE_MIDI; in snd_emux_init_seq() 108 snd_emux_init_port(p); in snd_emux_init_seq() 109 emu->ports[i] = p->chset.port; in snd_emux_init_seq() 110 emu->portptrs[i] = p; in snd_emux_init_seq() 143 struct snd_emux_port *p; in snd_emux_create_port() local 147 if ((p = kzalloc(sizeof(*p), GFP_KERNEL)) == NULL) { in snd_emux_create_port() [all …]
|
D | emux_oss.c | 105 #define SF_CLIENT_NO(p) ((p) + 0x1000) argument 114 struct snd_emux_port *p; in snd_emux_open_seq_oss() local 130 p = snd_emux_create_port(emu, tmpname, 32, in snd_emux_open_seq_oss() 132 if (p == NULL) { in snd_emux_open_seq_oss() 139 arg->private_data = p; in snd_emux_open_seq_oss() 140 arg->addr.client = p->chset.client; in snd_emux_open_seq_oss() 141 arg->addr.port = p->chset.port; in snd_emux_open_seq_oss() 142 p->oss_arg = arg; in snd_emux_open_seq_oss() 144 reset_port_mode(p, arg->seq_mode); in snd_emux_open_seq_oss() 146 snd_emux_reset_port(p); in snd_emux_open_seq_oss() [all …]
|
D | emux_effect.c | 280 snd_emux_create_effect(struct snd_emux_port *p) in snd_emux_create_effect() argument 283 p->effect = kcalloc(p->chset.max_channels, in snd_emux_create_effect() 285 if (p->effect) { in snd_emux_create_effect() 286 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect() 287 p->chset.channels[i].private = p->effect + i; in snd_emux_create_effect() 289 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect() 290 p->chset.channels[i].private = NULL; in snd_emux_create_effect() 295 snd_emux_delete_effect(struct snd_emux_port *p) in snd_emux_delete_effect() argument 297 kfree(p->effect); in snd_emux_delete_effect() 298 p->effect = NULL; in snd_emux_delete_effect() [all …]
|
D | emux_voice.h | 47 void snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan); 48 void snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan); 49 void snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan); 50 void snd_emux_terminate_note(void *p, int note, struct snd_midi_channel *chan); 51 void snd_emux_control(void *p, int type, struct snd_midi_channel *chan); 62 void snd_emux_create_effect(struct snd_emux_port *p); 63 void snd_emux_delete_effect(struct snd_emux_port *p); 64 void snd_emux_clear_effect(struct snd_emux_port *p);
|
/sound/drivers/ |
D | mts64.c | 143 static void mts64_enable_readout(struct parport *p); 144 static void mts64_disable_readout(struct parport *p); 145 static int mts64_device_ready(struct parport *p); 146 static int mts64_device_init(struct parport *p); 150 static int mts64_probe(struct parport *p); 151 static u16 mts64_read(struct parport *p); 152 static u8 mts64_read_char(struct parport *p); 153 static void mts64_smpte_start(struct parport *p, 157 static void mts64_smpte_stop(struct parport *p); 158 static void mts64_write_command(struct parport *p, u8 c); [all …]
|
D | portman2x4.c | 447 static int portman_probe(struct parport *p) in portman_probe() argument 453 parport_write_data(p, 0); in portman_probe() 462 parport_write_control(p, 0); in portman_probe() 466 parport_write_control(p, RXDATA0); /* Write Strobe=0 to command reg. */ in portman_probe() 470 if ((parport_read_status(p) & ESTB) == ESTB) in portman_probe() 475 parport_write_control(p, RXDATA0 + STROBE); /* Write Strobe=1 to command reg. */ in portman_probe() 478 if ((parport_read_status(p) & ESTB) != ESTB) in portman_probe() 482 parport_write_control(p, 0); /* Reset Strobe=0. */ in portman_probe() 488 parport_write_control(p, TXDATA0); /* Tx channel 0, strobe off. */ in portman_probe() 494 if ((parport_read_status(p) & TXEMPTY) == 0) in portman_probe() [all …]
|
/sound/usb/ |
D | helper.c | 46 u8 *p, *end, *next; in snd_usb_find_desc() local 48 p = descstart; in snd_usb_find_desc() 49 end = p + desclen; in snd_usb_find_desc() 50 for (; p < end;) { in snd_usb_find_desc() 51 if (p[0] < 2) in snd_usb_find_desc() 53 next = p + p[0]; in snd_usb_find_desc() 56 if (p[1] == dtype && (!after || (void *)p > after)) { in snd_usb_find_desc() 57 return p; in snd_usb_find_desc() 59 p = next; in snd_usb_find_desc() 69 unsigned char *p = after; in snd_usb_find_csint_desc() local [all …]
|
D | midi.h | 46 void snd_usbmidi_input_stop(struct list_head *p); 47 void snd_usbmidi_input_start(struct list_head *p); 48 void snd_usbmidi_disconnect(struct list_head *p); 49 void snd_usbmidi_suspend(struct list_head *p); 50 void snd_usbmidi_resume(struct list_head *p);
|
D | card.c | 330 struct list_head *p, *n; in snd_usb_audio_free() local 332 list_for_each_safe(p, n, &chip->ep_list) in snd_usb_audio_free() 333 snd_usb_endpoint_free(p); in snd_usb_audio_free() 348 char *p; in remove_trailing_spaces() local 352 for (p = str + strlen(str) - 1; p >= str && isspace(*p); p--) in remove_trailing_spaces() 353 *p = 0; in remove_trailing_spaces() 613 struct list_head *p; in snd_usb_audio_disconnect() local 631 list_for_each(p, &chip->pcm_list) { in snd_usb_audio_disconnect() 632 snd_usb_stream_disconnect(p); in snd_usb_audio_disconnect() 639 list_for_each(p, &chip->midi_list) { in snd_usb_audio_disconnect() [all …]
|
/sound/pci/riptide/ |
D | riptide.c | 180 #define READ_PORT_ULONG(p) inl((unsigned long)&(p)) argument 181 #define WRITE_PORT_ULONG(p,x) outl(x,(unsigned long)&(p)) argument 183 #define READ_AUDIO_CONTROL(p) READ_PORT_ULONG(p->audio_control) argument 184 #define WRITE_AUDIO_CONTROL(p,x) WRITE_PORT_ULONG(p->audio_control,x) argument 185 #define UMASK_AUDIO_CONTROL(p,x) WRITE_PORT_ULONG(p->audio_control,READ_PORT_ULONG(p->audio_contro… argument 186 #define MASK_AUDIO_CONTROL(p,x) WRITE_PORT_ULONG(p->audio_control,READ_PORT_ULONG(p->audio_contro… argument 187 #define READ_AUDIO_STATUS(p) READ_PORT_ULONG(p->audio_status) argument 189 #define SET_GRESET(p) UMASK_AUDIO_CONTROL(p,0x0001) /* global reset switch */ argument 190 #define UNSET_GRESET(p) MASK_AUDIO_CONTROL(p,~0x0001) argument 191 #define SET_AIE(p) UMASK_AUDIO_CONTROL(p,0x0004) /* interrupt enable */ argument [all …]
|
/sound/usb/usx2y/ |
D | usb_stream.c | 63 int u, p; in init_pipe_urbs() local 85 for (p = 1; p < sk->n_o_ps; ++p) { in init_pipe_urbs() 86 desc[p].offset = desc[p - 1].offset + maxpacket; in init_pipe_urbs() 87 desc[p].length = maxpacket; in init_pipe_urbs() 281 int p = 0, lb = 0, l = 0; in usb_stream_prepare_playback() local 286 for (; s->sync_packet < 0; ++p, ++s->sync_packet) { in usb_stream_prepare_playback() 292 od[p].length = l; in usb_stream_prepare_playback() 293 od[p].offset = lb; in usb_stream_prepare_playback() 298 s->sync_packet < inurb->number_of_packets && p < sk->n_o_ps; in usb_stream_prepare_playback() 299 ++p, ++s->sync_packet) { in usb_stream_prepare_playback() [all …]
|
/sound/synth/ |
D | util_mem.c | 32 #define get_memblk(p) list_entry(p, struct snd_util_memblk, list) argument 57 struct list_head *p; in snd_util_memhdr_free() local 62 while ((p = hdr->block.next) != &hdr->block) { in snd_util_memhdr_free() 63 list_del(p); in snd_util_memhdr_free() 64 kfree(get_memblk(p)); in snd_util_memhdr_free() 77 struct list_head *p; in __snd_util_mem_alloc() local 91 list_for_each(p, &hdr->block) { in __snd_util_mem_alloc() 92 blk = get_memblk(p); in __snd_util_mem_alloc() 101 return __snd_util_memblk_new(hdr, units, p->prev); in __snd_util_mem_alloc() 123 struct snd_util_memblk *p = get_memblk(prev); in __snd_util_memblk_new() local [all …]
|
/sound/pci/emu10k1/ |
D | memory.c | 172 struct list_head *p; in unmap_memblk() local 176 if ((p = blk->mapped_link.prev) != &emu->mapped_link_head) { in unmap_memblk() 177 q = get_emu10k1_memblk(p, mapped_link); in unmap_memblk() 181 if ((p = blk->mapped_link.next) != &emu->mapped_link_head) { in unmap_memblk() 182 q = get_emu10k1_memblk(p, mapped_link); in unmap_memblk() 208 struct list_head *p; in search_empty() local 214 list_for_each(p, &emu->memhdr->block) { in search_empty() 215 blk = get_emu10k1_memblk(p, mem.list); in search_empty() 225 …blk = (struct snd_emu10k1_memblk *)__snd_util_memblk_new(emu->memhdr, psize << PAGE_SHIFT, p->prev… in search_empty() 262 struct list_head *p, *nextp; in snd_emu10k1_memblk_map() local [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_ioctl.c | 78 int __user *p = arg; in snd_seq_oss_ioctl() local 110 if (get_user(dev, p)) in snd_seq_oss_ioctl() 117 return put_user(dp->readq->qlen, p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 122 return put_user(snd_seq_oss_writeq_get_free_size(dp->writeq), p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 125 return put_user(snd_seq_oss_timer_cur_tick(dp->timer), p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 128 if (get_user(dev, p)) in snd_seq_oss_ioctl() 133 return put_user(dp->max_synthdev, p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 136 return put_user(dp->max_mididev, p) ? -EFAULT : 0; in snd_seq_oss_ioctl() 139 if (get_user(dev, p)) in snd_seq_oss_ioctl() 142 return put_user(val, p) ? -EFAULT : 0; in snd_seq_oss_ioctl() [all …]
|
/sound/oss/dmasound/ |
D | dmasound_atari.c | 161 u_char *p = &frame[*frameUsed]; in ata_ct_law() local 171 *p++ = table[data]; in ata_ct_law() 184 void *p = &frame[*frameUsed]; in ata_ct_s8() local 190 if (copy_from_user(p, userPtr, count)) in ata_ct_s8() 204 u_char *p = &frame[*frameUsed]; in ata_ct_u8() local 211 *p++ = data ^ 0x80; in ata_ct_u8() 215 u_short *p = (u_short *)&frame[*frameUsed]; in ata_ct_u8() local 223 *p++ = data ^ 0x8080; in ata_ct_u8() 239 u_short *p = (u_short *)&frame[*frameUsed]; in ata_ct_s16be() local 247 *p++ = data; in ata_ct_s16be() [all …]
|
D | dmasound_q40.c | 67 u_char *p = (u_char *) &frame[*frameUsed]; in q40_ct_law() local 70 if (copy_from_user(p,userPtr,count)) in q40_ct_law() 73 *p = table[*p]+128; in q40_ct_law() 74 p++; in q40_ct_law() 87 u_char *p = (u_char *) &frame[*frameUsed]; in q40_ct_s8() local 90 if (copy_from_user(p,userPtr,count)) in q40_ct_s8() 93 *p = *p + 128; in q40_ct_s8() 94 p++; in q40_ct_s8() 106 u_char *p = (u_char *) &frame[*frameUsed]; in q40_ct_u8() local 109 if (copy_from_user(p,userPtr,count)) in q40_ct_u8() [all …]
|
/sound/core/seq/ |
D | seq_midi.c | 285 unsigned int p, ports; in snd_seq_midisynth_register_port() local 342 for (p = 0; p < ports; p++) { in snd_seq_midisynth_register_port() 343 ms = &msynth[p]; in snd_seq_midisynth_register_port() 345 if (snd_seq_midisynth_new(ms, card, device, p) < 0) in snd_seq_midisynth_register_port() 351 port->addr.port = device * (256 / SNDRV_RAWMIDI_DEVICES) + p; in snd_seq_midisynth_register_port() 355 if (p < output_count) in snd_seq_midisynth_register_port() 359 info->subdevice = p; in snd_seq_midisynth_register_port() 365 snprintf(port->name, sizeof(port->name), "%s-%u", info->name, p); in snd_seq_midisynth_register_port() 371 sprintf(port->name, "MIDI %d-%d-%u", card->number, device, p); in snd_seq_midisynth_register_port() 376 if ((info->flags & SNDRV_RAWMIDI_INFO_OUTPUT) && p < output_count) in snd_seq_midisynth_register_port() [all …]
|
D | seq_midi_emul.c | 469 int p = cmd & 0x0f; in get_channel() local 470 if (p == 0) in get_channel() 471 p = 9; in get_channel() 472 else if (p < 10) in get_channel() 473 p--; in get_channel() 474 return p; in get_channel() 537 int p = get_channel(buf[5]); in sysex() local 538 if (p < chset->max_channels) { in sysex() 541 chset->channels[p].drum_channel = 1; in sysex() 543 chset->channels[p].drum_channel = 0; in sysex() [all …]
|
D | seq_ports.c | 132 struct snd_seq_client_port *new_port, *p; in snd_seq_create_port() local 161 list_for_each_entry(p, &client->ports_list_head, list) { in snd_seq_create_port() 162 if (p->addr.port > num) in snd_seq_create_port() 165 num = p->addr.port + 1; in snd_seq_create_port() 168 list_add_tail(&new_port->list, &p->list); in snd_seq_create_port() 192 struct snd_seq_client_port *p; in get_client_port() local 195 p = snd_seq_port_use_ptr(*cp, addr->port); in get_client_port() 196 if (! p) { in get_client_port() 200 return p; in get_client_port() 211 get_subscriber(struct list_head *p, bool is_src) in get_subscriber() argument [all …]
|
/sound/drivers/opl3/ |
D | opl3_voice.h | 31 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan); 32 void snd_opl3_note_off(void *p, int note, int vel, struct snd_midi_channel *chan); 33 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan); 34 void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan); 35 void snd_opl3_control(void *p, int type, struct snd_midi_channel *chan); 36 void snd_opl3_nrpn(void *p, struct snd_midi_channel *chan, struct snd_midi_channel_set *chset); 37 void snd_opl3_sysex(void *p, unsigned char *buf, int len, int parsed, struct snd_midi_channel_set *…
|
/sound/pci/hda/ |
D | hda_sysfs.c | 164 char *p; in kstrndup_noeol() local 167 p = strchr(s, '\n'); in kstrndup_noeol() 168 if (p) in kstrndup_noeol() 169 *p = 0; in kstrndup_noeol() 303 char *p; in remove_trail_spaces() local 306 p = str + strlen(str) - 1; in remove_trail_spaces() 307 for (; isspace(*p); p--) { in remove_trail_spaces() 308 *p = 0; in remove_trail_spaces() 309 if (p == str) in remove_trail_spaces() 432 const char *p; in snd_hda_get_bool_hint() local [all …]
|
/sound/oss/ |
D | sys_timer.c | 192 int __user *p = arg; in def_tmr_ioctl() local 197 return __put_user(TMR_INTERNAL, p); in def_tmr_ioctl() 213 if (__get_user(val, p)) in def_tmr_ioctl() 222 return __put_user(curr_timebase, p); in def_tmr_ioctl() 225 if (__get_user(val, p)) in def_tmr_ioctl() 238 return __put_user(curr_tempo, p); in def_tmr_ioctl() 241 if (__get_user(val, p)) in def_tmr_ioctl() 246 return __put_user(val, p); in def_tmr_ioctl() 249 return __put_user(curr_ticks, p); in def_tmr_ioctl()
|
/sound/core/ |
D | info.c | 310 if (entry == NULL || ! entry->p) { in snd_info_entry_open() 529 struct proc_dir_entry *p; in snd_info_init() local 531 p = proc_mkdir("asound", NULL); in snd_info_init() 532 if (p == NULL) in snd_info_init() 534 snd_proc_root = p; in snd_info_init() 621 struct proc_dir_entry *p; in snd_info_card_register() local 629 p = proc_symlink(card->id, snd_proc_root, card->proc_root->name); in snd_info_card_register() 630 if (p == NULL) in snd_info_card_register() 632 card->proc_root_link = p; in snd_info_card_register() 838 struct list_head *p, *n; in snd_info_disconnect() local [all …]
|
/sound/ |
D | sound_core.c | 231 struct sound_unit *p=*list; in __sound_remove_unit() local 232 if(p->unit_minor==unit) in __sound_remove_unit() 234 *list=p->next; in __sound_remove_unit() 235 return p; in __sound_remove_unit() 237 list=&(p->next); in __sound_remove_unit() 311 struct sound_unit *p; in sound_remove_unit() local 314 p = __sound_remove_unit(list, unit); in sound_remove_unit() 316 if (p) { in sound_remove_unit() 318 __unregister_chrdev(SOUND_MAJOR, p->unit_minor, 1, in sound_remove_unit() 319 p->name); in sound_remove_unit() [all …]
|