/sound/usb/ |
D | mixer.c | 150 static int check_mapped_selector_name(struct mixer_build *state, int unitid, in check_mapped_selector_name() argument 155 if (!state->selector_map) in check_mapped_selector_name() 157 for (p = state->selector_map; p->id; p++) { in check_mapped_selector_name() 167 static void *find_audio_control_unit(struct mixer_build *state, in find_audio_control_unit() argument 173 while ((hdr = snd_usb_find_desc(state->buffer, state->buflen, hdr, in find_audio_control_unit() 558 static int parse_audio_unit(struct mixer_build *state, int unitid); 709 static int get_cluster_channels_v3(struct mixer_build *state, unsigned int cluster_id) in get_cluster_channels_v3() argument 714 err = snd_usb_ctl_msg(state->chip->dev, in get_cluster_channels_v3() 715 usb_rcvctrlpipe(state->chip->dev, 0), in get_cluster_channels_v3() 719 snd_usb_ctrl_intf(state->chip), in get_cluster_channels_v3() [all …]
|
D | power.c | 54 unsigned char state) in snd_usb_power_domain_set() argument 73 if (current_state == state) { in snd_usb_power_domain_set() 75 pd->pd_id, state); in snd_usb_power_domain_set() 82 &state, sizeof(state)); in snd_usb_power_domain_set() 85 state, pd->pd_id); in snd_usb_power_domain_set() 89 if (state == UAC3_PD_STATE_D0) { in snd_usb_power_domain_set() 103 pd->pd_id, state); in snd_usb_power_domain_set()
|
/sound/usb/usx2y/ |
D | usx2yhwdeppcm.c | 125 if (atomic_read(&subs->state) != state_RUNNING) in usX2Y_hwdep_urb_play_prepare() 165 int err, state; in usX2Y_usbpcm_usbframe_complete() local 168 state = atomic_read(&playbacksubs->state); in usX2Y_usbpcm_usbframe_complete() 170 if (state == state_RUNNING) in usX2Y_usbpcm_usbframe_complete() 172 else if (state >= state_PRERUNNING) in usX2Y_usbpcm_usbframe_complete() 173 atomic_inc(&playbacksubs->state); in usX2Y_usbpcm_usbframe_complete() 175 switch (state) { in usX2Y_usbpcm_usbframe_complete() 178 atomic_inc(&playbacksubs->state); in usX2Y_usbpcm_usbframe_complete() 182 atomic_inc(&playbacksubs->state); in usX2Y_usbpcm_usbframe_complete() 195 state = atomic_read(&capsubs->state); in usX2Y_usbpcm_usbframe_complete() [all …]
|
D | usbusx2yaudio.c | 137 if (atomic_read(&subs->state) >= state_PRERUNNING) in usX2Y_urb_play_prepare() 202 int err, state; in usX2Y_usbframe_complete() local 205 state = atomic_read(&playbacksubs->state); in usX2Y_usbframe_complete() 207 if (state == state_RUNNING) in usX2Y_usbframe_complete() 209 else if (state >= state_PRERUNNING) in usX2Y_usbframe_complete() 210 atomic_inc(&playbacksubs->state); in usX2Y_usbframe_complete() 212 switch (state) { in usX2Y_usbframe_complete() 215 atomic_inc(&playbacksubs->state); in usX2Y_usbframe_complete() 219 atomic_inc(&playbacksubs->state); in usX2Y_usbframe_complete() 232 state = atomic_read(&capsubs->state); in usX2Y_usbframe_complete() [all …]
|
/sound/pci/ctxfi/ |
D | ctatc.h | 110 int (*line_front_unmute)(struct ct_atc *atc, unsigned char state); 111 int (*line_surround_unmute)(struct ct_atc *atc, unsigned char state); 112 int (*line_clfe_unmute)(struct ct_atc *atc, unsigned char state); 113 int (*line_rear_unmute)(struct ct_atc *atc, unsigned char state); 114 int (*line_in_unmute)(struct ct_atc *atc, unsigned char state); 115 int (*mic_unmute)(struct ct_atc *atc, unsigned char state); 116 int (*spdif_out_unmute)(struct ct_atc *atc, unsigned char state); 117 int (*spdif_in_unmute)(struct ct_atc *atc, unsigned char state); 120 int (*spdif_out_passthru)(struct ct_atc *atc, unsigned char state);
|
D | ctmixer.c | 275 enum CTALSA_MIXER_CTL type, unsigned char state) in set_switch_state() argument 277 if (state) in set_switch_state() 499 do_digit_io_switch(struct ct_atc *atc, int state) in do_digit_io_switch() argument 503 if (state) { in do_digit_io_switch() 523 static void do_switch(struct ct_atc *atc, enum CTALSA_MIXER_CTL type, int state) in do_switch() argument 530 if (state) { in do_switch() 541 if (state) in do_switch() 543 atc->line_in_unmute(atc, state); in do_switch() 545 atc->line_in_unmute(atc, state); in do_switch() 547 atc->mic_unmute(atc, state); in do_switch() [all …]
|
/sound/soc/ |
D | soc-pcm.c | 1221 dpcm->state = SND_SOC_DPCM_LINK_STATE_NEW; in dpcm_be_connect() 1238 &dpcm->state); in dpcm_be_connect() 1284 if (dpcm->state != SND_SOC_DPCM_LINK_STATE_FREE) in dpcm_be_disconnect() 1473 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in dpcm_prune_paths() 1580 be->dpcm[stream].state); in dpcm_be_dai_startup_unwind() 1585 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) in dpcm_be_dai_startup_unwind() 1590 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE; in dpcm_be_dai_startup_unwind() 1620 be->dpcm[stream].state); in dpcm_be_dai_startup() 1625 if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_NEW) && in dpcm_be_dai_startup() 1626 (be->dpcm[stream].state != SND_SOC_DPCM_STATE_CLOSE)) in dpcm_be_dai_startup() [all …]
|
D | soc-ac97.c | 306 struct pinctrl_state *state; in snd_soc_ac97_parse_pinctl() local 317 state = pinctrl_lookup_state(p, "ac97-reset"); in snd_soc_ac97_parse_pinctl() 318 if (IS_ERR(state)) { in snd_soc_ac97_parse_pinctl() 320 return PTR_ERR(state); in snd_soc_ac97_parse_pinctl() 322 cfg->pstate_reset = state; in snd_soc_ac97_parse_pinctl() 324 state = pinctrl_lookup_state(p, "ac97-warm-reset"); in snd_soc_ac97_parse_pinctl() 325 if (IS_ERR(state)) { in snd_soc_ac97_parse_pinctl() 327 return PTR_ERR(state); in snd_soc_ac97_parse_pinctl() 329 cfg->pstate_warm_reset = state; in snd_soc_ac97_parse_pinctl() 331 state = pinctrl_lookup_state(p, "ac97-running"); in snd_soc_ac97_parse_pinctl() [all …]
|
/sound/firewire/ |
D | fcp.c | 202 enum fcp_state state; member 241 t.state = STATE_PENDING; in fcp_avc_transaction() 260 wait_event_timeout(t.wait, t.state != STATE_PENDING, in fcp_avc_transaction() 263 if (t.state == STATE_DEFERRED) { in fcp_avc_transaction() 271 t.state = STATE_PENDING; in fcp_avc_transaction() 273 } else if (t.state == STATE_COMPLETE) { in fcp_avc_transaction() 276 } else if (t.state == STATE_BUS_RESET) { in fcp_avc_transaction() 308 (t->state == STATE_PENDING || in fcp_bus_reset() 309 t->state == STATE_DEFERRED)) { in fcp_bus_reset() 310 t->state = STATE_BUS_RESET; in fcp_bus_reset() [all …]
|
/sound/core/ |
D | pcm_native.c | 541 static void snd_pcm_set_state(struct snd_pcm_substream *substream, int state) in snd_pcm_set_state() argument 544 if (substream->runtime->status->state != SNDRV_PCM_STATE_DISCONNECTED) in snd_pcm_set_state() 545 substream->runtime->status->state = state; in snd_pcm_set_state() 635 switch (runtime->status->state) { in snd_pcm_hw_params() 762 switch (runtime->status->state) { in snd_pcm_hw_free() 790 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_sw_params() 883 status->state = runtime->status->state; in snd_pcm_status() 885 if (status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_status() 956 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_channel_info() 1000 int (*pre_action)(struct snd_pcm_substream *substream, int state); [all …]
|
D | compress_offload.c | 128 runtime->state = SNDRV_PCM_STATE_OPEN; in snd_compr_open() 150 switch (runtime->state) { in snd_compr_free() 191 stream->runtime->state == SNDRV_PCM_STATE_SETUP && in snd_compr_calc_avail() 235 switch (stream->runtime->state) { in snd_compr_ioctl_avail() 295 switch (stream->runtime->state) { in snd_compr_write() 322 if (stream->runtime->state == SNDRV_PCM_STATE_SETUP) { in snd_compr_write() 323 stream->runtime->state = SNDRV_PCM_STATE_PREPARED; in snd_compr_write() 350 switch (stream->runtime->state) { in snd_compr_read() 409 switch (stream->runtime->state) { in snd_compr_poll() 423 switch (stream->runtime->state) { in snd_compr_poll() [all …]
|
D | pcm_compat.c | 172 s32 state; member 212 if (put_user(status.state, &src->state) || in snd_pcm_status_user_compat() 234 s32 state; member 276 if (put_user(status.state, &src->state) || in snd_pcm_status_user_x32() 360 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_ioctl_xferi_compat() 406 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_ioctl_xfern_compat() 441 s32 state; member 505 sstatus.state = status->state; in snd_pcm_ioctl_sync_ptr_compat() 511 if (put_user(sstatus.state, &src->s.status.state) || in snd_pcm_ioctl_sync_ptr_compat() 527 s32 state; member [all …]
|
D | device.c | 43 dev->state = SNDRV_DEV_BUILD; in snd_device_new() 61 if (dev->state == SNDRV_DEV_REGISTERED) { in __snd_device_disconnect() 65 dev->state = SNDRV_DEV_DISCONNECTED; in __snd_device_disconnect() 147 if (dev->state == SNDRV_DEV_BUILD) { in __snd_device_register() 153 dev->state = SNDRV_DEV_REGISTERED; in __snd_device_register()
|
/sound/firewire/digi00x/ |
D | amdtp-dot.c | 45 struct dot_state state; member 101 static void dot_encode_step(struct dot_state *state, __be32 *const buffer) in dot_encode_step() argument 106 state->off = 0; in dot_encode_step() 107 state->idx = data[MAGIC_DOT_BYTE] ^ state->carry; in dot_encode_step() 109 data[MAGIC_DOT_BYTE] ^= state->carry; in dot_encode_step() 110 state->carry = dot_scrt(state->idx, ++(state->off)); in dot_encode_step() 168 dot_encode_step(&p->state, &buffer[c]); in write_pcm_s32() 418 p->state.carry = 0x00; in amdtp_dot_reset() 419 p->state.idx = 0x00; in amdtp_dot_reset() 420 p->state.off = 0; in amdtp_dot_reset()
|
/sound/synth/emux/ |
D | emux_synth.c | 92 if (STATE_IS_PLAYING(vp->state)) in snd_emux_note_on() 109 vp->state = SNDRV_EMUX_ST_STANDBY; in snd_emux_note_on() 111 vp->state = SNDRV_EMUX_ST_OFF; in snd_emux_note_on() 113 vp->state = SNDRV_EMUX_ST_STANDBY; in snd_emux_note_on() 120 if (vp->state == SNDRV_EMUX_ST_STANDBY && in snd_emux_note_on() 123 vp->state = SNDRV_EMUX_ST_ON; in snd_emux_note_on() 164 if (STATE_IS_PLAYING(vp->state) && in snd_emux_note_off() 166 vp->state = SNDRV_EMUX_ST_RELEASED; in snd_emux_note_off() 173 vp->state = SNDRV_EMUX_ST_PENDING; in snd_emux_note_off() 201 if (vp->state == SNDRV_EMUX_ST_PENDING) { in snd_emux_timer_callback() [all …]
|
/sound/soc/codecs/ |
D | wm0010.c | 105 enum wm0010_state state; member 141 static const char *wm0010_state_to_str(enum wm0010_state state) in wm0010_state_to_str() argument 151 if (state < 0 || state >= ARRAY_SIZE(state_to_str)) in wm0010_state_to_str() 153 return state_to_str[state]; in wm0010_state_to_str() 161 enum wm0010_state state; in wm0010_halt() local 165 state = wm0010->state; in wm0010_halt() 168 switch (state) { in wm0010_halt() 187 wm0010->state = WM0010_POWER_OFF; in wm0010_halt() 202 enum wm0010_state state; in wm0010_mark_boot_failure() local 206 state = wm0010->state; in wm0010_mark_boot_failure() [all …]
|
/sound/drivers/opl3/ |
D | opl3_midi.c | 116 printk(KERN_CONT "%c", *(str + opl3->voices[i].state + 1)); in debug_alloc() 158 if (vp->state == SNDRV_OPL3_ST_NOT_AVAIL) in opl3_get_voice() 174 if (vp->state) in opl3_get_voice() 180 if (vp2->state == SNDRV_OPL3_ST_ON_2OP) { in opl3_get_voice() 191 else if (vp->state) in opl3_get_voice() 195 if (vp->state) in opl3_get_voice() 234 if (vp->state > 0 && vp->note_off_check) { in snd_opl3_timer_func() 394 if (vp->state > 0) { in snd_opl3_note_on() 401 if (vp->state > 0) { in snd_opl3_note_on() 566 vp->state = SNDRV_OPL3_ST_ON_4OP; in snd_opl3_note_on() [all …]
|
/sound/firewire/fireworks/ |
D | fireworks_transaction.c | 58 enum transaction_queue_state state; member 82 t.state = STATE_PENDING; in snd_efw_transaction_run() 95 wait_event_timeout(t.wait, t.state != STATE_PENDING, in snd_efw_transaction_run() 98 if (t.state == STATE_COMPLETE) { in snd_efw_transaction_run() 101 } else if (t.state == STATE_BUS_RESET) { in snd_efw_transaction_run() 214 if ((t->state == STATE_PENDING) && (t->seqnum == seqnum)) { in handle_resp_for_kernel() 215 t->state = STATE_COMPLETE; in handle_resp_for_kernel() 296 (t->state == STATE_PENDING)) { in snd_efw_transaction_bus_reset() 297 t->state = STATE_BUS_RESET; in snd_efw_transaction_bus_reset()
|
/sound/soc/sti/ |
D | uniperif_reader.c | 54 if (reader->state == UNIPERIF_STATE_STOPPED) { in uni_reader_irq_handler() 195 if (reader->state != UNIPERIF_STATE_STOPPED) { in uni_reader_prepare() 197 reader->state); in uni_reader_prepare() 300 if (reader->state != UNIPERIF_STATE_STOPPED) { in uni_reader_start() 313 reader->state = UNIPERIF_STATE_STARTED; in uni_reader_start() 320 if (reader->state == UNIPERIF_STATE_STOPPED) { in uni_reader_stop() 332 reader->state = UNIPERIF_STATE_STOPPED; in uni_reader_stop() 392 if (reader->state != UNIPERIF_STATE_STOPPED) { in uni_reader_shutdown() 416 reader->state = UNIPERIF_STATE_STOPPED; in uni_reader_init()
|
/sound/xen/ |
D | xen_snd_front_evtchnl.c | 28 if (unlikely(channel->state != EVTCHNL_STATE_CONNECTED)) in evtchnl_interrupt_req() 97 if (unlikely(channel->state != EVTCHNL_STATE_CONNECTED)) in evtchnl_interrupt_evt() 160 channel->state = EVTCHNL_STATE_DISCONNECTED; in evtchnl_free() 213 channel->state = EVTCHNL_STATE_DISCONNECTED; in evtchnl_alloc() 468 enum xen_snd_front_evtchnl_state state; in xen_snd_front_evtchnl_pair_set_connected() local 471 state = EVTCHNL_STATE_CONNECTED; in xen_snd_front_evtchnl_pair_set_connected() 473 state = EVTCHNL_STATE_DISCONNECTED; in xen_snd_front_evtchnl_pair_set_connected() 476 evt_pair->req.state = state; in xen_snd_front_evtchnl_pair_set_connected() 480 evt_pair->evt.state = state; in xen_snd_front_evtchnl_pair_set_connected()
|
D | xen_snd_front.c | 41 if (unlikely(evtchnl->state != EVTCHNL_STATE_CONNECTED)) in be_stream_do_io() 245 xenbus_strstate(xb_dev->state)); in sndback_changed() 273 if (xb_dev->state != XenbusStateInitialised) in sndback_changed() 294 if (xb_dev->state == XenbusStateClosed) in sndback_changed() 342 unsigned int state; in xen_drv_remove() local 344 state = xenbus_read_unsigned(front_info->xb_dev->otherend, in xen_drv_remove() 347 xenbus_strstate(state)); in xen_drv_remove()
|
/sound/soc/mediatek/common/ |
D | mtk-btcvsd.c | 86 enum bt_sco_state state; member 207 int state) in mtk_btcvsd_snd_set_state() argument 211 bt_stream->stream, state, in mtk_btcvsd_snd_set_state() 212 bt->tx->state, bt->rx->state, bt->irq_disabled); in mtk_btcvsd_snd_set_state() 214 bt_stream->state = state; in mtk_btcvsd_snd_set_state() 216 if (bt->tx->state == BT_SCO_STATE_IDLE && in mtk_btcvsd_snd_set_state() 217 bt->rx->state == BT_SCO_STATE_IDLE) { in mtk_btcvsd_snd_set_state() 487 if (bt->rx->state != BT_SCO_STATE_RUNNING && in mtk_btcvsd_snd_irq_handler() 488 bt->rx->state != BT_SCO_STATE_ENDING && in mtk_btcvsd_snd_irq_handler() 489 bt->tx->state != BT_SCO_STATE_RUNNING && in mtk_btcvsd_snd_irq_handler() [all …]
|
/sound/soc/intel/skylake/ |
D | skl-messages.c | 290 cores->state = kcalloc(cores->count, sizeof(*cores->state), GFP_KERNEL); in skl_init_dsp() 291 if (!cores->state) { in skl_init_dsp() 308 kfree(cores->state); in skl_init_dsp() 325 kfree(skl->cores.state); in skl_free_dsp() 983 if (mconfig->pipe->state != SKL_PIPE_CREATED) { in skl_init_module() 985 mconfig->pipe->state, mconfig->pipe->ppl_id); in skl_init_module() 1192 enum skl_ipc_pipeline_state state) in skl_set_pipe_state() argument 1194 dev_dbg(skl->dev, "%s: pipe_state = %d\n", __func__, state); in skl_set_pipe_state() 1196 return skl_ipc_set_pipeline_state(&skl->ipc, pipe->ppl_id, state); in skl_set_pipe_state() 1219 pipe->state = SKL_PIPE_CREATED; in skl_create_pipeline() [all …]
|
D | skl-sst-dsp.c | 22 void skl_dsp_set_state_locked(struct sst_dsp *ctx, int state) in skl_dsp_set_state_locked() argument 25 ctx->sst_state = state; in skl_dsp_set_state_locked() 39 skl->cores.state[SKL_DSP_CORE0_ID] = SKL_DSP_RUNNING; in skl_dsp_init_core_state() 43 skl->cores.state[i] = SKL_DSP_RESET; in skl_dsp_init_core_state() 348 if (skl->cores.state[core_id] == SKL_DSP_RESET) { in skl_dsp_get_core() 358 core_id, skl->cores.state[core_id], in skl_dsp_get_core() 376 (skl->cores.state[core_id] != SKL_DSP_RESET)) { in skl_dsp_put_core() 386 core_id, skl->cores.state[core_id], in skl_dsp_put_core()
|
D | bxt-sst.c | 274 if (skl->cores.state[SKL_DSP_CORE0_ID] != SKL_DSP_RUNNING) in bxt_d0i3_target_state() 328 d0i3->state = target_state; in bxt_set_dsp_D0i3() 329 skl->cores.state[SKL_DSP_CORE0_ID] = SKL_DSP_RUNNING_D0I3; in bxt_set_dsp_D0i3() 361 if (skl->cores.state[SKL_DSP_CORE0_ID] != SKL_DSP_RUNNING_D0I3) in bxt_set_dsp_D0i0() 371 if (skl->d0i3.state == SKL_DSP_D0I3_STREAMING) in bxt_set_dsp_D0i0() 384 skl->cores.state[SKL_DSP_CORE0_ID] = SKL_DSP_RUNNING; in bxt_set_dsp_D0i0() 385 skl->d0i3.state = SKL_DSP_D0I3_NONE; in bxt_set_dsp_D0i0() 413 skl->cores.state[core_id] = SKL_DSP_RUNNING; in bxt_set_dsp_D0() 475 skl->cores.state[core_id] = SKL_DSP_RUNNING; in bxt_set_dsp_D0() 521 skl->cores.state[core_id] = SKL_DSP_RESET; in bxt_set_dsp_D3() [all …]
|