Home
last modified time | relevance | path

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

/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c73 static void ivtv_alsa_announce_pcm_data(struct snd_ivtv_card *itvsc, in ivtv_alsa_announce_pcm_data() argument
84 dprintk("ivtv alsa announce ptr=%p data=%p num_bytes=%zu\n", itvsc, in ivtv_alsa_announce_pcm_data()
87 substream = itvsc->capture_pcm_substream; in ivtv_alsa_announce_pcm_data()
116 oldptr = itvsc->hwptr_done_capture; in ivtv_alsa_announce_pcm_data()
130 itvsc->hwptr_done_capture += length; in ivtv_alsa_announce_pcm_data()
131 if (itvsc->hwptr_done_capture >= in ivtv_alsa_announce_pcm_data()
133 itvsc->hwptr_done_capture -= in ivtv_alsa_announce_pcm_data()
136 itvsc->capture_transfer_done += length; in ivtv_alsa_announce_pcm_data()
137 if (itvsc->capture_transfer_done >= in ivtv_alsa_announce_pcm_data()
139 itvsc->capture_transfer_done -= in ivtv_alsa_announce_pcm_data()
[all …]
Divtv-alsa-main.c81 static void snd_ivtv_card_free(struct snd_ivtv_card *itvsc) in snd_ivtv_card_free() argument
83 if (itvsc == NULL) in snd_ivtv_card_free()
86 if (itvsc->v4l2_dev != NULL) in snd_ivtv_card_free()
87 to_ivtv(itvsc->v4l2_dev)->alsa = NULL; in snd_ivtv_card_free()
91 kfree(itvsc); in snd_ivtv_card_free()
105 struct snd_ivtv_card **itvsc) in snd_ivtv_card_create() argument
107 *itvsc = kzalloc(sizeof(struct snd_ivtv_card), GFP_KERNEL); in snd_ivtv_card_create()
108 if (*itvsc == NULL) in snd_ivtv_card_create()
111 (*itvsc)->v4l2_dev = v4l2_dev; in snd_ivtv_card_create()
112 (*itvsc)->sc = sc; in snd_ivtv_card_create()
[all …]
Divtv-alsa-mixer.c87 struct snd_ivtv_card *itvsc = snd_kcontrol_chip(kctl); in snd_ivtv_mixer_tv_vol_get() local
88 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_mixer_tv_vol_get()
95 snd_ivtv_lock(itvsc); in snd_ivtv_mixer_tv_vol_get()
97 snd_ivtv_unlock(itvsc); in snd_ivtv_mixer_tv_vol_get()
107 struct snd_ivtv_card *itvsc = snd_kcontrol_chip(kctl); in snd_ivtv_mixer_tv_vol_put() local
108 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_mixer_tv_vol_put()
115 snd_ivtv_lock(itvsc); in snd_ivtv_mixer_tv_vol_put()
129 snd_ivtv_unlock(itvsc); in snd_ivtv_mixer_tv_vol_put()
161 int __init snd_ivtv_mixer_create(struct snd_ivtv_card *itvsc) in snd_ivtv_mixer_create() argument
163 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_mixer_create()
[all …]
Divtv-alsa.h40 static inline void snd_ivtv_lock(struct snd_ivtv_card *itvsc) in snd_ivtv_lock() argument
42 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_lock()
46 static inline void snd_ivtv_unlock(struct snd_ivtv_card *itvsc) in snd_ivtv_unlock() argument
48 struct ivtv *itv = to_ivtv(itvsc->v4l2_dev); in snd_ivtv_unlock()
Divtv-alsa-pcm.h23 int snd_ivtv_pcm_create(struct snd_ivtv_card *itvsc);
Divtv-alsa-mixer.h23 int __init snd_ivtv_mixer_create(struct snd_ivtv_card *itvsc);