/sound/soc/cirrus/ |
D | ep93xx-i2s.c | 86 static inline void ep93xx_i2s_write_reg(struct ep93xx_i2s_info *info, in ep93xx_i2s_write_reg() argument 89 __raw_writel(val, info->regs + reg); in ep93xx_i2s_write_reg() 92 static inline unsigned ep93xx_i2s_read_reg(struct ep93xx_i2s_info *info, in ep93xx_i2s_read_reg() argument 95 return __raw_readl(info->regs + reg); in ep93xx_i2s_read_reg() 98 static void ep93xx_i2s_enable(struct ep93xx_i2s_info *info, int stream) in ep93xx_i2s_enable() argument 103 if ((ep93xx_i2s_read_reg(info, EP93XX_I2S_TX0EN) & 0x1) == 0 && in ep93xx_i2s_enable() 104 (ep93xx_i2s_read_reg(info, EP93XX_I2S_RX0EN) & 0x1) == 0) { in ep93xx_i2s_enable() 106 clk_enable(info->mclk); in ep93xx_i2s_enable() 107 clk_enable(info->sclk); in ep93xx_i2s_enable() 108 clk_enable(info->lrclk); in ep93xx_i2s_enable() [all …]
|
D | ep93xx-ac97.c | 120 static inline unsigned ep93xx_ac97_read_reg(struct ep93xx_ac97_info *info, in ep93xx_ac97_read_reg() argument 123 return __raw_readl(info->regs + reg); in ep93xx_ac97_read_reg() 126 static inline void ep93xx_ac97_write_reg(struct ep93xx_ac97_info *info, in ep93xx_ac97_write_reg() argument 129 __raw_writel(val, info->regs + reg); in ep93xx_ac97_write_reg() 135 struct ep93xx_ac97_info *info = ep93xx_ac97_info; in ep93xx_ac97_read() local 138 mutex_lock(&info->lock); in ep93xx_ac97_read() 140 ep93xx_ac97_write_reg(info, AC97S1DATA, reg); in ep93xx_ac97_read() 141 ep93xx_ac97_write_reg(info, AC97IM, AC97_SLOT2RXVALID); in ep93xx_ac97_read() 142 if (!wait_for_completion_timeout(&info->done, AC97_TIMEOUT)) { in ep93xx_ac97_read() 143 dev_warn(info->dev, "timeout reading register %x\n", reg); in ep93xx_ac97_read() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_synth.c | 87 static void reset_channels(struct seq_oss_synthinfo *info); 217 struct seq_oss_synthinfo *info; in snd_seq_oss_synth_setup() local 230 info = &dp->synths[i]; in snd_seq_oss_synth_setup() 231 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup() 232 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup() 233 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup() 235 info->arg.event_passing = SNDRV_SEQ_OSS_PROCESS_EVENTS; in snd_seq_oss_synth_setup() 237 info->arg.event_passing = SNDRV_SEQ_OSS_PASS_EVENTS; in snd_seq_oss_synth_setup() 238 info->opened = 0; in snd_seq_oss_synth_setup() 243 if (rec->oper.open(&info->arg, rec->private_data) < 0) { in snd_seq_oss_synth_setup() [all …]
|
D | seq_oss_ioctl.c | 33 struct synth_info info; in snd_seq_oss_synth_info_user() local 35 if (copy_from_user(&info, arg, sizeof(info))) in snd_seq_oss_synth_info_user() 37 if (snd_seq_oss_synth_make_info(dp, info.device, &info) < 0) in snd_seq_oss_synth_info_user() 39 if (copy_to_user(arg, &info, sizeof(info))) in snd_seq_oss_synth_info_user() 46 struct midi_info info; in snd_seq_oss_midi_info_user() local 48 if (copy_from_user(&info, arg, sizeof(info))) in snd_seq_oss_midi_info_user() 50 if (snd_seq_oss_midi_make_info(dp, info.device, &info) < 0) in snd_seq_oss_midi_info_user() 52 if (copy_to_user(arg, &info, sizeof(info))) in snd_seq_oss_midi_info_user()
|
D | seq_oss_event.c | 289 struct seq_oss_synthinfo *info; in note_on_event() local 291 info = snd_seq_oss_synth_info(dp, dev); in note_on_event() 292 if (!info) in note_on_event() 295 switch (info->arg.event_passing) { in note_on_event() 297 if (! info->ch || ch < 0 || ch >= info->nr_voices) { in note_on_event() 302 ch = array_index_nospec(ch, info->nr_voices); in note_on_event() 303 if (note == 255 && info->ch[ch].note >= 0) { in note_on_event() 310 if (info->ch[ch].vel) in note_on_event() 316 info->ch[ch].vel = vel; in note_on_event() 317 return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev); in note_on_event() [all …]
|
/sound/soc/sh/ |
D | siu_dai.c | 110 struct siu_info *info = siu_i2s_data; in siu_dai_start() local 111 u32 __iomem *base = info->reg; in siu_dai_start() 153 struct siu_info *info = siu_i2s_data; in siu_dai_stop() local 154 u32 __iomem *base = info->reg; in siu_dai_stop() 162 struct siu_info *info = siu_i2s_data; in siu_dai_spbAselect() local 163 struct siu_firmware *fw = &info->fw; in siu_dai_spbAselect() 168 if (!info->port_id) in siu_dai_spbAselect() 187 struct siu_info *info = siu_i2s_data; in siu_dai_spbBselect() local 188 struct siu_firmware *fw = &info->fw; in siu_dai_spbBselect() 193 if (!info->port_id) in siu_dai_spbBselect() [all …]
|
/sound/core/seq/ |
D | seq_ports.c | 182 struct snd_seq_port_subscribe *info, int send_ack); 186 struct snd_seq_port_subscribe *info, int send_ack); 237 aport = get_client_port(&subs->info.dest, &c); in clear_subscriber_list() 239 aport = get_client_port(&subs->info.sender, &c); in clear_subscriber_list() 341 struct snd_seq_port_info * info) in snd_seq_set_port_info() argument 343 if (snd_BUG_ON(!port || !info)) in snd_seq_set_port_info() 347 if (info->name[0]) in snd_seq_set_port_info() 348 strlcpy(port->name, info->name, sizeof(port->name)); in snd_seq_set_port_info() 351 port->capability = info->capability; in snd_seq_set_port_info() 354 port->type = info->type; in snd_seq_set_port_info() [all …]
|
D | seq_clientmgr.c | 672 event->dest = subs->info.dest; in deliver_to_subscribers() 673 if (subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIMESTAMP) in deliver_to_subscribers() 675 update_timestamp_of_queue(event, subs->info.queue, in deliver_to_subscribers() 676 subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIME_REAL); in deliver_to_subscribers() 1152 struct snd_seq_system_info *info = arg; in snd_seq_ioctl_system_info() local 1154 memset(info, 0, sizeof(*info)); in snd_seq_ioctl_system_info() 1156 info->queues = SNDRV_SEQ_MAX_QUEUES; in snd_seq_ioctl_system_info() 1157 info->clients = SNDRV_SEQ_MAX_CLIENTS; in snd_seq_ioctl_system_info() 1158 info->ports = SNDRV_SEQ_MAX_PORTS; in snd_seq_ioctl_system_info() 1159 info->channels = 256; /* fixed limit */ in snd_seq_ioctl_system_info() [all …]
|
D | seq_midi.c | 180 static int midisynth_subscribe(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_subscribe() argument 211 static int midisynth_unsubscribe(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_unsubscribe() argument 223 static int midisynth_use(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_use() argument 250 static int midisynth_unuse(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_unuse() argument 282 struct snd_rawmidi_info *info; in snd_seq_midisynth_probe() local 293 info = kmalloc(sizeof(*info), GFP_KERNEL); in snd_seq_midisynth_probe() 294 if (! info) in snd_seq_midisynth_probe() 296 info->device = device; in snd_seq_midisynth_probe() 297 info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; in snd_seq_midisynth_probe() 298 info->subdevice = 0; in snd_seq_midisynth_probe() [all …]
|
D | seq_prioq.c | 343 static int prioq_remove_match(struct snd_seq_remove_events *info, in prioq_remove_match() argument 348 if (info->remove_mode & SNDRV_SEQ_REMOVE_DEST) { in prioq_remove_match() 349 if (ev->dest.client != info->dest.client || in prioq_remove_match() 350 ev->dest.port != info->dest.port) in prioq_remove_match() 353 if (info->remove_mode & SNDRV_SEQ_REMOVE_DEST_CHANNEL) { in prioq_remove_match() 357 if (ev->data.note.channel != info->channel) in prioq_remove_match() 360 if (info->remove_mode & SNDRV_SEQ_REMOVE_TIME_AFTER) { in prioq_remove_match() 361 if (info->remove_mode & SNDRV_SEQ_REMOVE_TIME_TICK) in prioq_remove_match() 362 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match() 364 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match() [all …]
|
D | seq_ports.h | 44 struct snd_seq_port_subscribe info; /* additional info */ member 56 int (*open)(void *private_data, struct snd_seq_port_subscribe *info); 57 int (*close)(void *private_data, struct snd_seq_port_subscribe *info); 115 struct snd_seq_port_info *info); 119 struct snd_seq_port_info *info); 125 struct snd_seq_port_subscribe *info); 131 struct snd_seq_port_subscribe *info); 135 struct snd_seq_port_subscribe *info);
|
/sound/synth/emux/ |
D | emux_hwdep.c | 62 struct snd_emux_misc_mode info; in snd_emux_hwdep_misc_mode() local 65 if (copy_from_user(&info, arg, sizeof(info))) in snd_emux_hwdep_misc_mode() 67 if (info.mode < 0 || info.mode >= EMUX_MD_END) in snd_emux_hwdep_misc_mode() 69 info.mode = array_index_nospec(info.mode, EMUX_MD_END); in snd_emux_hwdep_misc_mode() 71 if (info.port < 0) { in snd_emux_hwdep_misc_mode() 73 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode() 75 if (info.port < emu->num_ports) { in snd_emux_hwdep_misc_mode() 76 info.port = array_index_nospec(info.port, emu->num_ports); in snd_emux_hwdep_misc_mode() 77 emu->portptrs[info.port]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
|
/sound/firewire/bebob/ |
D | bebob_proc.c | 40 struct hw_info *info; in proc_read_hw_info() local 42 info = kzalloc(sizeof(struct hw_info), GFP_KERNEL); in proc_read_hw_info() 43 if (info == NULL) in proc_read_hw_info() 47 info, sizeof(struct hw_info)) < 0) in proc_read_hw_info() 51 (char *)&info->manufacturer); in proc_read_hw_info() 52 snd_iprintf(buffer, "Protocol Ver:\t%d\n", info->protocol_ver); in proc_read_hw_info() 53 snd_iprintf(buffer, "Build Ver:\t%d\n", info->bld_ver); in proc_read_hw_info() 55 info->guid[0], info->guid[1]); in proc_read_hw_info() 56 snd_iprintf(buffer, "Model ID:\t0x%02X\n", info->model_id); in proc_read_hw_info() 57 snd_iprintf(buffer, "Model Rev:\t%d\n", info->model_rev); in proc_read_hw_info() [all …]
|
D | bebob_hwdep.c | 78 struct snd_firewire_get_info info; in hwdep_get_info() local 80 memset(&info, 0, sizeof(info)); in hwdep_get_info() 81 info.type = SNDRV_FIREWIRE_TYPE_BEBOB; in hwdep_get_info() 82 info.card = dev->card->index; in hwdep_get_info() 83 *(__be32 *)&info.guid[0] = cpu_to_be32(dev->config_rom[3]); in hwdep_get_info() 84 *(__be32 *)&info.guid[4] = cpu_to_be32(dev->config_rom[4]); in hwdep_get_info() 85 strlcpy(info.device_name, dev_name(&dev->device), in hwdep_get_info() 86 sizeof(info.device_name)); in hwdep_get_info() 88 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
|
/sound/core/ |
D | vmaster.c | 37 struct link_ctl_info info; member 54 struct link_ctl_info info; member 73 for (ch = 0; ch < slave->info.count; ch++) in slave_update() 86 if (slave->info.count) { in slave_init() 97 err = slave->slave.info(&slave->slave, uinfo); in slave_init() 102 slave->info.type = uinfo->type; in slave_init() 103 slave->info.count = uinfo->count; in slave_init() 104 if (slave->info.count > 2 || in slave_init() 105 (slave->info.type != SNDRV_CTL_ELEM_TYPE_INTEGER && in slave_init() 106 slave->info.type != SNDRV_CTL_ELEM_TYPE_BOOLEAN)) { in slave_init() [all …]
|
D | control.c | 254 if (snd_BUG_ON(!ncontrol || !ncontrol->info)) in snd_ctl_new1() 287 kctl->info = ncontrol->info; in snd_ctl_new1() 404 if (snd_BUG_ON(!card || !kcontrol->info)) in snd_ctl_add() 445 if (snd_BUG_ON(!card || !kcontrol->info)) { in snd_ctl_replace() 732 struct snd_ctl_card_info *info; in snd_ctl_card_info() local 734 info = kzalloc(sizeof(*info), GFP_KERNEL); in snd_ctl_card_info() 735 if (! info) in snd_ctl_card_info() 738 info->card = card->number; in snd_ctl_card_info() 739 strlcpy(info->id, card->id, sizeof(info->id)); in snd_ctl_card_info() 740 strlcpy(info->driver, card->driver, sizeof(info->driver)); in snd_ctl_card_info() [all …]
|
D | hwdep.c | 191 struct snd_hwdep_info info; in snd_hwdep_info() local 193 memset(&info, 0, sizeof(info)); in snd_hwdep_info() 194 info.card = hw->card->number; in snd_hwdep_info() 195 strlcpy(info.id, hw->id, sizeof(info.id)); in snd_hwdep_info() 196 strlcpy(info.name, hw->name, sizeof(info.name)); in snd_hwdep_info() 197 info.iface = hw->iface; in snd_hwdep_info() 198 if (copy_to_user(_info, &info, sizeof(info))) in snd_hwdep_info() 206 struct snd_hwdep_dsp_status info; in snd_hwdep_dsp_status() local 211 memset(&info, 0, sizeof(info)); in snd_hwdep_dsp_status() 212 info.dsp_loaded = hw->dsp_loaded; in snd_hwdep_dsp_status() [all …]
|
D | timer_compat.c | 65 struct snd_timer_info32 info; in snd_timer_user_info_compat() local 74 memset(&info, 0, sizeof(info)); in snd_timer_user_info_compat() 75 info.card = t->card ? t->card->number : -1; in snd_timer_user_info_compat() 77 info.flags |= SNDRV_TIMER_FLG_SLAVE; in snd_timer_user_info_compat() 78 strlcpy(info.id, t->id, sizeof(info.id)); in snd_timer_user_info_compat() 79 strlcpy(info.name, t->name, sizeof(info.name)); in snd_timer_user_info_compat() 80 info.resolution = t->hw.resolution; in snd_timer_user_info_compat() 81 if (copy_to_user(_info, &info, sizeof(*_info))) in snd_timer_user_info_compat()
|
/sound/drivers/vx/ |
D | vx_mixer.c | 218 struct vx_audio_level *info) in vx_adjust_audio_level() argument 231 if (info->has_level) { in vx_adjust_audio_level() 233 rmh.Cmd[2] |= info->level; in vx_adjust_audio_level() 235 if (info->has_monitor_level) { in vx_adjust_audio_level() 237 rmh.Cmd[2] |= ((unsigned int)info->monitor_level << 10); in vx_adjust_audio_level() 239 if (info->has_mute) { in vx_adjust_audio_level() 241 if (info->mute) in vx_adjust_audio_level() 244 if (info->has_monitor_mute) { in vx_adjust_audio_level() 247 if (info->monitor_mute) in vx_adjust_audio_level() 257 struct vx_audio_level *info) [all …]
|
/sound/pci/oxygen/ |
D | oxygen_mixer.c | 29 struct snd_ctl_elem_info *info) in dac_volume_info() argument 33 info->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in dac_volume_info() 34 info->count = chip->model.dac_channels_mixer; in dac_volume_info() 35 info->value.integer.min = chip->model.dac_volume_min; in dac_volume_info() 36 info->value.integer.max = chip->model.dac_volume_max; in dac_volume_info() 110 static int upmix_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info) in upmix_info() argument 122 return snd_ctl_enum_info(info, 1, count, names); in upmix_info() 306 static int spdif_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info) in spdif_info() argument 308 info->type = SNDRV_CTL_ELEM_TYPE_IEC958; in spdif_info() 309 info->count = 1; in spdif_info() [all …]
|
D | xonar_dg_mixer.c | 58 struct snd_ctl_elem_info *info) in output_select_info() argument 66 return snd_ctl_enum_info(info, 1, 3, names); in output_select_info() 105 struct snd_ctl_elem_info *info) in hp_stereo_volume_info() argument 107 info->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in hp_stereo_volume_info() 108 info->count = 2; in hp_stereo_volume_info() 109 info->value.integer.min = 0; in hp_stereo_volume_info() 110 info->value.integer.max = 255; in hp_stereo_volume_info() 209 struct snd_ctl_elem_info *info) in input_vol_info() argument 211 info->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in input_vol_info() 212 info->count = 2; in input_vol_info() [all …]
|
/sound/sparc/ |
D | dbri.c | 1083 struct dbri_streaminfo *info = &dbri->stream_info[streamno]; in setup_descs() local 1091 if (info->pipe < 0 || info->pipe > 15) { in setup_descs() 1096 if (dbri->pipes[info->pipe].sdp == 0) { in setup_descs() 1098 info->pipe); in setup_descs() 1102 dvma_buffer = info->dvma_buffer; in setup_descs() 1103 len = info->size; in setup_descs() 1106 if (!(dbri->pipes[info->pipe].sdp & D_SDP_TO_SER)) { in setup_descs() 1108 "Called on receive pipe %d\n", info->pipe); in setup_descs() 1112 if (dbri->pipes[info->pipe].sdp & D_SDP_TO_SER) { in setup_descs() 1115 info->pipe); in setup_descs() [all …]
|
/sound/firewire/tascam/ |
D | tascam-hwdep.c | 74 struct snd_firewire_get_info info; in hwdep_get_info() local 76 memset(&info, 0, sizeof(info)); in hwdep_get_info() 77 info.type = SNDRV_FIREWIRE_TYPE_TASCAM; in hwdep_get_info() 78 info.card = dev->card->index; in hwdep_get_info() 79 *(__be32 *)&info.guid[0] = cpu_to_be32(dev->config_rom[3]); in hwdep_get_info() 80 *(__be32 *)&info.guid[4] = cpu_to_be32(dev->config_rom[4]); in hwdep_get_info() 81 strlcpy(info.device_name, dev_name(&dev->device), in hwdep_get_info() 82 sizeof(info.device_name)); in hwdep_get_info() 84 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
|
/sound/firewire/dice/ |
D | dice-hwdep.c | 76 struct snd_firewire_get_info info; in hwdep_get_info() local 78 memset(&info, 0, sizeof(info)); in hwdep_get_info() 79 info.type = SNDRV_FIREWIRE_TYPE_DICE; in hwdep_get_info() 80 info.card = dev->card->index; in hwdep_get_info() 81 *(__be32 *)&info.guid[0] = cpu_to_be32(dev->config_rom[3]); in hwdep_get_info() 82 *(__be32 *)&info.guid[4] = cpu_to_be32(dev->config_rom[4]); in hwdep_get_info() 83 strlcpy(info.device_name, dev_name(&dev->device), in hwdep_get_info() 84 sizeof(info.device_name)); in hwdep_get_info() 86 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
|
/sound/firewire/digi00x/ |
D | digi00x-hwdep.c | 84 struct snd_firewire_get_info info; in hwdep_get_info() local 86 memset(&info, 0, sizeof(info)); in hwdep_get_info() 87 info.type = SNDRV_FIREWIRE_TYPE_DIGI00X; in hwdep_get_info() 88 info.card = dev->card->index; in hwdep_get_info() 89 *(__be32 *)&info.guid[0] = cpu_to_be32(dev->config_rom[3]); in hwdep_get_info() 90 *(__be32 *)&info.guid[4] = cpu_to_be32(dev->config_rom[4]); in hwdep_get_info() 91 strlcpy(info.device_name, dev_name(&dev->device), in hwdep_get_info() 92 sizeof(info.device_name)); in hwdep_get_info() 94 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
|