Home
last modified time | relevance | path

Searched refs:cap_subs (Results 1 – 2 of 2) sorted by relevance

/linux/sound/usb/usx2y/
H A Dusx2yhwdeppcm.c364 struct snd_usx2y_substream *cap_subs; in snd_usx2y_usbpcm_hw_free() local
373 cap_subs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_usbpcm_hw_free()
376 if (!cap_subs->pcm_substream || in snd_usx2y_usbpcm_hw_free()
377 !cap_subs->pcm_substream->runtime || in snd_usx2y_usbpcm_hw_free()
378 cap_subs->pcm_substream->runtime->state < SNDRV_PCM_STATE_PREPARED) { in snd_usx2y_usbpcm_hw_free()
379 atomic_set(&cap_subs->state, STATE_STOPPED); in snd_usx2y_usbpcm_hw_free()
382 usx2y_usbpcm_urbs_release(cap_subs); in snd_usx2y_usbpcm_hw_free()
H A Dusbusx2yaudio.c791 struct snd_usx2y_substream *cap_subs, *playback_subs; in snd_usx2y_pcm_hw_free() local
797 cap_subs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_pcm_hw_free()
800 if (!cap_subs->pcm_substream || in snd_usx2y_pcm_hw_free()
801 !cap_subs->pcm_substream->runtime || in snd_usx2y_pcm_hw_free()
802 cap_subs->pcm_substream->runtime->state < SNDRV_PCM_STATE_PREPARED) { in snd_usx2y_pcm_hw_free()
803 atomic_set(&cap_subs->state, STATE_STOPPED); in snd_usx2y_pcm_hw_free()
804 usx2y_urbs_release(cap_subs); in snd_usx2y_pcm_hw_free()