Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/sound/soc/cirrus/
Dep93xx-i2s.c95 static inline void ep93xx_i2s_write_reg(struct ep93xx_i2s_info *info, in ep93xx_i2s_write_reg() argument
98 __raw_writel(val, info->regs + reg); in ep93xx_i2s_write_reg()
101 static inline unsigned ep93xx_i2s_read_reg(struct ep93xx_i2s_info *info, in ep93xx_i2s_read_reg() argument
104 return __raw_readl(info->regs + reg); in ep93xx_i2s_read_reg()
107 static void ep93xx_i2s_enable(struct ep93xx_i2s_info *info, int stream) in ep93xx_i2s_enable() argument
111 if ((ep93xx_i2s_read_reg(info, EP93XX_I2S_TX0EN) & 0x1) == 0 && in ep93xx_i2s_enable()
112 (ep93xx_i2s_read_reg(info, EP93XX_I2S_RX0EN) & 0x1) == 0) { in ep93xx_i2s_enable()
114 clk_enable(info->mclk); in ep93xx_i2s_enable()
115 clk_enable(info->sclk); in ep93xx_i2s_enable()
116 clk_enable(info->lrclk); in ep93xx_i2s_enable()
[all …]
Dep93xx-ac97.c118 static inline unsigned ep93xx_ac97_read_reg(struct ep93xx_ac97_info *info, in ep93xx_ac97_read_reg() argument
121 return __raw_readl(info->regs + reg); in ep93xx_ac97_read_reg()
124 static inline void ep93xx_ac97_write_reg(struct ep93xx_ac97_info *info, in ep93xx_ac97_write_reg() argument
127 __raw_writel(val, info->regs + reg); in ep93xx_ac97_write_reg()
133 struct ep93xx_ac97_info *info = ep93xx_ac97_info; in ep93xx_ac97_read() local
136 mutex_lock(&info->lock); in ep93xx_ac97_read()
138 ep93xx_ac97_write_reg(info, AC97S1DATA, reg); in ep93xx_ac97_read()
139 ep93xx_ac97_write_reg(info, AC97IM, AC97_SLOT2RXVALID); in ep93xx_ac97_read()
140 if (!wait_for_completion_timeout(&info->done, AC97_TIMEOUT)) { in ep93xx_ac97_read()
141 dev_warn(info->dev, "timeout reading register %x\n", reg); in ep93xx_ac97_read()
[all …]
/sound/core/seq/oss/
Dseq_oss_synth.c74 static void reset_channels(struct seq_oss_synthinfo *info);
204 struct seq_oss_synthinfo *info; in snd_seq_oss_synth_setup() local
217 info = &dp->synths[i]; in snd_seq_oss_synth_setup()
218 info->arg.app_index = dp->port; in snd_seq_oss_synth_setup()
219 info->arg.file_mode = dp->file_mode; in snd_seq_oss_synth_setup()
220 info->arg.seq_mode = dp->seq_mode; in snd_seq_oss_synth_setup()
222 info->arg.event_passing = SNDRV_SEQ_OSS_PROCESS_EVENTS; in snd_seq_oss_synth_setup()
224 info->arg.event_passing = SNDRV_SEQ_OSS_PASS_EVENTS; in snd_seq_oss_synth_setup()
225 info->opened = 0; in snd_seq_oss_synth_setup()
230 if (rec->oper.open(&info->arg, rec->private_data) < 0) { in snd_seq_oss_synth_setup()
[all …]
Dseq_oss_ioctl.c20 struct synth_info info; in snd_seq_oss_synth_info_user() local
22 if (copy_from_user(&info, arg, sizeof(info))) in snd_seq_oss_synth_info_user()
24 if (snd_seq_oss_synth_make_info(dp, info.device, &info) < 0) in snd_seq_oss_synth_info_user()
26 if (copy_to_user(arg, &info, sizeof(info))) in snd_seq_oss_synth_info_user()
33 struct midi_info info; in snd_seq_oss_midi_info_user() local
35 if (copy_from_user(&info, arg, sizeof(info))) in snd_seq_oss_midi_info_user()
37 if (snd_seq_oss_midi_make_info(dp, info.device, &info) < 0) in snd_seq_oss_midi_info_user()
39 if (copy_to_user(arg, &info, sizeof(info))) in snd_seq_oss_midi_info_user()
Dseq_oss_event.c276 struct seq_oss_synthinfo *info; in note_on_event() local
278 info = snd_seq_oss_synth_info(dp, dev); in note_on_event()
279 if (!info) in note_on_event()
282 switch (info->arg.event_passing) { in note_on_event()
284 if (! info->ch || ch < 0 || ch >= info->nr_voices) { in note_on_event()
289 ch = array_index_nospec(ch, info->nr_voices); in note_on_event()
290 if (note == 255 && info->ch[ch].note >= 0) { in note_on_event()
297 if (info->ch[ch].vel) in note_on_event()
303 info->ch[ch].vel = vel; in note_on_event()
304 return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev); in note_on_event()
[all …]
/sound/soc/sh/
Dsiu_dai.c96 struct siu_info *info = siu_i2s_data; in siu_dai_start() local
97 u32 __iomem *base = info->reg; in siu_dai_start()
139 struct siu_info *info = siu_i2s_data; in siu_dai_stop() local
140 u32 __iomem *base = info->reg; in siu_dai_stop()
148 struct siu_info *info = siu_i2s_data; in siu_dai_spbAselect() local
149 struct siu_firmware *fw = &info->fw; in siu_dai_spbAselect()
154 if (!info->port_id) in siu_dai_spbAselect()
173 struct siu_info *info = siu_i2s_data; in siu_dai_spbBselect() local
174 struct siu_firmware *fw = &info->fw; in siu_dai_spbBselect()
179 if (!info->port_id) in siu_dai_spbBselect()
[all …]
Dsiu_pcm.c39 struct siu_info *info = siu_i2s_data; in siu_pcm_stmwrite_stop() local
40 u32 __iomem *base = info->reg; in siu_pcm_stmwrite_stop()
105 struct siu_info *info = siu_i2s_data; in siu_pcm_wr_set() local
106 u32 __iomem *base = info->reg; in siu_pcm_wr_set()
153 struct siu_info *info = siu_i2s_data; in siu_pcm_rd_set() local
154 u32 __iomem *base = info->reg; in siu_pcm_rd_set()
263 struct siu_info *info = siu_i2s_data; in siu_pcm_stmread_stop() local
264 u32 __iomem *base = info->reg; in siu_pcm_stmread_stop()
287 struct siu_info *info = siu_i2s_data; in siu_pcm_hw_params() local
291 dev_dbg(dev, "%s: port=%d\n", __func__, info->port_id); in siu_pcm_hw_params()
[all …]
/sound/core/seq/
Dseq_clientmgr.c688 event->dest = subs->info.dest; in deliver_to_subscribers()
689 if (subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIMESTAMP) in deliver_to_subscribers()
691 update_timestamp_of_queue(event, subs->info.queue, in deliver_to_subscribers()
692 subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIME_REAL); in deliver_to_subscribers()
1172 struct snd_seq_system_info *info = arg; in snd_seq_ioctl_system_info() local
1174 memset(info, 0, sizeof(*info)); in snd_seq_ioctl_system_info()
1176 info->queues = SNDRV_SEQ_MAX_QUEUES; in snd_seq_ioctl_system_info()
1177 info->clients = SNDRV_SEQ_MAX_CLIENTS; in snd_seq_ioctl_system_info()
1178 info->ports = SNDRV_SEQ_MAX_PORTS; in snd_seq_ioctl_system_info()
1179 info->channels = 256; /* fixed limit */ in snd_seq_ioctl_system_info()
[all …]
Dseq_ports.c166 struct snd_seq_port_subscribe *info, int send_ack);
170 struct snd_seq_port_subscribe *info, int send_ack);
221 aport = get_client_port(&subs->info.dest, &c); in clear_subscriber_list()
223 aport = get_client_port(&subs->info.sender, &c); in clear_subscriber_list()
323 struct snd_seq_port_info * info) in snd_seq_set_port_info() argument
325 if (snd_BUG_ON(!port || !info)) in snd_seq_set_port_info()
329 if (info->name[0]) in snd_seq_set_port_info()
330 strlcpy(port->name, info->name, sizeof(port->name)); in snd_seq_set_port_info()
333 port->capability = info->capability; in snd_seq_set_port_info()
336 port->type = info->type; in snd_seq_set_port_info()
[all …]
Dseq_midi.c162 static int midisynth_subscribe(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_subscribe() argument
193 static int midisynth_unsubscribe(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_unsubscribe() argument
205 static int midisynth_use(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_use() argument
232 static int midisynth_unuse(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_unuse() argument
264 struct snd_rawmidi_info *info; in snd_seq_midisynth_probe() local
275 info = kmalloc(sizeof(*info), GFP_KERNEL); in snd_seq_midisynth_probe()
276 if (! info) in snd_seq_midisynth_probe()
278 info->device = device; in snd_seq_midisynth_probe()
279 info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; in snd_seq_midisynth_probe()
280 info->subdevice = 0; in snd_seq_midisynth_probe()
[all …]
Dseq_prioq.c328 static int prioq_remove_match(struct snd_seq_remove_events *info, in prioq_remove_match() argument
333 if (info->remove_mode & SNDRV_SEQ_REMOVE_DEST) { in prioq_remove_match()
334 if (ev->dest.client != info->dest.client || in prioq_remove_match()
335 ev->dest.port != info->dest.port) in prioq_remove_match()
338 if (info->remove_mode & SNDRV_SEQ_REMOVE_DEST_CHANNEL) { in prioq_remove_match()
342 if (ev->data.note.channel != info->channel) in prioq_remove_match()
345 if (info->remove_mode & SNDRV_SEQ_REMOVE_TIME_AFTER) { in prioq_remove_match()
346 if (info->remove_mode & SNDRV_SEQ_REMOVE_TIME_TICK) in prioq_remove_match()
347 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
349 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match()
[all …]
Dseq_ports.h29 struct snd_seq_port_subscribe info; /* additional info */ member
41 int (*open)(void *private_data, struct snd_seq_port_subscribe *info);
42 int (*close)(void *private_data, struct snd_seq_port_subscribe *info);
100 struct snd_seq_port_info *info);
104 struct snd_seq_port_info *info);
110 struct snd_seq_port_subscribe *info);
116 struct snd_seq_port_subscribe *info);
120 struct snd_seq_port_subscribe *info);
/sound/firewire/bebob/
Dbebob_proc.c39 struct hw_info *info; in proc_read_hw_info() local
41 info = kzalloc(sizeof(struct hw_info), GFP_KERNEL); in proc_read_hw_info()
42 if (info == NULL) in proc_read_hw_info()
46 info, sizeof(struct hw_info)) < 0) in proc_read_hw_info()
50 (char *)&info->manufacturer); in proc_read_hw_info()
51 snd_iprintf(buffer, "Protocol Ver:\t%d\n", info->protocol_ver); in proc_read_hw_info()
52 snd_iprintf(buffer, "Build Ver:\t%d\n", info->bld_ver); in proc_read_hw_info()
54 info->guid[0], info->guid[1]); in proc_read_hw_info()
55 snd_iprintf(buffer, "Model ID:\t0x%02X\n", info->model_id); in proc_read_hw_info()
56 snd_iprintf(buffer, "Model Rev:\t%d\n", info->model_rev); in proc_read_hw_info()
[all …]
/sound/synth/emux/
Demux_hwdep.c53 struct snd_emux_misc_mode info; in snd_emux_hwdep_misc_mode() local
56 if (copy_from_user(&info, arg, sizeof(info))) in snd_emux_hwdep_misc_mode()
58 if (info.mode < 0 || info.mode >= EMUX_MD_END) in snd_emux_hwdep_misc_mode()
60 info.mode = array_index_nospec(info.mode, EMUX_MD_END); in snd_emux_hwdep_misc_mode()
62 if (info.port < 0) { in snd_emux_hwdep_misc_mode()
64 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
66 if (info.port < emu->num_ports) { in snd_emux_hwdep_misc_mode()
67 info.port = array_index_nospec(info.port, emu->num_ports); in snd_emux_hwdep_misc_mode()
68 emu->portptrs[info.port]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
/sound/core/
Dvmaster.c33 struct link_ctl_info info; member
50 struct link_ctl_info info; member
69 for (ch = 0; ch < slave->info.count; ch++) in slave_update()
82 if (slave->info.count) { in slave_init()
93 err = slave->slave.info(&slave->slave, uinfo); in slave_init()
98 slave->info.type = uinfo->type; in slave_init()
99 slave->info.count = uinfo->count; in slave_init()
100 if (slave->info.count > 2 || in slave_init()
101 (slave->info.type != SNDRV_CTL_ELEM_TYPE_INTEGER && in slave_init()
102 slave->info.type != SNDRV_CTL_ELEM_TYPE_BOOLEAN)) { in slave_init()
[all …]
Dcontrol.c236 if (snd_BUG_ON(!ncontrol || !ncontrol->info)) in snd_ctl_new1()
269 kctl->info = ncontrol->info; in snd_ctl_new1()
393 if (snd_BUG_ON(!card || !kcontrol->info)) in snd_ctl_add_replace()
695 struct snd_ctl_card_info *info; in snd_ctl_card_info() local
697 info = kzalloc(sizeof(*info), GFP_KERNEL); in snd_ctl_card_info()
698 if (! info) in snd_ctl_card_info()
701 info->card = card->number; in snd_ctl_card_info()
702 strlcpy(info->id, card->id, sizeof(info->id)); in snd_ctl_card_info()
703 strlcpy(info->driver, card->driver, sizeof(info->driver)); in snd_ctl_card_info()
704 strlcpy(info->name, card->shortname, sizeof(info->name)); in snd_ctl_card_info()
[all …]
Dhwdep.c176 struct snd_hwdep_info info; in snd_hwdep_info() local
178 memset(&info, 0, sizeof(info)); in snd_hwdep_info()
179 info.card = hw->card->number; in snd_hwdep_info()
180 strlcpy(info.id, hw->id, sizeof(info.id)); in snd_hwdep_info()
181 strlcpy(info.name, hw->name, sizeof(info.name)); in snd_hwdep_info()
182 info.iface = hw->iface; in snd_hwdep_info()
183 if (copy_to_user(_info, &info, sizeof(info))) in snd_hwdep_info()
191 struct snd_hwdep_dsp_status info; in snd_hwdep_dsp_status() local
196 memset(&info, 0, sizeof(info)); in snd_hwdep_dsp_status()
197 info.dsp_loaded = hw->dsp_loaded; in snd_hwdep_dsp_status()
[all …]
Dtimer_compat.c51 struct snd_timer_info32 info; in snd_timer_user_info_compat() local
60 memset(&info, 0, sizeof(info)); in snd_timer_user_info_compat()
61 info.card = t->card ? t->card->number : -1; in snd_timer_user_info_compat()
63 info.flags |= SNDRV_TIMER_FLG_SLAVE; in snd_timer_user_info_compat()
64 strlcpy(info.id, t->id, sizeof(info.id)); in snd_timer_user_info_compat()
65 strlcpy(info.name, t->name, sizeof(info.name)); in snd_timer_user_info_compat()
66 info.resolution = t->hw.resolution; in snd_timer_user_info_compat()
67 if (copy_to_user(_info, &info, sizeof(*_info))) in snd_timer_user_info_compat()
/sound/drivers/vx/
Dvx_mixer.c205 struct vx_audio_level *info) in vx_adjust_audio_level() argument
218 if (info->has_level) { in vx_adjust_audio_level()
220 rmh.Cmd[2] |= info->level; in vx_adjust_audio_level()
222 if (info->has_monitor_level) { in vx_adjust_audio_level()
224 rmh.Cmd[2] |= ((unsigned int)info->monitor_level << 10); in vx_adjust_audio_level()
226 if (info->has_mute) { in vx_adjust_audio_level()
228 if (info->mute) in vx_adjust_audio_level()
231 if (info->has_monitor_mute) { in vx_adjust_audio_level()
234 if (info->monitor_mute) in vx_adjust_audio_level()
244 struct vx_audio_level *info)
[all …]
/sound/pci/oxygen/
Doxygen_mixer.c17 struct snd_ctl_elem_info *info) in dac_volume_info() argument
21 info->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in dac_volume_info()
22 info->count = chip->model.dac_channels_mixer; in dac_volume_info()
23 info->value.integer.min = chip->model.dac_volume_min; in dac_volume_info()
24 info->value.integer.max = chip->model.dac_volume_max; in dac_volume_info()
98 static int upmix_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info) in upmix_info() argument
110 return snd_ctl_enum_info(info, 1, count, names); in upmix_info()
294 static int spdif_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info) in spdif_info() argument
296 info->type = SNDRV_CTL_ELEM_TYPE_IEC958; in spdif_info()
297 info->count = 1; in spdif_info()
[all …]
Dxonar_dg_mixer.c48 struct snd_ctl_elem_info *info) in output_select_info() argument
56 return snd_ctl_enum_info(info, 1, 3, names); in output_select_info()
95 struct snd_ctl_elem_info *info) in hp_stereo_volume_info() argument
97 info->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in hp_stereo_volume_info()
98 info->count = 2; in hp_stereo_volume_info()
99 info->value.integer.min = 0; in hp_stereo_volume_info()
100 info->value.integer.max = 255; in hp_stereo_volume_info()
199 struct snd_ctl_elem_info *info) in input_vol_info() argument
201 info->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in input_vol_info()
202 info->count = 2; in input_vol_info()
[all …]
/sound/sparc/
Ddbri.c1088 struct dbri_streaminfo *info = &dbri->stream_info[streamno]; in setup_descs() local
1096 if (info->pipe < 0 || info->pipe > 15) { in setup_descs()
1101 if (dbri->pipes[info->pipe].sdp == 0) { in setup_descs()
1103 info->pipe); in setup_descs()
1107 dvma_buffer = info->dvma_buffer; in setup_descs()
1108 len = info->size; in setup_descs()
1111 if (!(dbri->pipes[info->pipe].sdp & D_SDP_TO_SER)) { in setup_descs()
1113 "Called on receive pipe %d\n", info->pipe); in setup_descs()
1117 if (dbri->pipes[info->pipe].sdp & D_SDP_TO_SER) { in setup_descs()
1120 info->pipe); in setup_descs()
[all …]
/sound/firewire/fireface/
Dff-hwdep.c75 struct snd_firewire_get_info info; in hwdep_get_info() local
77 memset(&info, 0, sizeof(info)); in hwdep_get_info()
78 info.type = SNDRV_FIREWIRE_TYPE_FIREFACE; in hwdep_get_info()
79 info.card = dev->card->index; in hwdep_get_info()
80 *(__be32 *)&info.guid[0] = cpu_to_be32(dev->config_rom[3]); in hwdep_get_info()
81 *(__be32 *)&info.guid[4] = cpu_to_be32(dev->config_rom[4]); in hwdep_get_info()
82 strlcpy(info.device_name, dev_name(&dev->device), in hwdep_get_info()
83 sizeof(info.device_name)); in hwdep_get_info()
85 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
/sound/firewire/oxfw/
Doxfw-hwdep.c75 struct snd_firewire_get_info info; in hwdep_get_info() local
77 memset(&info, 0, sizeof(info)); in hwdep_get_info()
78 info.type = SNDRV_FIREWIRE_TYPE_OXFW; in hwdep_get_info()
79 info.card = dev->card->index; in hwdep_get_info()
80 *(__be32 *)&info.guid[0] = cpu_to_be32(dev->config_rom[3]); in hwdep_get_info()
81 *(__be32 *)&info.guid[4] = cpu_to_be32(dev->config_rom[4]); in hwdep_get_info()
82 strlcpy(info.device_name, dev_name(&dev->device), in hwdep_get_info()
83 sizeof(info.device_name)); in hwdep_get_info()
85 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()
/sound/firewire/digi00x/
Ddigi00x-hwdep.c83 struct snd_firewire_get_info info; in hwdep_get_info() local
85 memset(&info, 0, sizeof(info)); in hwdep_get_info()
86 info.type = SNDRV_FIREWIRE_TYPE_DIGI00X; in hwdep_get_info()
87 info.card = dev->card->index; in hwdep_get_info()
88 *(__be32 *)&info.guid[0] = cpu_to_be32(dev->config_rom[3]); in hwdep_get_info()
89 *(__be32 *)&info.guid[4] = cpu_to_be32(dev->config_rom[4]); in hwdep_get_info()
90 strlcpy(info.device_name, dev_name(&dev->device), in hwdep_get_info()
91 sizeof(info.device_name)); in hwdep_get_info()
93 if (copy_to_user(arg, &info, sizeof(info))) in hwdep_get_info()

12345678910>>...16