Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 186) sorted by relevance

12345678

/sound/isa/sb/
Dsb16_csp.c92 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/firewire/motu/
Damdtp-motu.c62 struct amdtp_motu *p = s->protocol; in amdtp_motu_set_parameters() local
95 p->pcm_chunks = pcm_chunks; in amdtp_motu_set_parameters()
96 p->pcm_byte_offset = formats->pcm_byte_offset; in amdtp_motu_set_parameters()
98 p->midi_ports = midi_ports; in amdtp_motu_set_parameters()
99 p->midi_flag_offset = formats->midi_flag_offset; in amdtp_motu_set_parameters()
100 p->midi_byte_offset = formats->midi_byte_offset; in amdtp_motu_set_parameters()
102 p->midi_db_count = 0; in amdtp_motu_set_parameters()
103 p->midi_db_interval = rate / MIDI_BYTES_PER_SECOND; in amdtp_motu_set_parameters()
111 p->next_seconds = 0; in amdtp_motu_set_parameters()
112 p->next_cycles = delay / 3072; in amdtp_motu_set_parameters()
[all …]
/sound/synth/emux/
Demux_seq.c28 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) { 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 p = kzalloc(sizeof(*p), GFP_KERNEL); in snd_emux_create_port()
[all …]
Demux_oss.c103 #define SF_CLIENT_NO(p) ((p) + 0x1000) argument
112 struct snd_emux_port *p; in snd_emux_open_seq_oss() local
128 p = snd_emux_create_port(emu, tmpname, 32, in snd_emux_open_seq_oss()
130 if (p == NULL) { in snd_emux_open_seq_oss()
137 arg->private_data = p; in snd_emux_open_seq_oss()
138 arg->addr.client = p->chset.client; in snd_emux_open_seq_oss()
139 arg->addr.port = p->chset.port; in snd_emux_open_seq_oss()
140 p->oss_arg = arg; in snd_emux_open_seq_oss()
142 reset_port_mode(p, arg->seq_mode); in snd_emux_open_seq_oss()
144 snd_emux_reset_port(p); in snd_emux_open_seq_oss()
[all …]
Demux_effect.c280 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 …]
Demux_voice.h47 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/firewire/
Damdtp-am824.c61 struct amdtp_am824 *p = s->protocol; in amdtp_am824_set_parameters() local
88 p->pcm_channels = pcm_channels; in amdtp_am824_set_parameters()
89 p->midi_ports = midi_ports; in amdtp_am824_set_parameters()
97 p->frame_multiplier = 2; in amdtp_am824_set_parameters()
99 p->frame_multiplier = 1; in amdtp_am824_set_parameters()
103 p->pcm_positions[i] = i; in amdtp_am824_set_parameters()
104 p->midi_position = p->pcm_channels; in amdtp_am824_set_parameters()
112 p->midi_fifo_limit = rate - MIDI_BYTES_PER_SECOND * s->syt_interval + 1; in amdtp_am824_set_parameters()
128 struct amdtp_am824 *p = s->protocol; in amdtp_am824_set_pcm_position() local
130 if (index < p->pcm_channels) in amdtp_am824_set_pcm_position()
[all …]
/sound/drivers/
Dmts64.c141 static void mts64_enable_readout(struct parport *p);
142 static void mts64_disable_readout(struct parport *p);
143 static int mts64_device_ready(struct parport *p);
144 static int mts64_device_init(struct parport *p);
148 static int mts64_probe(struct parport *p);
149 static u16 mts64_read(struct parport *p);
150 static u8 mts64_read_char(struct parport *p);
151 static void mts64_smpte_start(struct parport *p,
155 static void mts64_smpte_stop(struct parport *p);
156 static void mts64_write_command(struct parport *p, u8 c);
[all …]
/sound/usb/
Dhelper.c46 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 …]
/sound/pci/riptide/
Driptide.c180 #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/firewire/digi00x/
Damdtp-dot.c117 struct amdtp_dot *p = s->protocol; in amdtp_dot_set_parameters() local
133 p->pcm_channels = pcm_channels; in amdtp_dot_set_parameters()
141 p->midi_fifo_limit = rate - MIDI_BYTES_PER_SECOND * s->syt_interval + 1; in amdtp_dot_set_parameters()
149 struct amdtp_dot *p = s->protocol; in write_pcm_s32() local
154 channels = p->pcm_channels; in write_pcm_s32()
163 dot_encode_step(&p->state, &buffer[c]); in write_pcm_s32()
175 struct amdtp_dot *p = s->protocol; in read_pcm_s32() local
180 channels = p->pcm_channels; in read_pcm_s32()
200 struct amdtp_dot *p = s->protocol; in write_pcm_silence() local
203 channels = p->pcm_channels; in write_pcm_silence()
[all …]
/sound/usb/usx2y/
Dusb_stream.c63 int u, p; in init_pipe_urbs() local
87 for (p = 1; p < sk->n_o_ps; ++p) { in init_pipe_urbs()
88 desc[p].offset = desc[p - 1].offset + maxpacket; in init_pipe_urbs()
89 desc[p].length = maxpacket; in init_pipe_urbs()
292 int p = 0, lb = 0, l = 0; in usb_stream_prepare_playback() local
297 for (; s->sync_packet < 0; ++p, ++s->sync_packet) { in usb_stream_prepare_playback()
303 od[p].length = l; in usb_stream_prepare_playback()
304 od[p].offset = lb; in usb_stream_prepare_playback()
309 s->sync_packet < inurb->number_of_packets && p < sk->n_o_ps; in usb_stream_prepare_playback()
310 ++p, ++s->sync_packet) { in usb_stream_prepare_playback()
[all …]
/sound/synth/
Dutil_mem.c32 #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/core/seq/oss/
Dseq_oss_ioctl.c78 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/pci/emu10k1/
Dmemory.c172 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/
Dinfo.c94 if (!entry || !entry->p) in alloc_info_private()
369 static int snd_info_seq_show(struct seq_file *seq, void *p) in snd_info_seq_show() argument
474 snd_proc_root->p = proc_mkdir("asound", NULL); in snd_info_init()
475 if (!snd_proc_root->p) in snd_info_init()
529 struct snd_info_entry *p; in snd_info_register_recursive() local
532 if (!entry->p) { in snd_info_register_recursive()
538 list_for_each_entry(p, &entry->children, list) { in snd_info_register_recursive()
539 err = snd_info_register_recursive(p); in snd_info_register_recursive()
554 struct proc_dir_entry *p; in snd_info_card_register() local
569 p = proc_symlink(card->id, snd_proc_root->p, card->proc_root->name); in snd_info_card_register()
[all …]
/sound/oss/dmasound/
Ddmasound_atari.c161 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 …]
Ddmasound_q40.c67 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/
Dseq_midi.c285 unsigned int p, ports; in snd_seq_midisynth_probe() local
342 for (p = 0; p < ports; p++) { in snd_seq_midisynth_probe()
343 ms = &msynth[p]; in snd_seq_midisynth_probe()
345 if (snd_seq_midisynth_new(ms, card, device, p) < 0) in snd_seq_midisynth_probe()
351 port->addr.port = device * (256 / SNDRV_RAWMIDI_DEVICES) + p; in snd_seq_midisynth_probe()
355 if (p < output_count) in snd_seq_midisynth_probe()
359 info->subdevice = p; in snd_seq_midisynth_probe()
365 snprintf(port->name, sizeof(port->name), "%s-%u", info->name, p); in snd_seq_midisynth_probe()
371 sprintf(port->name, "MIDI %d-%d-%u", card->number, device, p); in snd_seq_midisynth_probe()
376 if ((info->flags & SNDRV_RAWMIDI_INFO_OUTPUT) && p < output_count) in snd_seq_midisynth_probe()
[all …]
Dseq_midi_emul.c474 int p = cmd & 0x0f; in get_channel() local
475 if (p == 0) in get_channel()
476 p = 9; in get_channel()
477 else if (p < 10) in get_channel()
478 p--; in get_channel()
479 return p; in get_channel()
542 int p = get_channel(buf[5]); in sysex() local
543 if (p < chset->max_channels) { in sysex()
546 chset->channels[p].drum_channel = 1; in sysex()
548 chset->channels[p].drum_channel = 0; in sysex()
[all …]
/sound/firewire/tascam/
Damdtp-tascam.c21 struct amdtp_tscm *p = s->protocol; in amdtp_tscm_set_parameters() local
27 data_channels = p->pcm_channels; in amdtp_tscm_set_parameters()
40 struct amdtp_tscm *p = s->protocol; in write_pcm_s32() local
45 channels = p->pcm_channels; in write_pcm_s32()
65 struct amdtp_tscm *p = s->protocol; in read_pcm_s32() local
70 channels = p->pcm_channels; in read_pcm_s32()
92 struct amdtp_tscm *p = s->protocol; in write_pcm_silence() local
95 channels = p->pcm_channels; in write_pcm_silence()
159 struct amdtp_tscm *p; in amdtp_tscm_init() local
181 p = s->protocol; in amdtp_tscm_init()
[all …]
/sound/drivers/opl3/
Dopl3_voice.h31 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/usb/line6/
Dplayback.c34 __le16 *p, *buf_end; in change_volume() local
36 p = (__le16 *)urb_out->transfer_buffer; in change_volume()
37 buf_end = p + urb_out->transfer_buffer_length / sizeof(*p); in change_volume()
39 for (; p < buf_end; ++p) { in change_volume()
40 short pv = le16_to_cpu(*p); in change_volume()
43 *p = cpu_to_le16(pv); in change_volume()
47 unsigned char *p, *buf_end; in change_volume() local
49 p = (unsigned char *)urb_out->transfer_buffer; in change_volume()
50 buf_end = p + urb_out->transfer_buffer_length; in change_volume()
52 for (; p < buf_end; p += 3) { in change_volume()
[all …]
/sound/oss/
Dsys_timer.c187 int __user *p = arg; in def_tmr_ioctl() local
192 return __put_user(TMR_INTERNAL, p); in def_tmr_ioctl()
208 if (__get_user(val, p)) in def_tmr_ioctl()
217 return __put_user(curr_timebase, p); in def_tmr_ioctl()
220 if (__get_user(val, p)) in def_tmr_ioctl()
233 return __put_user(curr_tempo, p); in def_tmr_ioctl()
236 if (__get_user(val, p)) in def_tmr_ioctl()
241 return __put_user(val, p); in def_tmr_ioctl()
244 return __put_user(curr_ticks, p); in def_tmr_ioctl()
/sound/pci/hda/
Dhda_sysfs.c156 char *p; in kstrndup_noeol() local
159 p = strchr(s, '\n'); in kstrndup_noeol()
160 if (p) in kstrndup_noeol()
161 *p = 0; in kstrndup_noeol()
295 char *p; in remove_trail_spaces() local
298 p = str + strlen(str) - 1; in remove_trail_spaces()
299 for (; isspace(*p); p--) { in remove_trail_spaces()
300 *p = 0; in remove_trail_spaces()
301 if (p == str) in remove_trail_spaces()
438 const char *p; in snd_hda_get_bool_hint() local
[all …]

12345678