Home
last modified time | relevance | path

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

12345678

/sound/firewire/
Dlib.c106 struct snd_fw_async_midi_port *port = callback_data; in async_midi_port_callback() local
107 struct snd_rawmidi_substream *substream = ACCESS_ONCE(port->substream); in async_midi_port_callback()
114 snd_rawmidi_transmit_ack(substream, port->consume_bytes); in async_midi_port_callback()
117 port->next_ktime = ktime_set(0, 0); in async_midi_port_callback()
120 port->error = true; in async_midi_port_callback()
122 port->idling = true; in async_midi_port_callback()
125 schedule_work(&port->work); in async_midi_port_callback()
130 struct snd_fw_async_midi_port *port = in midi_port_work() local
132 struct snd_rawmidi_substream *substream = ACCESS_ONCE(port->substream); in midi_port_work()
137 if (!port->idling || port->error) in midi_port_work()
[all …]
Dlib.h51 int snd_fw_async_midi_port_init(struct snd_fw_async_midi_port *port,
54 void snd_fw_async_midi_port_destroy(struct snd_fw_async_midi_port *port);
62 snd_fw_async_midi_port_run(struct snd_fw_async_midi_port *port, in snd_fw_async_midi_port_run() argument
65 if (!port->error) { in snd_fw_async_midi_port_run()
66 port->substream = substream; in snd_fw_async_midi_port_run()
67 schedule_work(&port->work); in snd_fw_async_midi_port_run()
76 snd_fw_async_midi_port_finish(struct snd_fw_async_midi_port *port) in snd_fw_async_midi_port_finish() argument
78 port->substream = NULL; in snd_fw_async_midi_port_finish()
79 port->error = false; in snd_fw_async_midi_port_finish()
Damdtp-am824.c311 void amdtp_am824_midi_trigger(struct amdtp_stream *s, unsigned int port, in amdtp_am824_midi_trigger() argument
316 if (port < p->midi_ports) in amdtp_am824_midi_trigger()
317 ACCESS_ONCE(p->midi[port]) = midi; in amdtp_am824_midi_trigger()
331 static bool midi_ratelimit_per_packet(struct amdtp_stream *s, unsigned int port) in midi_ratelimit_per_packet() argument
336 used = p->midi_fifo_used[port]; in midi_ratelimit_per_packet()
342 p->midi_fifo_used[port] = used; in midi_ratelimit_per_packet()
347 static void midi_rate_use_one_byte(struct amdtp_stream *s, unsigned int port) in midi_rate_use_one_byte() argument
351 p->midi_fifo_used[port] += amdtp_rate_table[s->sfc]; in midi_rate_use_one_byte()
358 unsigned int f, port; in write_midi_messages() local
364 port = (s->data_block_counter + f) % 8; in write_midi_messages()
[all …]
/sound/core/seq/
Dseq_system.c70 static int setheader(struct snd_seq_event * ev, int client, int port) in setheader() argument
81 ev->source.port = announce_port; in setheader()
87 ev->data.addr.port = port; in setheader()
94 void snd_seq_system_broadcast(int client, int port, int type) in snd_seq_system_broadcast() argument
98 if (setheader(&ev, client, port) < 0) in snd_seq_system_broadcast()
105 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev) in snd_seq_system_notify() argument
109 ev->source.port = announce_port; in snd_seq_system_notify()
111 ev->dest.port = port; in snd_seq_system_notify()
125 struct snd_seq_port_info *port; in snd_seq_system_client_init() local
127 port = kzalloc(sizeof(*port), GFP_KERNEL); in snd_seq_system_client_init()
[all …]
Dseq_ports.c62 struct snd_seq_client_port *port; in snd_seq_port_use_ptr() local
67 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_use_ptr()
68 if (port->addr.port == num) { in snd_seq_port_use_ptr()
69 if (port->closing) in snd_seq_port_use_ptr()
71 snd_use_lock_use(&port->use_lock); in snd_seq_port_use_ptr()
73 return port; in snd_seq_port_use_ptr()
86 struct snd_seq_client_port *port, *found; in snd_seq_port_query_nearest() local
88 num = pinfo->addr.port; in snd_seq_port_query_nearest()
91 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_query_nearest()
92 if (port->addr.port < num) in snd_seq_port_query_nearest()
[all …]
Dseq_midi.c104 ev.source.port = msynth->seq_port; in snd_midi_input_event()
281 struct snd_seq_port_info *port; in snd_seq_midisynth_probe() local
338 port = kmalloc(sizeof(*port), GFP_KERNEL); in snd_seq_midisynth_probe()
339 if (msynth == NULL || port == NULL) in snd_seq_midisynth_probe()
349 memset(port, 0, sizeof(*port)); in snd_seq_midisynth_probe()
350 port->addr.client = client->seq_client; in snd_seq_midisynth_probe()
351 port->addr.port = device * (256 / SNDRV_RAWMIDI_DEVICES) + p; in snd_seq_midisynth_probe()
352 port->flags = SNDRV_SEQ_PORT_FLG_GIVEN_PORT; in snd_seq_midisynth_probe()
361 strcpy(port->name, info->subname); in snd_seq_midisynth_probe()
362 if (! port->name[0]) { in snd_seq_midisynth_probe()
[all …]
Dseq_system.h28 void snd_seq_system_broadcast(int client, int port, int type);
33 #define snd_seq_system_client_ev_port_start(client, port) snd_seq_system_broadcast(client, port, SN… argument
34 #define snd_seq_system_client_ev_port_exit(client, port) snd_seq_system_broadcast(client, port, SND… argument
35 #define snd_seq_system_client_ev_port_change(client, port) snd_seq_system_broadcast(client, port, S… argument
37 int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev);
/sound/pci/emu10k1/
Dio.c52 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read()
53 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read()
59 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_read()
60 val = inl(emu->port + DATA); in snd_emu10k1_ptr_read()
88 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_write()
89 data |= inl(emu->port + DATA) & ~mask; in snd_emu10k1_ptr_write()
90 outl(data, emu->port + DATA); in snd_emu10k1_ptr_write()
94 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_write()
95 outl(data, emu->port + DATA); in snd_emu10k1_ptr_write()
112 outl(regptr, emu->port + 0x20 + PTR); in snd_emu10k1_ptr20_read()
[all …]
Demu10k1_main.c166 HCFG_MUTEBUTTONENABLE, emu->port + HCFG); in snd_emu10k1_init()
177 outl(0, emu->port + INTE); in snd_emu10k1_init()
214 outl(0x0201, emu->port + HCFG2); in snd_emu10k1_init()
228 outl(0x600000, emu->port + 0x20); in snd_emu10k1_init()
229 outl(0x14, emu->port + 0x24); in snd_emu10k1_init()
232 outl(0x7b0000, emu->port + 0x20); in snd_emu10k1_init()
233 outl(0xFF000000, emu->port + 0x24); in snd_emu10k1_init()
239 outl(0x7a0000, emu->port + 0x20); in snd_emu10k1_init()
240 outl(0xFF000000, emu->port + 0x24); in snd_emu10k1_init()
241 tmp = inl(emu->port + A_IOCFG) & ~0x8; /* Clear bit 3 */ in snd_emu10k1_init()
[all …]
/sound/oss/
Daedsp16.c500 static int __init aedsp16_wait_data(int port) in aedsp16_wait_data() argument
505 DBG1(("aedsp16_wait_data (0x%x): ", port)); in aedsp16_wait_data()
508 ret = inb(port + DSP_DATAVAIL); in aedsp16_wait_data()
523 static int __init aedsp16_read(int port) in aedsp16_read() argument
527 DBG((" Read DSP Byte (0x%x): ", port)); in aedsp16_read()
529 if (aedsp16_wait_data(port) == FALSE) { in aedsp16_read()
534 inbyte = inb(port + DSP_READ); in aedsp16_read()
541 static int __init aedsp16_test_dsp(int port) in aedsp16_test_dsp() argument
543 return ((aedsp16_read(port) == 0xaa) ? TRUE : FALSE); in aedsp16_test_dsp()
546 static int __init aedsp16_dsp_reset(int port) in aedsp16_dsp_reset() argument
[all …]
/sound/synth/emux/
Demux_oss.c43 static void reset_port_mode(struct snd_emux_port *port, int midi_mode);
44 static void emuspec_control(struct snd_emux *emu, struct snd_emux_port *port,
46 static void gusspec_control(struct snd_emux *emu, struct snd_emux_port *port,
48 static void fake_event(struct snd_emux *emu, struct snd_emux_port *port,
141 arg->addr.port = p->chset.port; in snd_emux_open_seq_oss()
157 reset_port_mode(struct snd_emux_port *port, int midi_mode) in reset_port_mode() argument
160 port->port_mode = SNDRV_EMUX_PORT_MODE_OSS_MIDI; in reset_port_mode()
161 port->drum_flags = DEFAULT_DRUM_FLAGS; in reset_port_mode()
162 port->volume_atten = 0; in reset_port_mode()
163 port->oss_arg->event_passing = SNDRV_SEQ_OSS_PROCESS_KEYPRESS; in reset_port_mode()
[all …]
Demux_synth.c40 static int get_zone(struct snd_emux *emu, struct snd_emux_port *port,
43 static int get_bank(struct snd_emux_port *port, struct snd_midi_channel *chan);
46 static void exclusive_note_off(struct snd_emux *emu, struct snd_emux_port *port,
67 struct snd_emux_port *port; in snd_emux_note_on() local
69 port = p; in snd_emux_note_on()
70 if (snd_BUG_ON(!port || !chan)) in snd_emux_note_on()
73 emu = port->emu; in snd_emux_note_on()
78 nvoices = get_zone(emu, port, &note, vel, chan, table); in snd_emux_note_on()
86 exclusive_note_off(emu, port, zp->v.exclusiveClass); in snd_emux_note_on()
103 vp = emu->ops.get_voice(emu, port); in snd_emux_note_on()
[all …]
Demux_nrpn.c53 struct snd_emux_port *port, in send_converted_effect() argument
61 snd_emux_send_effect(port, chan, table[i].effect, in send_converted_effect()
290 struct snd_emux_port *port; in snd_emux_nrpn() local
292 port = p; in snd_emux_nrpn()
293 if (snd_BUG_ON(!port || !chan)) in snd_emux_nrpn()
306 port, chan, chan->control[MIDI_CTL_NONREG_PARM_NUM_LSB], in snd_emux_nrpn()
311 if (port->chset.midi_mode == SNDRV_MIDI_MODE_GS && in snd_emux_nrpn()
319 port, chan, chan->control[MIDI_CTL_NONREG_PARM_NUM_LSB], in snd_emux_nrpn()
363 snd_emux_xg_control(struct snd_emux_port *port, struct snd_midi_channel *chan, in snd_emux_xg_control() argument
367 port, chan, param, in snd_emux_xg_control()
[all …]
Demux_seq.c109 emu->ports[i] = p->chset.port; in snd_emux_init_seq()
177 p->chset.port = snd_seq_event_port_attach(emu->client, callback, in snd_emux_create_port()
223 snd_emux_reset_port(struct snd_emux_port *port) in snd_emux_reset_port() argument
228 snd_emux_sounds_off_all(port); in snd_emux_reset_port()
230 snd_midi_channel_set_clear(&port->chset); in snd_emux_reset_port()
233 snd_emux_clear_effect(port); in snd_emux_reset_port()
237 port->ctrls[EMUX_MD_DEF_BANK] = 0; in snd_emux_reset_port()
238 port->ctrls[EMUX_MD_DEF_DRUM] = 0; in snd_emux_reset_port()
239 port->ctrls[EMUX_MD_REALTIME_PAN] = 1; in snd_emux_reset_port()
241 for (i = 0; i < port->chset.max_channels; i++) { in snd_emux_reset_port()
[all …]
/sound/core/seq/oss/
Dseq_oss_init.c79 struct snd_seq_port_info *port; in snd_seq_oss_create_client() local
82 port = kmalloc(sizeof(*port), GFP_KERNEL); in snd_seq_oss_create_client()
83 if (!port) { in snd_seq_oss_create_client()
97 memset(port, 0, sizeof(*port)); in snd_seq_oss_create_client()
98 strcpy(port->name, "Receiver"); in snd_seq_oss_create_client()
99 port->addr.client = system_client; in snd_seq_oss_create_client()
100 port->capability = SNDRV_SEQ_PORT_CAP_WRITE; /* receive only */ in snd_seq_oss_create_client()
101 port->type = 0; in snd_seq_oss_create_client()
108 port->kernel = &port_callback; in snd_seq_oss_create_client()
110 call_ctl(SNDRV_SEQ_IOCTL_CREATE_PORT, port); in snd_seq_oss_create_client()
[all …]
/sound/isa/
Dcmi8328.c39 static long port[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = SNDRV_AUTO_PORT}; variable
54 module_param_array(port, long, NULL, 0444);
55 MODULE_PARM_DESC(port, "Port # for CMI8328 driver.");
73 u16 port; member
113 static u8 snd_cmi8328_cfg_read(u16 port, u8 reg) in snd_cmi8328_cfg_read() argument
115 outb(0x43, port + 3); in snd_cmi8328_cfg_read()
116 outb(0x21, port + 3); in snd_cmi8328_cfg_read()
117 outb(reg, port + 3); in snd_cmi8328_cfg_read()
118 return inb(port); in snd_cmi8328_cfg_read()
121 static void snd_cmi8328_cfg_write(u16 port, u8 reg, u8 val) in snd_cmi8328_cfg_write() argument
[all …]
/sound/isa/galaxy/
Dgalaxy.c47 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; variable
56 module_param_array(port, long, NULL, 0444);
57 MODULE_PARM_DESC(port, "Port # for " CRD_NAME " driver.");
87 static int dsp_get_byte(void __iomem *port, u8 *val) in dsp_get_byte() argument
91 while (!(ioread8(port + DSP_PORT_DATA_AVAIL) & 0x80)) { in dsp_get_byte()
96 *val = ioread8(port + DSP_PORT_READ); in dsp_get_byte()
100 static int dsp_reset(void __iomem *port) in dsp_reset() argument
104 iowrite8(1, port + DSP_PORT_RESET); in dsp_reset()
106 iowrite8(0, port + DSP_PORT_RESET); in dsp_reset()
108 if (dsp_get_byte(port, &val) < 0 || val != DSP_SIGNATURE) in dsp_reset()
[all …]
/sound/pci/
Dals300.c116 unsigned long port; member
151 static inline u32 snd_als300_gcr_read(unsigned long port, unsigned short reg) in snd_als300_gcr_read() argument
153 outb(reg, port+GCR_INDEX); in snd_als300_gcr_read()
154 return inl(port+GCR_DATA); in snd_als300_gcr_read()
157 static inline void snd_als300_gcr_write(unsigned long port, in snd_als300_gcr_write() argument
160 outb(reg, port+GCR_INDEX); in snd_als300_gcr_write()
161 outl(val, port+GCR_DATA); in snd_als300_gcr_write()
167 u32 tmp = snd_als300_gcr_read(chip->port, MISC_CONTROL); in snd_als300_set_irq_flag()
177 snd_als300_gcr_write(chip->port, MISC_CONTROL, tmp); in snd_als300_set_irq_flag()
203 status = inb(chip->port+ALS300_IRQ_STATUS); in snd_als300_interrupt()
[all …]
/sound/isa/sb/
Djazz16.c40 static unsigned long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; variable
53 module_param_array(port, long, 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.c40 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260 */ variable
50 module_param_array(port, long, NULL, 0444);
51 MODULE_PARM_DESC(port, "Port # for SB8 driver.");
115 if (port[dev] != SNDRV_AUTO_PORT) { in snd_sb8_probe()
116 if ((err = snd_sbdsp_create(card, port[dev], irq[dev], in snd_sb8_probe()
138 port[dev] = possible_ports[i]; in snd_sb8_probe()
152 port[dev]); in snd_sb8_probe()
155 port[dev]); in snd_sb8_probe()
167 if ((err = snd_opl3_create(card, chip->port + 8, 0, in snd_sb8_probe()
170 snd_printk(KERN_WARNING "sb8: no OPL device at 0x%lx\n", chip->port + 8); in snd_sb8_probe()
[all …]
/sound/firewire/tascam/
Dtascam-transaction.c64 unsigned int port = substream->number; in fill_message() local
78 if (tscm->on_sysex[port]) { in fill_message()
82 tscm->on_sysex[port] = false; in fill_message()
88 if (!tscm->on_sysex[port]) { in fill_message()
90 *label = (port << 4) | 0x07; in fill_message()
93 *label = (port << 4) | 0x04; in fill_message()
104 tscm->on_sysex[port] = true; in fill_message()
109 status = tscm->running_status[port]; in fill_message()
127 msg[0] = tscm->running_status[port]; in fill_message()
134 tscm->running_status[port] = msg[0]; in fill_message()
[all …]
/sound/firewire/digi00x/
Damdtp-dot.c243 static bool midi_ratelimit_per_packet(struct amdtp_stream *s, unsigned int port) in midi_ratelimit_per_packet() argument
248 used = p->midi_fifo_used[port]; in midi_ratelimit_per_packet()
254 p->midi_fifo_used[port] = used; in midi_ratelimit_per_packet()
260 unsigned int port, unsigned int count) in midi_use_bytes() argument
264 p->midi_fifo_used[port] += amdtp_rate_table[s->sfc] * count; in midi_use_bytes()
271 unsigned int f, port; in write_midi_messages() local
276 port = (s->data_block_counter + f) % 8; in write_midi_messages()
280 if (port < MAX_MIDI_PORTS && in write_midi_messages()
281 midi_ratelimit_per_packet(s, port) && in write_midi_messages()
282 p->midi[port] != NULL) in write_midi_messages()
[all …]
/sound/isa/gus/
Dgusextreme.c50 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260 */ variable
69 module_param_array(port, long, NULL, 0444);
70 MODULE_PARM_DESC(port, "Port # for " CRD_NAME " driver.");
122 if (port[n] != SNDRV_AUTO_PORT) in snd_gusextreme_es1688_create()
123 return snd_es1688_create(card, chip, port[n], mpu_port[n], in snd_gusextreme_es1688_create()
128 port[n] = possible_ports[i]; in snd_gusextreme_es1688_create()
129 error = snd_es1688_create(card, chip, port[n], mpu_port[n], in snd_gusextreme_es1688_create()
186 outb(gus->gf1.port & 0x040 ? 2 : 0, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
188 outb(gus->gf1.port & 0x020 ? 2 : 0, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
190 outb(gus->gf1.port & 0x010 ? 3 : 1, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
[all …]
/sound/soc/fsl/
Dimx-audmux.c45 static const char *audmux_port_string(int port) in audmux_port_string() argument
47 switch (port) { in audmux_port_string()
70 uintptr_t port = (uintptr_t)file->private_data; in audmux_read_file() local
79 ptcr = readl(audmux_base + IMX_AUDMUX_V2_PTCR(port)); in audmux_read_file()
80 pdcr = readl(audmux_base + IMX_AUDMUX_V2_PDCR(port)); in audmux_read_file()
211 int imx_audmux_v1_configure_port(unsigned int port, unsigned int pcr) in imx_audmux_v1_configure_port() argument
219 if (port >= ARRAY_SIZE(port_mapping)) in imx_audmux_v1_configure_port()
222 writel(pcr, audmux_base + port_mapping[port]); in imx_audmux_v1_configure_port()
228 int imx_audmux_v2_configure_port(unsigned int port, unsigned int ptcr, in imx_audmux_v2_configure_port() argument
245 writel(ptcr, audmux_base + IMX_AUDMUX_V2_PTCR(port)); in imx_audmux_v2_configure_port()
[all …]
/sound/soc/sirf/
Dsirf-audio-port.c21 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