/sound/core/seq/ |
D | seq_system.c | 70 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 …]
|
D | seq_ports.c | 62 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 …]
|
D | seq_midi.c | 104 ev.source.port = msynth->seq_port; in snd_midi_input_event() 281 struct snd_seq_port_info *port; in snd_seq_midisynth_register_port() local 338 port = kmalloc(sizeof(*port), GFP_KERNEL); in snd_seq_midisynth_register_port() 339 if (msynth == NULL || port == NULL) in snd_seq_midisynth_register_port() 349 memset(port, 0, sizeof(*port)); in snd_seq_midisynth_register_port() 350 port->addr.client = client->seq_client; in snd_seq_midisynth_register_port() 351 port->addr.port = device * (256 / SNDRV_RAWMIDI_DEVICES) + p; in snd_seq_midisynth_register_port() 352 port->flags = SNDRV_SEQ_PORT_FLG_GIVEN_PORT; in snd_seq_midisynth_register_port() 361 strcpy(port->name, info->subname); in snd_seq_midisynth_register_port() 362 if (! port->name[0]) { in snd_seq_midisynth_register_port() [all …]
|
D | seq_system.h | 28 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);
|
D | seq_dummy.c | 77 int port; member 99 ev.source.port = p->connect; in dummy_unuse() 101 ev.source.port = p->port; in dummy_unuse() 130 tmpev.source.port = p->connect; in dummy_input() 132 tmpev.source.port = p->port; in dummy_input() 187 rec->port = pinfo.addr.port; in create_port() 224 rec1->connect = rec2->port; in register_client() 225 rec2->connect = rec1->port; in register_client()
|
D | seq_clientmgr.c | 484 static int check_port_perm(struct snd_seq_client_port *port, unsigned int flags) in check_port_perm() argument 486 if ((port->capability & flags) != flags) in check_port_perm() 547 bounce_ev.source.port = SNDRV_SEQ_PORT_SYSTEM_ANNOUNCE; in bounce_error_event() 549 bounce_ev.dest.port = event->source.port; in bounce_error_event() 611 dest_port = snd_seq_port_use_ptr(dest, event->dest.port); in snd_seq_deliver_single_event() 668 src_port = snd_seq_port_use_ptr(client, event->source.port); in deliver_to_subscribers() 714 struct snd_seq_client_port *port; in port_broadcast_event() local 721 list_for_each_entry(port, &dest_client->ports_list_head, list) { in port_broadcast_event() 722 event->dest.port = port->addr.port; in port_broadcast_event() 733 event->dest.port = SNDRV_SEQ_ADDRESS_BROADCAST; /* restore */ in port_broadcast_event() [all …]
|
/sound/pci/emu10k1/ |
D | io.c | 52 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() 91 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_write() 92 data |= inl(emu->port + DATA) & ~mask; in snd_emu10k1_ptr_write() 93 outl(data, emu->port + DATA); in snd_emu10k1_ptr_write() 97 outl(regptr, emu->port + PTR); in snd_emu10k1_ptr_write() 98 outl(data, emu->port + DATA); in snd_emu10k1_ptr_write() 115 outl(regptr, emu->port + 0x20 + PTR); in snd_emu10k1_ptr20_read() [all …]
|
D | emu10k1_main.c | 166 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/ |
D | aedsp16.c | 500 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/core/seq/oss/ |
D | seq_oss_init.c | 70 struct snd_seq_port_info *port; in snd_seq_oss_create_client() local 73 port = kmalloc(sizeof(*port), GFP_KERNEL); in snd_seq_oss_create_client() 74 if (!port) { in snd_seq_oss_create_client() 92 memset(port, 0, sizeof(*port)); in snd_seq_oss_create_client() 93 strcpy(port->name, "Receiver"); in snd_seq_oss_create_client() 94 port->addr.client = system_client; in snd_seq_oss_create_client() 95 port->capability = SNDRV_SEQ_PORT_CAP_WRITE; /* receive only */ in snd_seq_oss_create_client() 96 port->type = 0; in snd_seq_oss_create_client() 103 port->kernel = &port_callback; in snd_seq_oss_create_client() 105 call_ctl(SNDRV_SEQ_IOCTL_CREATE_PORT, port); in snd_seq_oss_create_client() [all …]
|
D | seq_oss_midi.c | 45 int port; /* sequencer port number */ member 93 pinfo->addr.port = -1; in snd_seq_oss_midi_lookup_ports() 123 find_slot(int client, int port) in find_slot() argument 132 if (mdev && mdev->client == client && mdev->port == port) { in find_slot() 156 debug_printk(("check for MIDI client %d port %d\n", pinfo->addr.client, pinfo->addr.port)); in snd_seq_oss_midi_check_new_port() 168 if ((mdev = find_slot(pinfo->addr.client, pinfo->addr.port)) != NULL) { in snd_seq_oss_midi_check_new_port() 184 mdev->port = pinfo->addr.port; in snd_seq_oss_midi_check_new_port() 229 snd_seq_oss_midi_check_exit_port(int client, int port) in snd_seq_oss_midi_check_exit_port() argument 235 if ((mdev = find_slot(client, port)) != NULL) { in snd_seq_oss_midi_check_exit_port() 369 subs.dest.port = mdev->port; in snd_seq_oss_midi_open() [all …]
|
/sound/synth/emux/ |
D | emux_oss.c | 43 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, 145 arg->addr.port = p->chset.port; in snd_emux_open_seq_oss() 163 reset_port_mode(struct snd_emux_port *port, int midi_mode) in reset_port_mode() argument 166 port->port_mode = SNDRV_EMUX_PORT_MODE_OSS_MIDI; in reset_port_mode() 167 port->drum_flags = DEFAULT_DRUM_FLAGS; in reset_port_mode() 168 port->volume_atten = 0; in reset_port_mode() 169 port->oss_arg->event_passing = SNDRV_SEQ_OSS_PROCESS_KEYPRESS; in reset_port_mode() [all …]
|
D | emux_synth.c | 40 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, ¬e, 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 …]
|
D | emux_nrpn.c | 52 struct snd_emux_port *port, in send_converted_effect() argument 60 snd_emux_send_effect(port, chan, table[i].effect, in send_converted_effect() 289 struct snd_emux_port *port; in snd_emux_nrpn() local 291 port = p; in snd_emux_nrpn() 292 if (snd_BUG_ON(!port || !chan)) in snd_emux_nrpn() 305 port, chan, chan->control[MIDI_CTL_NONREG_PARM_NUM_LSB], in snd_emux_nrpn() 310 if (port->chset.midi_mode == SNDRV_MIDI_MODE_GS && in snd_emux_nrpn() 318 port, chan, chan->control[MIDI_CTL_NONREG_PARM_NUM_LSB], in snd_emux_nrpn() 362 snd_emux_xg_control(struct snd_emux_port *port, struct snd_midi_channel *chan, in snd_emux_xg_control() argument 366 port, chan, param, in snd_emux_xg_control() [all …]
|
D | emux_seq.c | 109 emu->ports[i] = p->chset.port; in snd_emux_init_seq() 179 p->chset.port = snd_seq_event_port_attach(emu->client, callback, in snd_emux_create_port() 225 snd_emux_reset_port(struct snd_emux_port *port) in snd_emux_reset_port() argument 230 snd_emux_sounds_off_all(port); in snd_emux_reset_port() 232 snd_midi_channel_set_clear(&port->chset); in snd_emux_reset_port() 235 snd_emux_clear_effect(port); in snd_emux_reset_port() 239 port->ctrls[EMUX_MD_DEF_BANK] = 0; in snd_emux_reset_port() 240 port->ctrls[EMUX_MD_DEF_DRUM] = 0; in snd_emux_reset_port() 241 port->ctrls[EMUX_MD_REALTIME_PAN] = 1; in snd_emux_reset_port() 243 for (i = 0; i < port->chset.max_channels; i++) { in snd_emux_reset_port() [all …]
|
/sound/isa/ |
D | cmi8328.c | 39 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 …]
|
D | adlib.c | 22 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; variable 30 module_param_array(port, long, NULL, 0444); 31 MODULE_PARM_DESC(port, "Port # for " CRD_NAME " driver."); 38 if (port[n] == SNDRV_AUTO_PORT) { in snd_adlib_match() 62 card->private_data = request_region(port[n], 4, CRD_NAME); in snd_adlib_probe() 72 sprintf(card->longname, CRD_NAME " at %#lx", port[n]); in snd_adlib_probe() 74 error = snd_opl3_create(card, port[n], port[n] + 2, OPL3_HW_AUTO, 1, &opl3); in snd_adlib_probe()
|
/sound/isa/galaxy/ |
D | galaxy.c | 47 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/ |
D | als300.c | 128 unsigned long port; member 163 static inline u32 snd_als300_gcr_read(unsigned long port, unsigned short reg) in snd_als300_gcr_read() argument 165 outb(reg, port+GCR_INDEX); in snd_als300_gcr_read() 166 return inl(port+GCR_DATA); in snd_als300_gcr_read() 169 static inline void snd_als300_gcr_write(unsigned long port, in snd_als300_gcr_write() argument 172 outb(reg, port+GCR_INDEX); in snd_als300_gcr_write() 173 outl(val, port+GCR_DATA); in snd_als300_gcr_write() 179 u32 tmp = snd_als300_gcr_read(chip->port, MISC_CONTROL); in snd_als300_set_irq_flag() 190 snd_als300_gcr_write(chip->port, MISC_CONTROL, tmp); in snd_als300_set_irq_flag() 219 status = inb(chip->port+ALS300_IRQ_STATUS); in snd_als300_interrupt() [all …]
|
/sound/isa/sb/ |
D | jazz16.c | 40 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 …]
|
D | sb8.c | 40 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/isa/gus/ |
D | gusextreme.c | 50 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 …]
|
D | interwave.c | 62 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x210,0x220,0x230,0x240,0x250,0x260 */ variable 95 module_param_array(port, long, NULL, 0444); 96 MODULE_PARM_DESC(port, "Port # for InterWave driver."); 169 unsigned long port = bus->private_value; in snd_interwave_i2c_setlines() local 172 printk(KERN_DEBUG "i2c_setlines - 0x%lx <- %i,%i\n", port, ctrl, data); in snd_interwave_i2c_setlines() 174 outb((data << 1) | ctrl, port); in snd_interwave_i2c_setlines() 180 unsigned long port = bus->private_value; in snd_interwave_i2c_getclockline() local 183 res = inb(port) & 1; in snd_interwave_i2c_getclockline() 185 printk(KERN_DEBUG "i2c_getclockline - 0x%lx -> %i\n", port, res); in snd_interwave_i2c_getclockline() 192 unsigned long port = bus->private_value; in snd_interwave_i2c_getdataline() local [all …]
|
/sound/usb/ |
D | midi.c | 227 struct usbmidi_in_port* port = &ep->ports[portidx]; in snd_usbmidi_input_data() local 229 if (!port->substream) { in snd_usbmidi_input_data() 233 if (!test_bit(port->substream->number, &ep->umidi->input_triggered)) in snd_usbmidi_input_data() 235 snd_rawmidi_receive(port->substream, data, length); in snd_usbmidi_input_data() 419 int port = buffer[i + 3] >> 4; in snd_usbmidi_midiman_input() local 421 snd_usbmidi_input_data(ep, port, &buffer[i], length); in snd_usbmidi_midiman_input() 439 struct usbmidi_in_port *port = &ep->ports[cable]; in snd_usbmidi_maudio_broken_running_status_input() local 447 port->running_status_length = length - 1; in snd_usbmidi_maudio_broken_running_status_input() 449 port->running_status_length != 0 && in snd_usbmidi_maudio_broken_running_status_input() 452 length = port->running_status_length; in snd_usbmidi_maudio_broken_running_status_input() [all …]
|
/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_core.c | 71 while (inw(chip->port + PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_write() 79 outw((u16)reg << 8 | val | (1<<13), chip->port + PDAUDIOCF_REG_AK_IFR); in pdacf_ak4117_write() 86 printk(KERN_DEBUG "PDAUDIOCF DUMP (0x%lx):\n", chip->port); 88 inw(chip->port + PDAUDIOCF_REG_WDP)); 90 inw(chip->port + PDAUDIOCF_REG_RDP)); 92 inw(chip->port + PDAUDIOCF_REG_TCR)); 94 inw(chip->port + PDAUDIOCF_REG_SCR)); 96 inw(chip->port + PDAUDIOCF_REG_ISR)); 98 inw(chip->port + PDAUDIOCF_REG_IER)); 100 inw(chip->port + PDAUDIOCF_REG_AK_IFR)); [all …]
|