/sound/soc/cirrus/ |
D | ep93xx-i2s.c | 84 static inline void ep93xx_i2s_write_reg(struct ep93xx_i2s_info *info, in ep93xx_i2s_write_reg() argument 87 __raw_writel(val, info->regs + reg); in ep93xx_i2s_write_reg() 90 static inline unsigned ep93xx_i2s_read_reg(struct ep93xx_i2s_info *info, in ep93xx_i2s_read_reg() argument 93 return __raw_readl(info->regs + reg); in ep93xx_i2s_read_reg() 96 static void ep93xx_i2s_enable(struct ep93xx_i2s_info *info, int stream) in ep93xx_i2s_enable() argument 101 if ((ep93xx_i2s_read_reg(info, EP93XX_I2S_TX0EN) & 0x1) == 0 && in ep93xx_i2s_enable() 102 (ep93xx_i2s_read_reg(info, EP93XX_I2S_RX0EN) & 0x1) == 0) { in ep93xx_i2s_enable() 104 clk_enable(info->mclk); in ep93xx_i2s_enable() 105 clk_enable(info->sclk); in ep93xx_i2s_enable() 106 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 | 86 static void reset_channels(struct seq_oss_synthinfo *info); 215 struct seq_oss_synthinfo *info; in snd_seq_oss_synth_setup() local 228 info = &dp->synths[i]; in snd_seq_oss_synth_setup() 229 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup() 230 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup() 231 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup() 233 info->arg.event_passing = SNDRV_SEQ_OSS_PROCESS_EVENTS; in snd_seq_oss_synth_setup() 235 info->arg.event_passing = SNDRV_SEQ_OSS_PASS_EVENTS; in snd_seq_oss_synth_setup() 236 info->opened = 0; in snd_seq_oss_synth_setup() 241 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 | 288 struct seq_oss_synthinfo *info; in note_on_event() local 293 info = &dp->synths[dev]; in note_on_event() 294 switch (info->arg.event_passing) { in note_on_event() 296 if (! info->ch || ch < 0 || ch >= info->nr_voices) { in note_on_event() 301 if (note == 255 && info->ch[ch].note >= 0) { in note_on_event() 308 if (info->ch[ch].vel) in note_on_event() 314 info->ch[ch].vel = vel; in note_on_event() 315 return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev); in note_on_event() 319 if (note != info->ch[ch].note && info->ch[ch].note >= 0) in note_on_event() 321 set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, info->ch[ch].note, 0, ev); in note_on_event() [all …]
|
/sound/core/seq/ |
D | seq_clientmgr.c | 685 event->dest = subs->info.dest; in deliver_to_subscribers() 686 if (subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIMESTAMP) in deliver_to_subscribers() 688 update_timestamp_of_queue(event, subs->info.queue, in deliver_to_subscribers() 689 subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIME_REAL); in deliver_to_subscribers() 1134 struct snd_seq_system_info info; in snd_seq_ioctl_system_info() local 1136 memset(&info, 0, sizeof(info)); in snd_seq_ioctl_system_info() 1138 info.queues = SNDRV_SEQ_MAX_QUEUES; in snd_seq_ioctl_system_info() 1139 info.clients = SNDRV_SEQ_MAX_CLIENTS; in snd_seq_ioctl_system_info() 1140 info.ports = 256; /* fixed limit */ in snd_seq_ioctl_system_info() 1141 info.channels = 256; /* fixed limit */ in snd_seq_ioctl_system_info() [all …]
|
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_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_register_port() local 293 info = kmalloc(sizeof(*info), GFP_KERNEL); in snd_seq_midisynth_register_port() 294 if (! info) in snd_seq_midisynth_register_port() 296 info->device = device; in snd_seq_midisynth_register_port() 297 info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; in snd_seq_midisynth_register_port() 298 info->subdevice = 0; in snd_seq_midisynth_register_port() [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); 116 struct snd_seq_port_info *info); 120 struct snd_seq_port_info *info); 126 struct snd_seq_port_subscribe *info); 132 struct snd_seq_port_subscribe *info); 136 struct snd_seq_port_subscribe *info);
|
/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 …]
|
D | siu_pcm.c | 51 struct siu_info *info = siu_i2s_data; in siu_pcm_stmwrite_stop() local 52 u32 __iomem *base = info->reg; in siu_pcm_stmwrite_stop() 117 struct siu_info *info = siu_i2s_data; in siu_pcm_wr_set() local 118 u32 __iomem *base = info->reg; in siu_pcm_wr_set() 165 struct siu_info *info = siu_i2s_data; in siu_pcm_rd_set() local 166 u32 __iomem *base = info->reg; in siu_pcm_rd_set() 275 struct siu_info *info = siu_i2s_data; in siu_pcm_stmread_stop() local 276 u32 __iomem *base = info->reg; in siu_pcm_stmread_stop() 299 struct siu_info *info = siu_i2s_data; in siu_pcm_hw_params() local 303 dev_dbg(dev, "%s: port=%d\n", __func__, info->port_id); in siu_pcm_hw_params() [all …]
|
/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 71 for (ch = 0; ch < slave->info.count; ch++) in slave_update() 83 if (slave->info.count) { in slave_init() 94 err = slave->slave.info(&slave->slave, uinfo); in slave_init() 99 slave->info.type = uinfo->type; in slave_init() 100 slave->info.count = uinfo->count; in slave_init() 101 if (slave->info.count > 2 || in slave_init() 102 (slave->info.type != SNDRV_CTL_ELEM_TYPE_INTEGER && in slave_init() 103 slave->info.type != SNDRV_CTL_ELEM_TYPE_BOOLEAN)) { in slave_init() [all …]
|
D | control.c | 237 if (snd_BUG_ON(!ncontrol || !ncontrol->info)) in snd_ctl_new1() 258 kctl.info = ncontrol->info; in snd_ctl_new1() 344 if (snd_BUG_ON(!card || !kcontrol->info)) in snd_ctl_add() 409 if (snd_BUG_ON(!card || !kcontrol->info)) { in snd_ctl_replace() 698 struct snd_ctl_card_info *info; in snd_ctl_card_info() local 700 info = kzalloc(sizeof(*info), GFP_KERNEL); in snd_ctl_card_info() 701 if (! info) in snd_ctl_card_info() 704 info->card = card->number; in snd_ctl_card_info() 705 strlcpy(info->id, card->id, sizeof(info->id)); in snd_ctl_card_info() 706 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 | 39 struct snd_timer_info32 info; in snd_timer_user_info_compat() local 48 memset(&info, 0, sizeof(info)); in snd_timer_user_info_compat() 49 info.card = t->card ? t->card->number : -1; in snd_timer_user_info_compat() 51 info.flags |= SNDRV_TIMER_FLG_SLAVE; in snd_timer_user_info_compat() 52 strlcpy(info.id, t->id, sizeof(info.id)); in snd_timer_user_info_compat() 53 strlcpy(info.name, t->name, sizeof(info.name)); in snd_timer_user_info_compat() 54 info.resolution = t->hw.resolution; in snd_timer_user_info_compat() 55 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/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() 70 if (info.port < 0) { in snd_emux_hwdep_misc_mode() 72 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode() 74 if (info.port < emu->num_ports) in snd_emux_hwdep_misc_mode() 75 emu->portptrs[info.port]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
|
/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 | 1079 struct dbri_streaminfo *info = &dbri->stream_info[streamno]; in setup_descs() local 1086 if (info->pipe < 0 || info->pipe > 15) { in setup_descs() 1091 if (dbri->pipes[info->pipe].sdp == 0) { in setup_descs() 1093 info->pipe); in setup_descs() 1097 dvma_buffer = info->dvma_buffer; in setup_descs() 1098 len = info->size; in setup_descs() 1101 if (!(dbri->pipes[info->pipe].sdp & D_SDP_TO_SER)) { in setup_descs() 1103 "Called on receive pipe %d\n", info->pipe); in setup_descs() 1107 if (dbri->pipes[info->pipe].sdp & D_SDP_TO_SER) { in setup_descs() 1110 info->pipe); in setup_descs() [all …]
|
/sound/soc/sh/rcar/ |
D | core.c | 122 (!(priv->info->func) ? 0 : \ 123 priv->info->func(param)) 126 ((io)->info ? (io)->info->name : NULL) 128 ((io)->info->name - priv->info->name##_info) 734 struct rcar_snd_info *info = rsnd_priv_to_info(priv); in rsnd_of_parse_dai() local 758 info->dai_info_nr = nr; in rsnd_of_parse_dai() 759 info->dai_info = dai_info; in rsnd_of_parse_dai() 771 name##_info = info->name##_info + name##_i; \ in rsnd_of_parse_dai() 787 dai_info = info->dai_info + dai_i; in rsnd_of_parse_dai() 814 struct rcar_snd_info *info = rsnd_priv_to_info(priv); in rsnd_dai_probe() local [all …]
|
/sound/oss/ |
D | soundcard.c | 287 mixer_info info; in get_mixer_info() local 288 memset(&info, 0, sizeof(info)); in get_mixer_info() 289 strlcpy(info.id, mixer_devs[dev]->id, sizeof(info.id)); in get_mixer_info() 290 strlcpy(info.name, mixer_devs[dev]->name, sizeof(info.name)); in get_mixer_info() 291 info.modify_counter = mixer_devs[dev]->modify_counter; in get_mixer_info() 292 if (__copy_to_user(arg, &info, sizeof(info))) in get_mixer_info() 299 _old_mixer_info info; in get_old_mixer_info() local 300 memset(&info, 0, sizeof(info)); in get_old_mixer_info() 301 strlcpy(info.id, mixer_devs[dev]->id, sizeof(info.id)); in get_old_mixer_info() 302 strlcpy(info.name, mixer_devs[dev]->name, sizeof(info.name)); in get_old_mixer_info() [all …]
|