Searched refs:uac2 (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/usb/gadget/function/
H A Df_uac2.c65 struct snd_uac2_chip *uac2; /* parent chip */ member in struct:uac2_rtd_params
130 struct snd_uac2_chip uac2; member in struct:audio_dev
142 return container_of(u, struct audio_dev, uac2); uac2_to_agdev()
181 struct snd_uac2_chip *uac2 = prm->uac2; agdev_iso_complete() local
210 req->length = uac2->p_pktsize; agdev_iso_complete()
211 uac2->p_residue += uac2->p_pktsize_residue; agdev_iso_complete()
218 if (uac2->p_residue / uac2->p_interval >= uac2->p_framesize) { agdev_iso_complete()
219 req->length += uac2->p_framesize; agdev_iso_complete()
220 uac2->p_residue -= uac2->p_framesize * agdev_iso_complete()
221 uac2->p_interval; agdev_iso_complete()
260 dev_err(&uac2->pdev.dev, "%d Error!\n", __LINE__); agdev_iso_complete()
271 struct snd_uac2_chip *uac2 = snd_pcm_substream_chip(substream); uac2_pcm_trigger() local
277 prm = &uac2->p_prm; uac2_pcm_trigger()
279 prm = &uac2->c_prm; uac2_pcm_trigger()
310 struct snd_uac2_chip *uac2 = snd_pcm_substream_chip(substream); uac2_pcm_pointer() local
314 prm = &uac2->p_prm; uac2_pcm_pointer()
316 prm = &uac2->c_prm; uac2_pcm_pointer()
324 struct snd_uac2_chip *uac2 = snd_pcm_substream_chip(substream); uac2_pcm_hw_params() local
329 prm = &uac2->p_prm; uac2_pcm_hw_params()
331 prm = &uac2->c_prm; uac2_pcm_hw_params()
346 struct snd_uac2_chip *uac2 = snd_pcm_substream_chip(substream); uac2_pcm_hw_free() local
350 prm = &uac2->p_prm; uac2_pcm_hw_free()
352 prm = &uac2->c_prm; uac2_pcm_hw_free()
363 struct snd_uac2_chip *uac2 = snd_pcm_substream_chip(substream); uac2_pcm_open() local
371 audio_dev = uac2_to_agdev(uac2); uac2_pcm_open()
379 uac2->p_residue = 0; uac2_pcm_open()
384 spin_lock_init(&uac2->p_prm.lock); uac2_pcm_open()
398 runtime->hw.period_bytes_min = 2 * uac2->p_prm.max_psize uac2_pcm_open()
401 spin_lock_init(&uac2->c_prm.lock); uac2_pcm_open()
415 runtime->hw.period_bytes_min = 2 * uac2->c_prm.max_psize uac2_pcm_open()
446 struct snd_uac2_chip *uac2 = pdev_to_uac2(pdev); snd_uac2_probe() local
454 audio_dev = uac2_to_agdev(uac2); snd_uac2_probe()
464 uac2->card = card; snd_uac2_probe()
470 err = snd_pcm_new(uac2->card, "UAC2 PCM", 0, snd_uac2_probe()
476 pcm->private_data = uac2; snd_uac2_probe()
478 uac2->pcm = pcm; snd_uac2_probe()
499 uac2->pcm = NULL; snd_uac2_probe()
500 uac2->card = NULL; snd_uac2_probe()
522 struct snd_uac2_chip *uac2 = &agdev->uac2; alsa_uac2_init() local
525 uac2->pdrv.probe = snd_uac2_probe; alsa_uac2_init()
526 uac2->pdrv.remove = snd_uac2_remove; alsa_uac2_init()
527 uac2->pdrv.driver.name = uac2_name; alsa_uac2_init()
529 uac2->pdev.id = 0; alsa_uac2_init()
530 uac2->pdev.name = uac2_name; alsa_uac2_init()
531 uac2->pdev.dev.release = snd_uac2_release; alsa_uac2_init()
534 err = platform_driver_register(&uac2->pdrv); alsa_uac2_init()
539 err = platform_device_register(&uac2->pdev); alsa_uac2_init()
541 platform_driver_unregister(&uac2->pdrv); alsa_uac2_init()
548 struct snd_uac2_chip *uac2 = &agdev->uac2; alsa_uac2_exit() local
550 platform_driver_unregister(&uac2->pdrv); alsa_uac2_exit()
551 platform_device_unregister(&uac2->pdev); alsa_uac2_exit()
957 struct snd_uac2_chip *uac2 = prm->uac2; free_ep() local
974 dev_err(&uac2->pdev.dev, free_ep()
1005 struct snd_uac2_chip *uac2 = &agdev->uac2; afunc_bind() local
1008 struct device *dev = &uac2->pdev.dev; afunc_bind()
1093 uac2->p_prm.uac2 = uac2; afunc_bind()
1094 uac2->c_prm.uac2 = uac2; afunc_bind()
1109 prm = &agdev->uac2.c_prm; afunc_bind()
1117 prm = &agdev->uac2.p_prm; afunc_bind()
1133 kfree(agdev->uac2.p_prm.rbuf); afunc_bind()
1134 kfree(agdev->uac2.c_prm.rbuf); afunc_bind()
1147 struct snd_uac2_chip *uac2 = &agdev->uac2; afunc_set_alt() local
1149 struct device *dev = &uac2->pdev.dev; afunc_set_alt()
1172 prm = &uac2->c_prm; afunc_set_alt()
1182 prm = &uac2->p_prm; afunc_set_alt()
1196 uac2->p_framesize = opts->p_ssize * afunc_set_alt()
1198 rate = opts->p_srate * uac2->p_framesize; afunc_set_alt()
1199 uac2->p_interval = factor / (1 << (ep_desc->bInterval - 1)); afunc_set_alt()
1200 uac2->p_pktsize = min_t(unsigned int, rate / uac2->p_interval, afunc_set_alt()
1203 if (uac2->p_pktsize < prm->max_psize) afunc_set_alt()
1204 uac2->p_pktsize_residue = rate % uac2->p_interval; afunc_set_alt()
1206 uac2->p_pktsize_residue = 0; afunc_set_alt()
1208 req_len = uac2->p_pktsize; afunc_set_alt()
1209 uac2->p_residue = 0; afunc_set_alt()
1250 struct snd_uac2_chip *uac2 = &agdev->uac2; afunc_get_alt() local
1259 dev_err(&uac2->pdev.dev, afunc_get_alt()
1270 struct snd_uac2_chip *uac2 = &agdev->uac2; afunc_disable() local
1272 free_ep(&uac2->p_prm, agdev->in_ep); afunc_disable()
1275 free_ep(&uac2->c_prm, agdev->out_ep); afunc_disable()
1284 struct snd_uac2_chip *uac2 = &agdev->uac2; in_rq_cur() local
1312 dev_err(&uac2->pdev.dev, in_rq_cur()
1325 struct snd_uac2_chip *uac2 = &agdev->uac2; in_rq_range() local
1355 dev_err(&uac2->pdev.dev, in_rq_range()
1391 struct snd_uac2_chip *uac2 = &agdev->uac2; setup_rq_inf() local
1396 dev_err(&uac2->pdev.dev, setup_rq_inf()
1414 struct snd_uac2_chip *uac2 = &agdev->uac2; afunc_setup() local
1426 dev_err(&uac2->pdev.dev, "%s:%d Error!\n", __func__, __LINE__); afunc_setup()
1433 dev_err(&uac2->pdev.dev, afunc_setup()
1580 prm = &agdev->uac2.p_prm; afunc_unbind()
1583 prm = &agdev->uac2.c_prm; afunc_unbind()
1619 DECLARE_USB_FUNCTION_INIT(uac2, afunc_alloc_inst, afunc_alloc);
/linux-4.1.27/drivers/usb/gadget/legacy/
H A Daudio.c229 fi_uac2 = usb_get_function_instance("uac2"); audio_bind()
/linux-4.1.27/sound/usb/
H A Dformat.c271 usb_audio_err(chip, "invalid uac2 rates\n"); parse_uac2_sample_rate_range()
H A Dmixer.c806 int type_uac2; /* data type for uac2 if different from uac1, else -1 */

Completed in 155 milliseconds