/sound/soc/codecs/ |
D | arizona-jack.c | 95 static void arizona_start_hpdet_acc_id(struct arizona_priv *info); 97 static void arizona_extcon_hp_clamp(struct arizona_priv *info, in arizona_extcon_hp_clamp() argument 100 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp() 175 static void arizona_extcon_set_mode(struct arizona_priv *info, int mode) in arizona_extcon_set_mode() argument 177 struct arizona *arizona = info->arizona; in arizona_extcon_set_mode() 179 mode %= info->micd_num_modes; in arizona_extcon_set_mode() 181 gpiod_set_value_cansleep(info->micd_pol_gpio, in arizona_extcon_set_mode() 182 info->micd_modes[mode].gpio); in arizona_extcon_set_mode() 186 info->micd_modes[mode].bias << in arizona_extcon_set_mode() 189 ARIZONA_ACCDET_SRC, info->micd_modes[mode].src); in arizona_extcon_set_mode() [all …]
|
/sound/soc/fsl/ |
D | imx-pcm-rpmsg.c | 20 .info = SNDRV_PCM_INFO_INTERLEAVED | 37 struct rpmsg_info *info) in imx_rpmsg_pcm_send_message() argument 39 struct rpmsg_device *rpdev = info->rpdev; in imx_rpmsg_pcm_send_message() 42 mutex_lock(&info->msg_lock); in imx_rpmsg_pcm_send_message() 44 dev_err(info->dev, "rpmsg channel not ready\n"); in imx_rpmsg_pcm_send_message() 45 mutex_unlock(&info->msg_lock); in imx_rpmsg_pcm_send_message() 52 reinit_completion(&info->cmd_complete); in imx_rpmsg_pcm_send_message() 58 mutex_unlock(&info->msg_lock); in imx_rpmsg_pcm_send_message() 64 mutex_unlock(&info->msg_lock); in imx_rpmsg_pcm_send_message() 69 ret = wait_for_completion_timeout(&info->cmd_complete, in imx_rpmsg_pcm_send_message() [all …]
|
D | imx-audio-rpmsg.c | 22 struct rpmsg_info *info; in imx_audio_rpmsg_cb() local 29 info = platform_get_drvdata(rpmsg->rpmsg_pdev); in imx_audio_rpmsg_cb() 39 spin_lock_irqsave(&info->lock[TX], flags); in imx_audio_rpmsg_cb() 40 msg = &info->msg[TX_PERIOD_DONE + MSG_TYPE_A_NUM]; in imx_audio_rpmsg_cb() 43 msg->r_msg.param.buffer_tail %= info->num_period[TX]; in imx_audio_rpmsg_cb() 44 spin_unlock_irqrestore(&info->lock[TX], flags); in imx_audio_rpmsg_cb() 45 info->callback[TX](info->callback_param[TX]); in imx_audio_rpmsg_cb() 48 spin_lock_irqsave(&info->lock[RX], flags); in imx_audio_rpmsg_cb() 49 msg = &info->msg[RX_PERIOD_DONE + MSG_TYPE_A_NUM]; in imx_audio_rpmsg_cb() 52 msg->r_msg.param.buffer_tail %= info->num_period[1]; in imx_audio_rpmsg_cb() [all …]
|
/sound/soc/cirrus/ |
D | ep93xx-i2s.c | 95 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 …]
|
D | ep93xx-ac97.c | 118 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/ |
D | seq_oss_synth.c | 74 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 …]
|
D | seq_oss_ioctl.c | 20 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()
|
D | seq_oss_event.c | 276 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/ |
D | siu_dai.c | 96 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 …]
|
/sound/core/seq/ |
D | seq_clientmgr.c | 688 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() 1173 struct snd_seq_system_info *info = arg; in snd_seq_ioctl_system_info() local 1175 memset(info, 0, sizeof(*info)); in snd_seq_ioctl_system_info() 1177 info->queues = SNDRV_SEQ_MAX_QUEUES; in snd_seq_ioctl_system_info() 1178 info->clients = SNDRV_SEQ_MAX_CLIENTS; in snd_seq_ioctl_system_info() 1179 info->ports = SNDRV_SEQ_MAX_PORTS; in snd_seq_ioctl_system_info() 1180 info->channels = 256; /* fixed limit */ in snd_seq_ioctl_system_info() [all …]
|
D | seq_ports.c | 166 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 strscpy(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 …]
|
D | seq_midi.c | 163 static int midisynth_subscribe(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_subscribe() argument 196 static int midisynth_unsubscribe(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_unsubscribe() argument 208 static int midisynth_use(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_use() argument 237 static int midisynth_unuse(void *private_data, struct snd_seq_port_subscribe *info) in midisynth_unuse() argument 269 struct snd_rawmidi_info *info; in snd_seq_midisynth_probe() local 280 info = kmalloc(sizeof(*info), GFP_KERNEL); in snd_seq_midisynth_probe() 281 if (! info) in snd_seq_midisynth_probe() 283 info->device = device; in snd_seq_midisynth_probe() 284 info->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; in snd_seq_midisynth_probe() 285 info->subdevice = 0; in snd_seq_midisynth_probe() [all …]
|
D | seq_prioq.c | 328 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 …]
|
/sound/core/ |
D | control.c | 269 if (snd_BUG_ON(!ncontrol || !ncontrol->info)) in snd_ctl_new1() 304 kctl->info = ncontrol->info; in snd_ctl_new1() 514 if (snd_BUG_ON(!card || !kcontrol->info)) in snd_ctl_add_replace() 835 struct snd_ctl_card_info *info; in snd_ctl_card_info() local 837 info = kzalloc(sizeof(*info), GFP_KERNEL); in snd_ctl_card_info() 838 if (! info) in snd_ctl_card_info() 841 info->card = card->number; in snd_ctl_card_info() 842 strscpy(info->id, card->id, sizeof(info->id)); in snd_ctl_card_info() 843 strscpy(info->driver, card->driver, sizeof(info->driver)); in snd_ctl_card_info() 844 strscpy(info->name, card->shortname, sizeof(info->name)); in snd_ctl_card_info() [all …]
|
D | vmaster.c | 33 struct link_ctl_info info; member 50 struct link_ctl_info info; member 69 for (ch = 0; ch < follower->info.count; ch++) in follower_update() 82 if (follower->info.count) { in follower_init() 93 err = follower->follower.info(&follower->follower, uinfo); in follower_init() 98 follower->info.type = uinfo->type; in follower_init() 99 follower->info.count = uinfo->count; in follower_init() 100 if (follower->info.count > 2 || in follower_init() 101 (follower->info.type != SNDRV_CTL_ELEM_TYPE_INTEGER && in follower_init() 102 follower->info.type != SNDRV_CTL_ELEM_TYPE_BOOLEAN)) { in follower_init() [all …]
|
D | hwdep.c | 176 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 strscpy(info.id, hw->id, sizeof(info.id)); in snd_hwdep_info() 181 strscpy(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 …]
|
D | timer_compat.c | 51 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 strscpy(info.id, t->id, sizeof(info.id)); in snd_timer_user_info_compat() 65 strscpy(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/firewire/bebob/ |
D | bebob_proc.c | 39 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/ |
D | emux_hwdep.c | 53 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/drivers/vx/ |
D | vx_mixer.c | 205 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/hda/ |
D | intel-sdw-acpi.c | 51 sdw_intel_scan_controller(struct sdw_intel_acpi_info *info) in sdw_intel_scan_controller() argument 57 if (acpi_bus_get_device(info->handle, &adev)) in sdw_intel_scan_controller() 96 info->count = count; in sdw_intel_scan_controller() 97 info->link_mask = 0; in sdw_intel_scan_controller() 112 info->link_mask |= BIT(i); in sdw_intel_scan_controller() 121 struct sdw_intel_acpi_info *info = cdata; in sdw_intel_acpi_cb() local 146 info->handle = handle; in sdw_intel_acpi_cb() 163 struct sdw_intel_acpi_info *info) in sdw_intel_acpi_scan() argument 167 info->handle = NULL; in sdw_intel_acpi_scan() 177 NULL, info, NULL); in sdw_intel_acpi_scan() [all …]
|
/sound/usb/ |
D | mixer_scarlett_gen2.c | 376 const struct scarlett2_device_info *info; member 1176 const struct scarlett2_device_info *info = private->info; in scarlett2_usb_get_config() local 1178 &scarlett2_config_items[info->has_mixer][config_item_num]; in scarlett2_usb_get_config() 1238 const struct scarlett2_device_info *info = private->info; in scarlett2_usb_set_config() local 1240 &scarlett2_config_items[info->has_mixer][config_item_num]; in scarlett2_usb_set_config() 1338 const struct scarlett2_device_info *info = private->info; in scarlett2_usb_get_mix() local 1341 info->port_count[SCARLETT2_PORT_TYPE_MIX][SCARLETT2_PORT_OUT]; in scarlett2_usb_get_mix() 1381 const struct scarlett2_device_info *info = private->info; in scarlett2_usb_set_mix() local 1390 info->port_count[SCARLETT2_PORT_TYPE_MIX][SCARLETT2_PORT_OUT]; in scarlett2_usb_set_mix() 1448 const struct scarlett2_device_info *info = private->info; in scarlett2_usb_populate_mux() local [all …]
|
/sound/virtio/ |
D | virtio_jack.c | 134 struct virtio_snd_jack_info *info; in virtsnd_jack_parse_cfg() local 147 info = kcalloc(snd->njacks, sizeof(*info), GFP_KERNEL); in virtsnd_jack_parse_cfg() 148 if (!info) in virtsnd_jack_parse_cfg() 152 sizeof(*info), info); in virtsnd_jack_parse_cfg() 159 vjack->nid = le32_to_cpu(info[i].hdr.hda_fn_nid); in virtsnd_jack_parse_cfg() 160 vjack->features = le32_to_cpu(info[i].features); in virtsnd_jack_parse_cfg() 161 vjack->defconf = le32_to_cpu(info[i].hda_reg_defconf); in virtsnd_jack_parse_cfg() 162 vjack->caps = le32_to_cpu(info[i].hda_reg_caps); in virtsnd_jack_parse_cfg() 163 vjack->connected = info[i].connected; in virtsnd_jack_parse_cfg() 167 kfree(info); in virtsnd_jack_parse_cfg()
|
D | virtio_pcm.c | 92 struct virtio_snd_pcm_info *info) in virtsnd_pcm_build_hw() argument 100 vss->features = le32_to_cpu(info->features); in virtsnd_pcm_build_hw() 106 vss->hw.info = in virtsnd_pcm_build_hw() 114 if (!info->channels_min || info->channels_min > info->channels_max) { in virtsnd_pcm_build_hw() 117 vss->sid, info->channels_min, info->channels_max); in virtsnd_pcm_build_hw() 121 vss->hw.channels_min = info->channels_min; in virtsnd_pcm_build_hw() 122 vss->hw.channels_max = info->channels_max; in virtsnd_pcm_build_hw() 124 values = le64_to_cpu(info->formats); in virtsnd_pcm_build_hw() 149 values = le64_to_cpu(info->rates); in virtsnd_pcm_build_hw() 326 struct virtio_snd_pcm_info *info; in virtsnd_pcm_parse_cfg() local [all …]
|
/sound/pci/oxygen/ |
D | oxygen_mixer.c | 17 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 …]
|