Home
last modified time | relevance | path

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

/linux-6.15/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.c797 struct snd_usx2y_substream *cap_subs, *playback_subs; in snd_usx2y_pcm_hw_free() local
803 cap_subs = subs->usx2y->subs[SNDRV_PCM_STREAM_CAPTURE]; in snd_usx2y_pcm_hw_free()
806 if (!cap_subs->pcm_substream || in snd_usx2y_pcm_hw_free()
807 !cap_subs->pcm_substream->runtime || in snd_usx2y_pcm_hw_free()
808 cap_subs->pcm_substream->runtime->state < SNDRV_PCM_STATE_PREPARED) { in snd_usx2y_pcm_hw_free()
809 atomic_set(&cap_subs->state, STATE_STOPPED); in snd_usx2y_pcm_hw_free()
810 usx2y_urbs_release(cap_subs); in snd_usx2y_pcm_hw_free()