Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 191) sorted by relevance

12345678

/sound/core/seq/
Dseq_ports.c47 struct snd_seq_client_port *port; in snd_seq_port_use_ptr() local
52 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_use_ptr()
53 if (port->addr.port == num) { in snd_seq_port_use_ptr()
54 if (port->closing) in snd_seq_port_use_ptr()
56 snd_use_lock_use(&port->use_lock); in snd_seq_port_use_ptr()
58 return port; in snd_seq_port_use_ptr()
71 struct snd_seq_client_port *port, *found; in snd_seq_port_query_nearest() local
73 num = pinfo->addr.port; in snd_seq_port_query_nearest()
76 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_query_nearest()
77 if (port->addr.port < num) in snd_seq_port_query_nearest()
[all …]
Dseq_system.c55 static int setheader(struct snd_seq_event * ev, int client, int port) in setheader() argument
66 ev->source.port = announce_port; in setheader()
72 ev->data.addr.port = port; in setheader()
79 void snd_seq_system_broadcast(int client, int port, int type) in snd_seq_system_broadcast() argument
83 if (setheader(&ev, client, port) < 0) in snd_seq_system_broadcast()
90 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev) in snd_seq_system_notify() argument
94 ev->source.port = announce_port; in snd_seq_system_notify()
96 ev->dest.port = port; in snd_seq_system_notify()
110 struct snd_seq_port_info *port; in snd_seq_system_client_init() local
113 port = kzalloc(sizeof(*port), GFP_KERNEL); in snd_seq_system_client_init()
[all …]
Dseq_midi.c87 ev.source.port = msynth->seq_port; in snd_midi_input_event()
269 struct snd_seq_port_info *port; in snd_seq_midisynth_probe() local
326 port = kmalloc(sizeof(*port), GFP_KERNEL); in snd_seq_midisynth_probe()
327 if (msynth == NULL || port == NULL) in snd_seq_midisynth_probe()
337 memset(port, 0, sizeof(*port)); in snd_seq_midisynth_probe()
338 port->addr.client = client->seq_client; in snd_seq_midisynth_probe()
339 port->addr.port = device * (256 / SNDRV_RAWMIDI_DEVICES) + p; in snd_seq_midisynth_probe()
340 port->flags = SNDRV_SEQ_PORT_FLG_GIVEN_PORT; in snd_seq_midisynth_probe()
349 strcpy(port->name, info->subname); in snd_seq_midisynth_probe()
350 if (! port->name[0]) { in snd_seq_midisynth_probe()
[all …]
Dseq_system.h13 void snd_seq_system_broadcast(int client, int port, int type);
18 #define snd_seq_system_client_ev_port_start(client, port) snd_seq_system_broadcast(client, port, SN… argument
19 #define snd_seq_system_client_ev_port_exit(client, port) snd_seq_system_broadcast(client, port, SND… argument
20 #define snd_seq_system_client_ev_port_change(client, port) snd_seq_system_broadcast(client, port, S… argument
22 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev);
/sound/firewire/tascam/
Dtascam-transaction.c60 static int fill_message(struct snd_fw_async_midi_port *port, in fill_message() argument
68 label = port->buf; in fill_message()
69 msg = port->buf + 1; in fill_message()
76 if (port->on_sysex) { in fill_message()
80 port->on_sysex = false; in fill_message()
86 if (!port->on_sysex) { in fill_message()
102 port->on_sysex = true; in fill_message()
107 status = port->running_status; in fill_message()
125 msg[0] = port->running_status; in fill_message()
132 port->running_status = msg[0]; in fill_message()
[all …]
/sound/pci/emu10k1/
Dio.c38 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read()
39 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read()
45 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read()
46 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read()
74 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_write()
75 data |= inl(emu->port + DATA) & ~mask; in snd_emu10k1_ptr_write()
76 outl(data, emu->port + DATA); in snd_emu10k1_ptr_write()
80 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_write()
81 outl(data, emu->port + DATA); in snd_emu10k1_ptr_write()
98 outl(regptr, emu->port + 0x20 + PTR); in snd_emu10k1_ptr20_read()
[all …]
Demu10k1_main.c151 HCFG_MUTEBUTTONENABLE, emu->port + HCFG); in snd_emu10k1_init()
162 outl(0, emu->port + INTE); in snd_emu10k1_init()
199 outl(0x0201, emu->port + HCFG2); in snd_emu10k1_init()
213 outl(0x600000, emu->port + 0x20); in snd_emu10k1_init()
214 outl(0x14, emu->port + 0x24); in snd_emu10k1_init()
217 outl(0x7b0000, emu->port + 0x20); in snd_emu10k1_init()
218 outl(0xFF000000, emu->port + 0x24); in snd_emu10k1_init()
224 outl(0x7a0000, emu->port + 0x20); in snd_emu10k1_init()
225 outl(0xFF000000, emu->port + 0x24); in snd_emu10k1_init()
226 tmp = inl(emu->port + A_IOCFG) & ~0x8; /* Clear bit 3 */ in snd_emu10k1_init()
[all …]
/sound/synth/emux/
Demux_oss.c28 static void reset_port_mode(struct snd_emux_port *port, int midi_mode);
29 static void emuspec_control(struct snd_emux *emu, struct snd_emux_port *port,
31 static void gusspec_control(struct snd_emux *emu, struct snd_emux_port *port,
33 static void fake_event(struct snd_emux *emu, struct snd_emux_port *port,
126 arg->addr.port = p->chset.port; in snd_emux_open_seq_oss()
142 reset_port_mode(struct snd_emux_port *port, int midi_mode) in reset_port_mode() argument
145 port->port_mode = SNDRV_EMUX_PORT_MODE_OSS_MIDI; in reset_port_mode()
146 port->drum_flags = DEFAULT_DRUM_FLAGS; in reset_port_mode()
147 port->volume_atten = 0; in reset_port_mode()
148 port->oss_arg->event_passing = SNDRV_SEQ_OSS_PROCESS_KEYPRESS; in reset_port_mode()
[all …]
Demux_synth.c26 static int get_zone(struct snd_emux *emu, struct snd_emux_port *port,
29 static int get_bank(struct snd_emux_port *port, struct snd_midi_channel *chan);
32 static void exclusive_note_off(struct snd_emux *emu, struct snd_emux_port *port,
53 struct snd_emux_port *port; in snd_emux_note_on() local
55 port = p; in snd_emux_note_on()
56 if (snd_BUG_ON(!port || !chan)) in snd_emux_note_on()
59 emu = port->emu; in snd_emux_note_on()
64 nvoices = get_zone(emu, port, &note, vel, chan, table); in snd_emux_note_on()
72 exclusive_note_off(emu, port, zp->v.exclusiveClass); in snd_emux_note_on()
89 vp = emu->ops.get_voice(emu, port); in snd_emux_note_on()
[all …]
Demux_nrpn.c39 struct snd_emux_port *port, in send_converted_effect() argument
47 snd_emux_send_effect(port, chan, table[i].effect, in send_converted_effect()
276 struct snd_emux_port *port; in snd_emux_nrpn() local
278 port = p; in snd_emux_nrpn()
279 if (snd_BUG_ON(!port || !chan)) in snd_emux_nrpn()
292 port, chan, chan->control[MIDI_CTL_NONREG_PARM_NUM_LSB], in snd_emux_nrpn()
297 if (port->chset.midi_mode == SNDRV_MIDI_MODE_GS && in snd_emux_nrpn()
305 port, chan, chan->control[MIDI_CTL_NONREG_PARM_NUM_LSB], in snd_emux_nrpn()
349 snd_emux_xg_control(struct snd_emux_port *port, struct snd_midi_channel *chan, in snd_emux_xg_control() argument
356 port, chan, param, in snd_emux_xg_control()
[all …]
Demux_seq.c96 emu->ports[i] = p->chset.port; in snd_emux_init_seq()
164 p->chset.port = snd_seq_event_port_attach(emu->client, callback, in snd_emux_create_port()
210 snd_emux_reset_port(struct snd_emux_port *port) in snd_emux_reset_port() argument
215 snd_emux_sounds_off_all(port); in snd_emux_reset_port()
217 snd_midi_channel_set_clear(&port->chset); in snd_emux_reset_port()
220 snd_emux_clear_effect(port); in snd_emux_reset_port()
224 port->ctrls[EMUX_MD_DEF_BANK] = 0; in snd_emux_reset_port()
225 port->ctrls[EMUX_MD_DEF_DRUM] = 0; in snd_emux_reset_port()
226 port->ctrls[EMUX_MD_REALTIME_PAN] = 1; in snd_emux_reset_port()
228 for (i = 0; i < port->chset.max_channels; i++) { in snd_emux_reset_port()
[all …]
/sound/core/seq/oss/
Dseq_oss_init.c66 struct snd_seq_port_info *port; in snd_seq_oss_create_client() local
69 port = kmalloc(sizeof(*port), GFP_KERNEL); in snd_seq_oss_create_client()
70 if (!port) { in snd_seq_oss_create_client()
84 memset(port, 0, sizeof(*port)); in snd_seq_oss_create_client()
85 strcpy(port->name, "Receiver"); in snd_seq_oss_create_client()
86 port->addr.client = system_client; in snd_seq_oss_create_client()
87 port->capability = SNDRV_SEQ_PORT_CAP_WRITE; /* receive only */ in snd_seq_oss_create_client()
88 port->type = 0; in snd_seq_oss_create_client()
95 port->kernel = &port_callback; in snd_seq_oss_create_client()
97 call_ctl(SNDRV_SEQ_IOCTL_CREATE_PORT, port); in snd_seq_oss_create_client()
[all …]
/sound/isa/
Dcmi8328.c40 static long port[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = SNDRV_AUTO_PORT}; variable
55 module_param_hw_array(port, long, ioport, NULL, 0444);
56 MODULE_PARM_DESC(port, "Port # for CMI8328 driver.");
74 u16 port; member
114 static u8 snd_cmi8328_cfg_read(u16 port, u8 reg) in snd_cmi8328_cfg_read() argument
116 outb(0x43, port + 3); in snd_cmi8328_cfg_read()
117 outb(0x21, port + 3); in snd_cmi8328_cfg_read()
118 outb(reg, port + 3); in snd_cmi8328_cfg_read()
119 return inb(port); in snd_cmi8328_cfg_read()
122 static void snd_cmi8328_cfg_write(u16 port, u8 reg, u8 val) in snd_cmi8328_cfg_write() argument
[all …]
/sound/soc/qcom/qdsp6/
Dq6afe.c714 struct q6afe_port *port; in q6afe_port_free() local
718 port = container_of(ref, struct q6afe_port, refcount); in q6afe_port_free()
719 afe = port->afe; in q6afe_port_free()
721 list_del(&port->node); in q6afe_port_free()
723 kfree(port->scfg); in q6afe_port_free()
724 kfree(port); in q6afe_port_free()
750 struct q6afe_port *port; in q6afe_callback() local
767 port = q6afe_find_port(afe, hdr->token); in q6afe_callback()
768 if (port) { in q6afe_callback()
769 port->result = *res; in q6afe_callback()
[all …]
Dq6asm.c193 struct audio_port_data port[2]; member
260 if (ac->port[dir].mem_map_handle == 0) { in __q6asm_memory_unmap()
280 mem_unmap->mem_map_handle = ac->port[dir].mem_map_handle; in __q6asm_memory_unmap()
288 ac->port[dir].mem_map_handle = 0; in __q6asm_memory_unmap()
296 struct audio_port_data *port) in q6asm_audio_client_free_buf() argument
301 port->num_periods = 0; in q6asm_audio_client_free_buf()
302 kfree(port->buf); in q6asm_audio_client_free_buf()
303 port->buf = NULL; in q6asm_audio_client_free_buf()
317 struct audio_port_data *port; in q6asm_unmap_memory_regions() local
321 port = &ac->port[dir]; in q6asm_unmap_memory_regions()
[all …]
/sound/isa/galaxy/
Dgalaxy.c34 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; variable
43 module_param_hw_array(port, long, ioport, NULL, 0444);
44 MODULE_PARM_DESC(port, "Port # for " CRD_NAME " driver.");
74 static int dsp_get_byte(void __iomem *port, u8 *val) in dsp_get_byte() argument
78 while (!(ioread8(port + DSP_PORT_DATA_AVAIL) & 0x80)) { in dsp_get_byte()
83 *val = ioread8(port + DSP_PORT_READ); in dsp_get_byte()
87 static int dsp_reset(void __iomem *port) in dsp_reset() argument
91 iowrite8(1, port + DSP_PORT_RESET); in dsp_reset()
93 iowrite8(0, port + DSP_PORT_RESET); in dsp_reset()
95 if (dsp_get_byte(port, &val) < 0 || val != DSP_SIGNATURE) in dsp_reset()
[all …]
/sound/soc/codecs/
Dhdac_hdmi.c114 struct hdac_hdmi_port *port; member
164 struct hdac_hdmi_port *port, bool is_connect) in hdac_hdmi_jack_report() argument
166 struct hdac_device *hdev = port->pin->hdev; in hdac_hdmi_jack_report()
168 port->is_connect = is_connect; in hdac_hdmi_jack_report()
196 static void hdac_hdmi_port_dapm_update(struct hdac_hdmi_port *port) in hdac_hdmi_port_dapm_update() argument
198 if (port->is_connect) in hdac_hdmi_port_dapm_update()
199 snd_soc_dapm_enable_pin(port->dapm, port->jack_pin); in hdac_hdmi_port_dapm_update()
201 snd_soc_dapm_disable_pin(port->dapm, port->jack_pin); in hdac_hdmi_port_dapm_update()
202 snd_soc_dapm_sync(port->dapm); in hdac_hdmi_port_dapm_update()
207 struct hdac_hdmi_port *port; in hdac_hdmi_jack_dapm_work() local
[all …]
/sound/firewire/fireface/
Dff-transaction.c10 static void finish_transmit_midi_msg(struct snd_ff *ff, unsigned int port, in finish_transmit_midi_msg() argument
14 READ_ONCE(ff->rx_midi_substreams[port]); in finish_transmit_midi_msg()
17 ff->rx_midi_error[port] = true; in finish_transmit_midi_msg()
23 ff->next_ktime[port] = 0; in finish_transmit_midi_msg()
24 schedule_work(&ff->rx_midi_work[port]); in finish_transmit_midi_msg()
28 snd_rawmidi_transmit_ack(substream, ff->rx_bytes[port]); in finish_transmit_midi_msg()
29 ff->rx_bytes[port] = 0; in finish_transmit_midi_msg()
32 schedule_work(&ff->rx_midi_work[port]); in finish_transmit_midi_msg()
53 static void transmit_midi_msg(struct snd_ff *ff, unsigned int port) in transmit_midi_msg() argument
56 READ_ONCE(ff->rx_midi_substreams[port]); in transmit_midi_msg()
[all …]
/sound/pci/
Dals300.c103 unsigned long port; member
138 static inline u32 snd_als300_gcr_read(unsigned long port, unsigned short reg) in snd_als300_gcr_read() argument
140 outb(reg, port+GCR_INDEX); in snd_als300_gcr_read()
141 return inl(port+GCR_DATA); in snd_als300_gcr_read()
144 static inline void snd_als300_gcr_write(unsigned long port, in snd_als300_gcr_write() argument
147 outb(reg, port+GCR_INDEX); in snd_als300_gcr_write()
148 outl(val, port+GCR_DATA); in snd_als300_gcr_write()
154 u32 tmp = snd_als300_gcr_read(chip->port, MISC_CONTROL); in snd_als300_set_irq_flag()
164 snd_als300_gcr_write(chip->port, MISC_CONTROL, tmp); in snd_als300_set_irq_flag()
190 status = inb(chip->port+ALS300_IRQ_STATUS); in snd_als300_interrupt()
[all …]
/sound/firewire/digi00x/
Damdtp-dot.c224 static bool midi_ratelimit_per_packet(struct amdtp_stream *s, unsigned int port) in midi_ratelimit_per_packet() argument
229 used = p->midi_fifo_used[port]; in midi_ratelimit_per_packet()
235 p->midi_fifo_used[port] = used; in midi_ratelimit_per_packet()
241 unsigned int port, unsigned int count) in midi_use_bytes() argument
245 p->midi_fifo_used[port] += amdtp_rate_table[s->sfc] * count; in midi_use_bytes()
252 unsigned int f, port; in write_midi_messages() local
257 port = (data_block_counter + f) % 8; in write_midi_messages()
261 if (port < MAX_MIDI_PORTS && in write_midi_messages()
262 midi_ratelimit_per_packet(s, port) && in write_midi_messages()
263 p->midi[port] != NULL) in write_midi_messages()
[all …]
/sound/isa/sb/
Djazz16.c40 static unsigned long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; variable
53 module_param_hw_array(port, long, ioport, NULL, 0444);
54 MODULE_PARM_DESC(port, "Port # for jazz16 driver.");
81 static int jazz16_configure_ports(unsigned long port, in jazz16_configure_ports() argument
94 val = port & 0x70; in jazz16_configure_ports()
102 static int jazz16_detect_board(unsigned long port, in jazz16_detect_board() argument
109 if (!request_region(port, 0x10, "jazz16")) { in jazz16_detect_board()
114 chip.port = port; in jazz16_detect_board()
119 err = jazz16_configure_ports(port, mpu_port, val); in jazz16_detect_board()
155 release_region(port, 0x10); in jazz16_detect_board()
[all …]
Dsb8.c25 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260 */ variable
35 module_param_hw_array(port, long, ioport, NULL, 0444);
36 MODULE_PARM_DESC(port, "Port # for SB8 driver.");
100 if (port[dev] != SNDRV_AUTO_PORT) { in snd_sb8_probe()
101 if ((err = snd_sbdsp_create(card, port[dev], irq[dev], in snd_sb8_probe()
123 port[dev] = possible_ports[i]; in snd_sb8_probe()
137 port[dev]); in snd_sb8_probe()
140 port[dev]); in snd_sb8_probe()
152 if ((err = snd_opl3_create(card, chip->port + 8, 0, in snd_sb8_probe()
155 snd_printk(KERN_WARNING "sb8: no OPL device at 0x%lx\n", chip->port + 8); in snd_sb8_probe()
[all …]
/sound/isa/gus/
Dgusextreme.c35 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260 */ variable
54 module_param_hw_array(port, long, ioport, NULL, 0444);
55 MODULE_PARM_DESC(port, "Port # for " CRD_NAME " driver.");
107 if (port[n] != SNDRV_AUTO_PORT) in snd_gusextreme_es1688_create()
108 return snd_es1688_create(card, chip, port[n], mpu_port[n], in snd_gusextreme_es1688_create()
113 port[n] = possible_ports[i]; in snd_gusextreme_es1688_create()
114 error = snd_es1688_create(card, chip, port[n], mpu_port[n], in snd_gusextreme_es1688_create()
171 outb(gus->gf1.port & 0x040 ? 2 : 0, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
173 outb(gus->gf1.port & 0x020 ? 2 : 0, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
175 outb(gus->gf1.port & 0x010 ? 3 : 1, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
[all …]
/sound/firewire/
Damdtp-am824.c254 void amdtp_am824_midi_trigger(struct amdtp_stream *s, unsigned int port, in amdtp_am824_midi_trigger() argument
259 if (port < p->midi_ports) in amdtp_am824_midi_trigger()
260 WRITE_ONCE(p->midi[port], midi); in amdtp_am824_midi_trigger()
274 static bool midi_ratelimit_per_packet(struct amdtp_stream *s, unsigned int port) in midi_ratelimit_per_packet() argument
279 used = p->midi_fifo_used[port]; in midi_ratelimit_per_packet()
285 p->midi_fifo_used[port] = used; in midi_ratelimit_per_packet()
290 static void midi_rate_use_one_byte(struct amdtp_stream *s, unsigned int port) in midi_rate_use_one_byte() argument
294 p->midi_fifo_used[port] += amdtp_rate_table[s->sfc]; in midi_rate_use_one_byte()
301 unsigned int f, port; in write_midi_messages() local
307 port = (data_block_counter + f) % 8; in write_midi_messages()
[all …]
/sound/soc/sirf/
Dsirf-audio-port.c20 struct sirf_audio_port *port = snd_soc_dai_get_drvdata(dai); in sirf_audio_port_dai_probe() local
22 snd_soc_dai_init_dma_data(dai, &port->playback_dma_data, in sirf_audio_port_dai_probe()
23 &port->capture_dma_data); in sirf_audio_port_dai_probe()
52 struct sirf_audio_port *port; in sirf_audio_port_probe() local
54 port = devm_kzalloc(&pdev->dev, in sirf_audio_port_probe()
56 if (!port) in sirf_audio_port_probe()
64 platform_set_drvdata(pdev, port); in sirf_audio_port_probe()

12345678