Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 129) sorted by relevance

123456

/sound/usb/
Dusbmixer.c195 static int check_mapped_name(struct mixer_build *state, int unitid, int control, char *buf, int buf… in check_mapped_name() argument
199 if (! state->map) in check_mapped_name()
202 for (p = state->map; p->id; p++) { in check_mapped_name()
213 static int check_ignored_ctl(struct mixer_build *state, int unitid, int control) in check_ignored_ctl() argument
217 if (! state->map) in check_ignored_ctl()
219 for (p = state->map; p->id; p++) { in check_ignored_ctl()
230 static int check_mapped_selector_name(struct mixer_build *state, int unitid, in check_mapped_selector_name() argument
235 if (! state->selector_map) in check_mapped_selector_name()
237 for (p = state->selector_map; p->id; p++) { in check_mapped_selector_name()
247 static void *find_audio_control_unit(struct mixer_build *state, unsigned char unit) in find_audio_control_unit() argument
[all …]
Dusbmidi.c131 uint8_t state; member
476 port->state = STATE_SYSEX_1; in snd_usbmidi_transmit_byte()
481 port->state = STATE_1PARAM; in snd_usbmidi_transmit_byte()
485 port->state = STATE_2PARAM_1; in snd_usbmidi_transmit_byte()
489 port->state = STATE_UNKNOWN; in snd_usbmidi_transmit_byte()
493 port->state = STATE_UNKNOWN; in snd_usbmidi_transmit_byte()
496 switch (port->state) { in snd_usbmidi_transmit_byte()
507 port->state = STATE_UNKNOWN; in snd_usbmidi_transmit_byte()
513 port->state = STATE_1PARAM; in snd_usbmidi_transmit_byte()
515 port->state = STATE_2PARAM_1; in snd_usbmidi_transmit_byte()
[all …]
/sound/usb/usx2y/
Dusx2yhwdeppcm.c136 if (atomic_read(&subs->state) != state_RUNNING) in usX2Y_hwdep_urb_play_prepare()
176 int err, state; in usX2Y_usbpcm_usbframe_complete() local
179 state = atomic_read(&playbacksubs->state); in usX2Y_usbpcm_usbframe_complete()
181 if (state == state_RUNNING) in usX2Y_usbpcm_usbframe_complete()
183 else if (state >= state_PRERUNNING) in usX2Y_usbpcm_usbframe_complete()
184 atomic_inc(&playbacksubs->state); in usX2Y_usbpcm_usbframe_complete()
186 switch (state) { in usX2Y_usbpcm_usbframe_complete()
189 atomic_inc(&playbacksubs->state); in usX2Y_usbpcm_usbframe_complete()
193 atomic_inc(&playbacksubs->state); in usX2Y_usbpcm_usbframe_complete()
206 state = atomic_read(&capsubs->state); in usX2Y_usbpcm_usbframe_complete()
[all …]
Dusbusx2yaudio.c149 if (atomic_read(&subs->state) >= state_PRERUNNING) in usX2Y_urb_play_prepare()
214 int err, state; in usX2Y_usbframe_complete() local
217 state = atomic_read(&playbacksubs->state); in usX2Y_usbframe_complete()
219 if (state == state_RUNNING) in usX2Y_usbframe_complete()
221 else if (state >= state_PRERUNNING) in usX2Y_usbframe_complete()
222 atomic_inc(&playbacksubs->state); in usX2Y_usbframe_complete()
224 switch (state) { in usX2Y_usbframe_complete()
227 atomic_inc(&playbacksubs->state); in usX2Y_usbframe_complete()
231 atomic_inc(&playbacksubs->state); in usX2Y_usbframe_complete()
244 state = atomic_read(&capsubs->state); in usX2Y_usbframe_complete()
[all …]
Dusb_stream.c234 sk->s->state = usb_stream_stopped; in usb_stream_new()
503 s->state = usb_stream_xrun; in stream_idle()
525 if (s->state >= usb_stream_sync1) { in stream_start()
593 if (s->state == usb_stream_sync1 && s->insize_done > 360000) { in stream_start()
595 s->state = usb_stream_ready; in stream_start()
618 if (s->state >= usb_stream_sync0) { in i_capture_start()
640 if (!empty && s->state < usb_stream_sync1) in i_capture_start()
641 ++s->state; in i_capture_start()
661 if (s->state != usb_stream_stopped) in usb_stream_start()
738 while (s->state != usb_stream_ready && wait_ms > 0) { in usb_stream_start()
[all …]
/sound/core/
Dpcm_native.c376 switch (runtime->status->state) { in snd_pcm_hw_params()
444 runtime->status->state = SNDRV_PCM_STATE_SETUP; in snd_pcm_hw_params()
456 runtime->status->state = SNDRV_PCM_STATE_OPEN; in snd_pcm_hw_params()
496 switch (runtime->status->state) { in snd_pcm_hw_free()
509 runtime->status->state = SNDRV_PCM_STATE_OPEN; in snd_pcm_hw_free()
524 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_sw_params()
581 status->state = runtime->status->state; in snd_pcm_status()
583 if (status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_status()
599 if (runtime->status->state == SNDRV_PCM_STATE_RUNNING || in snd_pcm_status()
600 runtime->status->state == SNDRV_PCM_STATE_DRAINING) in snd_pcm_status()
[all …]
Ddevice.c57 dev->state = SNDRV_DEV_BUILD; in snd_device_new()
89 if (dev->state == SNDRV_DEV_REGISTERED && in snd_device_free()
130 if (dev->state == SNDRV_DEV_REGISTERED && in snd_device_disconnect()
134 dev->state = SNDRV_DEV_DISCONNECTED; in snd_device_disconnect()
166 if (dev->state == SNDRV_DEV_BUILD && dev->ops->dev_register) { in snd_device_register()
169 dev->state = SNDRV_DEV_REGISTERED; in snd_device_register()
193 if (dev->state == SNDRV_DEV_BUILD && dev->ops->dev_register) { in snd_device_register_all()
196 dev->state = SNDRV_DEV_REGISTERED; in snd_device_register_all()
Dpcm_compat.c182 s32 state; member
206 if (put_user(status.state, &src->state) || in snd_pcm_status_user_compat()
285 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_ioctl_xferi_compat()
364 s32 state; member
427 sstatus.state = status->state; in snd_pcm_ioctl_sync_ptr_compat()
432 if (put_user(sstatus.state, &src->s.status.state) || in snd_pcm_ioctl_sync_ptr_compat()
/sound/synth/emux/
Demux_synth.c105 if (STATE_IS_PLAYING(vp->state)) in snd_emux_note_on()
122 vp->state = SNDRV_EMUX_ST_STANDBY; in snd_emux_note_on()
124 vp->state = SNDRV_EMUX_ST_OFF; in snd_emux_note_on()
126 vp->state = SNDRV_EMUX_ST_STANDBY; in snd_emux_note_on()
133 if (vp->state == SNDRV_EMUX_ST_STANDBY && in snd_emux_note_on()
136 vp->state = SNDRV_EMUX_ST_ON; in snd_emux_note_on()
177 if (STATE_IS_PLAYING(vp->state) && in snd_emux_note_off()
179 vp->state = SNDRV_EMUX_ST_RELEASED; in snd_emux_note_off()
186 vp->state = SNDRV_EMUX_ST_PENDING; in snd_emux_note_off()
215 if (vp->state == SNDRV_EMUX_ST_PENDING) { in snd_emux_timer_callback()
[all …]
/sound/drivers/opl3/
Dopl3_midi.c130 printk("%c", *(str + opl3->voices[i].state + 1)); in debug_alloc()
172 if (vp->state == SNDRV_OPL3_ST_NOT_AVAIL) in opl3_get_voice()
188 if (vp->state) in opl3_get_voice()
194 if (vp2->state == SNDRV_OPL3_ST_ON_2OP) { in opl3_get_voice()
205 else if (vp->state) in opl3_get_voice()
209 if (vp->state) in opl3_get_voice()
248 if (vp->state > 0 && vp->note_off_check) { in snd_opl3_timer_func()
401 if (vp->state > 0) { in snd_opl3_note_on()
408 if (vp->state > 0) { in snd_opl3_note_on()
573 vp->state = SNDRV_OPL3_ST_ON_4OP; in snd_opl3_note_on()
[all …]
Dopl3_seq.c67 opl3->voices[idx].state = SNDRV_OPL3_ST_OFF; in snd_opl3_synth_setup()
113 opl3->voices[6].state = opl3->voices[7].state = in snd_opl3_synth_use()
114 opl3->voices[8].state = SNDRV_OPL3_ST_NOT_AVAIL; in snd_opl3_synth_use()
/sound/i2c/other/
Dak4xxx-adda.c52 static void ak4524_reset(struct snd_akm4xxx *ak, int state) in ak4524_reset() argument
62 snd_akm4xxx_write(ak, chip, 0x01, state ? 0x00 : 0x03); in ak4524_reset()
63 if (state) in ak4524_reset()
73 static void ak435X_reset(struct snd_akm4xxx *ak, int state, in ak435X_reset() argument
78 if (state) { in ak435X_reset()
90 static void ak4381_reset(struct snd_akm4xxx *ak, int state) in ak4381_reset() argument
96 snd_akm4xxx_write(ak, chip, 0x00, state ? 0x0c : 0x0f); in ak4381_reset()
97 if (state) in ak4381_reset()
111 void snd_akm4xxx_reset(struct snd_akm4xxx *ak, int state) in snd_akm4xxx_reset() argument
116 ak4524_reset(ak, state); in snd_akm4xxx_reset()
[all …]
/sound/pci/emu10k1/
Demu10k1_callback.c111 vp->state = SNDRV_EMUX_ST_OFF; in snd_emu10k1_synth_get_voice()
236 int state, val; in lookup_voices() local
239 state = vp->state; in lookup_voices()
240 if (state == SNDRV_EMUX_ST_OFF) { in lookup_voices()
248 else if (state == SNDRV_EMUX_ST_RELEASED || in lookup_voices()
249 state == SNDRV_EMUX_ST_PENDING) { in lookup_voices()
257 else if (state == SNDRV_EMUX_ST_STANDBY) in lookup_voices()
259 else if (state & SNDRV_EMUX_ST_ON) in lookup_voices()
/sound/isa/sb/
Demu8000_callback.c185 int state, val; in get_voice() local
188 state = vp->state; in get_voice()
190 if (state == SNDRV_EMUX_ST_OFF) in get_voice()
192 else if (state == SNDRV_EMUX_ST_RELEASED || in get_voice()
193 state == SNDRV_EMUX_ST_PENDING) { in get_voice()
199 else if (state & SNDRV_EMUX_ST_ON) in get_voice()
205 if (state != SNDRV_EMUX_ST_OFF && in get_voice()
Dsb16.c463 static int snd_sb16_suspend(struct snd_card *card, pm_message_t state) in snd_sb16_suspend() argument
571 pm_message_t state) in snd_sb16_isa_suspend() argument
573 return snd_sb16_suspend(dev_get_drvdata(dev), state); in snd_sb16_isa_suspend()
637 static int snd_sb16_pnp_suspend(struct pnp_card_link *pcard, pm_message_t state) in snd_sb16_pnp_suspend() argument
639 return snd_sb16_suspend(pnp_get_card_drvdata(pcard), state); in snd_sb16_pnp_suspend()
/sound/oss/dmasound/
Ddmasound_core.c1183 } state; variable
1225 char *buffer = state.buf; in state_open()
1228 if (state.busy) in state_open()
1233 state.ptr = 0; in state_open()
1234 state.busy = 1; in state_open()
1293 state.len = len; in state_open()
1300 state.busy = 0; in state_release()
1309 int n = state.len - state.ptr; in state_read()
1314 if (copy_to_user(buf, &state.buf[state.ptr], n)) in state_read()
1316 state.ptr += n; in state_read()
[all …]
/sound/
Dac97_bus.c31 static int ac97_bus_suspend(struct device *dev, pm_message_t state) in ac97_bus_suspend() argument
36 ret = dev->driver->suspend(dev, state); in ac97_bus_suspend()
/sound/oss/
Dpas2_pcm.c345 static void pas_audio_trigger(int dev, int state) in pas_audio_trigger() argument
350 state &= open_mode; in pas_audio_trigger()
352 if (state & PCM_ENABLE_OUTPUT) in pas_audio_trigger()
354 else if (state & PCM_ENABLE_INPUT) in pas_audio_trigger()
/sound/pci/pcxhr/
Dpcxhr_core.c901 int state, i, err; in pcxhr_set_pipe_state() local
911 state = pcxhr_pipes_running(mgr); in pcxhr_set_pipe_state()
913 start ? "START" : "STOP", audio_mask, state); in pcxhr_set_pipe_state()
916 audio_mask &= ~state; in pcxhr_set_pipe_state()
917 state = audio_mask; in pcxhr_set_pipe_state()
919 err = pcxhr_prepair_pipe_start(mgr, state, &state); in pcxhr_set_pipe_state()
922 if (state == 0) in pcxhr_set_pipe_state()
927 audio_mask &= state; /* stop only pipes that are started */ in pcxhr_set_pipe_state()
938 state = pcxhr_pipes_running(mgr); in pcxhr_set_pipe_state()
940 if ((state & audio_mask) == (start ? audio_mask : 0)) in pcxhr_set_pipe_state()
/sound/pci/cs5535audio/
Dcs5535audio_pm.c59 int snd_cs5535audio_suspend(struct pci_dev *pci, pm_message_t state) in snd_cs5535audio_suspend() argument
81 pci_set_power_state(pci, pci_choose_state(pci, state)); in snd_cs5535audio_suspend()
/sound/aoa/soundbus/
Dsoundbus.h134 int (*suspend)(struct codec_info_item *cii, pm_message_t state);
191 int (*suspend)(struct soundbus_dev* dev, pm_message_t state);
/sound/pci/vx222/
Dvx222.c261 static int snd_vx222_suspend(struct pci_dev *pci, pm_message_t state) in snd_vx222_suspend() argument
267 err = snd_vx_suspend(&vx->core, state); in snd_vx222_suspend()
270 pci_set_power_state(pci, pci_choose_state(pci, state)); in snd_vx222_suspend()
/sound/soc/s3c24xx/
Ds3c24xx-pcm.c66 int state; member
133 if (prtd->state & ST_RUNNING) { in s3c24xx_audio_buffdone()
270 prtd->state |= ST_RUNNING; in s3c24xx_pcm_trigger()
278 prtd->state &= ~ST_RUNNING; in s3c24xx_pcm_trigger()
/sound/core/oss/
Dpcm_oss.c1159 if (runtime->status->state == SNDRV_PCM_STATE_XRUN || in snd_pcm_oss_write3()
1160 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { in snd_pcm_oss_write3()
1162 if (runtime->status->state == SNDRV_PCM_STATE_XRUN) in snd_pcm_oss_write3()
1183 if (runtime->status->state == SNDRV_PCM_STATE_PREPARED) in snd_pcm_oss_write3()
1195 if (runtime->status->state == SNDRV_PCM_STATE_XRUN || in snd_pcm_oss_read3()
1196 runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) { in snd_pcm_oss_read3()
1198 if (runtime->status->state == SNDRV_PCM_STATE_XRUN) in snd_pcm_oss_read3()
1206 } else if (runtime->status->state == SNDRV_PCM_STATE_SETUP) { in snd_pcm_oss_read3()
1223 if (runtime->status->state == SNDRV_PCM_STATE_DRAINING) { in snd_pcm_oss_read3()
1241 if (runtime->status->state == SNDRV_PCM_STATE_XRUN || in snd_pcm_oss_writev3()
[all …]
/sound/pci/riptide/
Driptide.c484 unsigned char state; member
1127 (data = runtime->private_data) && data->state != ST_STOP) { in riptide_handleirq()
1137 && (data->state == ST_PLAY)) { in riptide_handleirq()
1138 data->state = ST_STOP; in riptide_handleirq()
1149 if (data->state != ST_STOP) { in riptide_handleirq()
1173 static int riptide_suspend(struct pci_dev *pci, pm_message_t state) in riptide_suspend() argument
1184 pci_set_power_state(pci, pci_choose_state(pci, state)); in riptide_suspend()
1432 if (!(data->state & ST_PLAY)) { in snd_riptide_trigger()
1435 data->state = ST_PLAY; in snd_riptide_trigger()
1449 data->state = ST_STOP; in snd_riptide_trigger()
[all …]

123456