Lines Matching refs:audio_dev
75 struct g_audio *audio_dev; member
285 struct g_audio *audio_dev = uac->audio_dev; in u_audio_iso_fback_complete() local
306 u_audio_set_fback_frequency(audio_dev->gadget->speed, audio_dev->out_ep, in u_audio_iso_fback_complete()
318 struct g_audio *audio_dev; in uac_pcm_trigger() local
322 audio_dev = uac->audio_dev; in uac_pcm_trigger()
323 params = &audio_dev->params; in uac_pcm_trigger()
389 struct g_audio *audio_dev; in uac_pcm_open() local
395 audio_dev = uac->audio_dev; in uac_pcm_open()
396 params = &audio_dev->params; in uac_pcm_open()
443 struct g_audio *audio_dev; in free_ep() local
450 audio_dev = uac->audio_dev; in free_ep()
451 params = &audio_dev->params; in free_ep()
508 int u_audio_set_capture_srate(struct g_audio *audio_dev, int srate) in u_audio_set_capture_srate() argument
510 struct uac_params *params = &audio_dev->params; in u_audio_set_capture_srate()
511 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_set_capture_srate()
516 dev_dbg(&audio_dev->gadget->dev, "%s: srate %d\n", __func__, srate); in u_audio_set_capture_srate()
533 int u_audio_get_capture_srate(struct g_audio *audio_dev, u32 *val) in u_audio_get_capture_srate() argument
535 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_get_capture_srate()
547 int u_audio_set_playback_srate(struct g_audio *audio_dev, int srate) in u_audio_set_playback_srate() argument
549 struct uac_params *params = &audio_dev->params; in u_audio_set_playback_srate()
550 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_set_playback_srate()
555 dev_dbg(&audio_dev->gadget->dev, "%s: srate %d\n", __func__, srate); in u_audio_set_playback_srate()
572 int u_audio_get_playback_srate(struct g_audio *audio_dev, u32 *val) in u_audio_get_playback_srate() argument
574 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_get_playback_srate()
586 int u_audio_start_capture(struct g_audio *audio_dev) in u_audio_start_capture() argument
588 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_start_capture()
589 struct usb_gadget *gadget = audio_dev->gadget; in u_audio_start_capture()
594 struct uac_params *params = &audio_dev->params; in u_audio_start_capture()
599 ep = audio_dev->out_ep; in u_audio_start_capture()
600 ret = config_ep_by_speed(gadget, &audio_dev->func, ep); in u_audio_start_capture()
636 ep_fback = audio_dev->in_ep_fback; in u_audio_start_capture()
641 ret = config_ep_by_speed(gadget, &audio_dev->func, ep_fback); in u_audio_start_capture()
675 u_audio_set_fback_frequency(audio_dev->gadget->speed, ep, in u_audio_start_capture()
686 void u_audio_stop_capture(struct g_audio *audio_dev) in u_audio_stop_capture() argument
688 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_stop_capture()
691 if (audio_dev->in_ep_fback) in u_audio_stop_capture()
692 free_ep_fback(&uac->c_prm, audio_dev->in_ep_fback); in u_audio_stop_capture()
693 free_ep(&uac->c_prm, audio_dev->out_ep); in u_audio_stop_capture()
697 int u_audio_start_playback(struct g_audio *audio_dev) in u_audio_start_playback() argument
699 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_start_playback()
700 struct usb_gadget *gadget = audio_dev->gadget; in u_audio_start_playback()
705 struct uac_params *params = &audio_dev->params; in u_audio_start_playback()
713 ep = audio_dev->in_ep; in u_audio_start_playback()
714 ret = config_ep_by_speed(gadget, &audio_dev->func, ep); in u_audio_start_playback()
776 void u_audio_stop_playback(struct g_audio *audio_dev) in u_audio_stop_playback() argument
778 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_stop_playback()
781 free_ep(&uac->p_prm, audio_dev->in_ep); in u_audio_stop_playback()
785 void u_audio_suspend(struct g_audio *audio_dev) in u_audio_suspend() argument
787 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_suspend()
794 int u_audio_get_volume(struct g_audio *audio_dev, int playback, s16 *val) in u_audio_get_volume() argument
796 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_get_volume()
813 int u_audio_set_volume(struct g_audio *audio_dev, int playback, s16 val) in u_audio_set_volume() argument
815 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_set_volume()
841 int u_audio_get_mute(struct g_audio *audio_dev, int playback, int *val) in u_audio_get_mute() argument
843 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_get_mute()
860 int u_audio_set_mute(struct g_audio *audio_dev, int playback, int val) in u_audio_set_mute() argument
862 struct snd_uac_chip *uac = audio_dev->uac; in u_audio_set_mute()
896 struct g_audio *audio_dev = uac->audio_dev; in u_audio_pitch_info() local
897 struct uac_params *params = &audio_dev->params; in u_audio_pitch_info()
926 struct g_audio *audio_dev = uac->audio_dev; in u_audio_pitch_put() local
927 struct uac_params *params = &audio_dev->params; in u_audio_pitch_put()
980 struct g_audio *audio_dev = uac->audio_dev; in u_audio_mute_put() local
994 if (change && audio_dev->notify) in u_audio_mute_put()
995 audio_dev->notify(audio_dev, prm->fu_id, UAC_FU_MUTE); in u_audio_mute_put()
1056 struct g_audio *audio_dev = uac->audio_dev; in u_audio_volume_put() local
1073 if (change && audio_dev->notify) in u_audio_volume_put()
1074 audio_dev->notify(audio_dev, prm->fu_id, UAC_FU_VOLUME); in u_audio_volume_put()
1111 struct g_audio *audio_dev = uac->audio_dev; in u_audio_rate_info() local
1112 struct uac_params *params = &audio_dev->params; in u_audio_rate_info()
1198 uac->audio_dev = g_audio; in g_audio_setup()