Home
last modified time | relevance | path

Searched refs:cxsc (Results 1 – 6 of 6) sorted by relevance

/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c73 void cx18_alsa_announce_pcm_data(struct snd_cx18_card *cxsc, u8 *pcm_data, in cx18_alsa_announce_pcm_data() argument
83 dprintk("cx18 alsa announce ptr=%p data=%p num_bytes=%zu\n", cxsc, in cx18_alsa_announce_pcm_data()
86 substream = cxsc->capture_pcm_substream; in cx18_alsa_announce_pcm_data()
115 oldptr = cxsc->hwptr_done_capture; in cx18_alsa_announce_pcm_data()
129 cxsc->hwptr_done_capture += length; in cx18_alsa_announce_pcm_data()
130 if (cxsc->hwptr_done_capture >= in cx18_alsa_announce_pcm_data()
132 cxsc->hwptr_done_capture -= in cx18_alsa_announce_pcm_data()
135 cxsc->capture_transfer_done += length; in cx18_alsa_announce_pcm_data()
136 if (cxsc->capture_transfer_done >= in cx18_alsa_announce_pcm_data()
138 cxsc->capture_transfer_done -= in cx18_alsa_announce_pcm_data()
[all …]
Dcx18-alsa-main.c76 static void snd_cx18_card_free(struct snd_cx18_card *cxsc) in snd_cx18_card_free() argument
78 if (cxsc == NULL) in snd_cx18_card_free()
81 if (cxsc->v4l2_dev != NULL) in snd_cx18_card_free()
82 to_cx18(cxsc->v4l2_dev)->alsa = NULL; in snd_cx18_card_free()
86 kfree(cxsc); in snd_cx18_card_free()
100 struct snd_cx18_card **cxsc) in snd_cx18_card_create() argument
102 *cxsc = kzalloc(sizeof(struct snd_cx18_card), GFP_KERNEL); in snd_cx18_card_create()
103 if (*cxsc == NULL) in snd_cx18_card_create()
106 (*cxsc)->v4l2_dev = v4l2_dev; in snd_cx18_card_create()
107 (*cxsc)->sc = sc; in snd_cx18_card_create()
[all …]
Dcx18-alsa-mixer.c87 struct snd_cx18_card *cxsc = snd_kcontrol_chip(kctl); in snd_cx18_mixer_tv_vol_get() local
88 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_mixer_tv_vol_get()
95 snd_cx18_lock(cxsc); in snd_cx18_mixer_tv_vol_get()
97 snd_cx18_unlock(cxsc); in snd_cx18_mixer_tv_vol_get()
107 struct snd_cx18_card *cxsc = snd_kcontrol_chip(kctl); in snd_cx18_mixer_tv_vol_put() local
108 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_mixer_tv_vol_put()
115 snd_cx18_lock(cxsc); in snd_cx18_mixer_tv_vol_put()
129 snd_cx18_unlock(cxsc); in snd_cx18_mixer_tv_vol_put()
161 int __init snd_cx18_mixer_create(struct snd_cx18_card *cxsc) in snd_cx18_mixer_create() argument
163 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_mixer_create()
[all …]
Dcx18-alsa.h39 static inline void snd_cx18_lock(struct snd_cx18_card *cxsc) in snd_cx18_lock() argument
41 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_lock()
45 static inline void snd_cx18_unlock(struct snd_cx18_card *cxsc) in snd_cx18_unlock() argument
47 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_unlock()
Dcx18-alsa-mixer.h23 int __init snd_cx18_mixer_create(struct snd_cx18_card *cxsc);
Dcx18-alsa-pcm.h23 int snd_cx18_pcm_create(struct snd_cx18_card *cxsc);