Searched refs:cxsc (Results 1 – 6 of 6) sorted by relevance
73 void cx18_alsa_announce_pcm_data(struct snd_cx18_card *cxsc, u8 *pcm_data, in cx18_alsa_announce_pcm_data() argument83 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 …]
76 static void snd_cx18_card_free(struct snd_cx18_card *cxsc) in snd_cx18_card_free() argument78 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() argument102 *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 …]
87 struct snd_cx18_card *cxsc = snd_kcontrol_chip(kctl); in snd_cx18_mixer_tv_vol_get() local88 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() local108 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() argument163 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_mixer_create()[all …]
39 static inline void snd_cx18_lock(struct snd_cx18_card *cxsc) in snd_cx18_lock() argument41 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() argument47 struct cx18 *cx = to_cx18(cxsc->v4l2_dev); in snd_cx18_unlock()
23 int __init snd_cx18_mixer_create(struct snd_cx18_card *cxsc);
23 int snd_cx18_pcm_create(struct snd_cx18_card *cxsc);