Home
last modified time | relevance | path

Searched refs:ep (Results 1 – 22 of 22) sorted by relevance

/sound/usb/
Dendpoint.c100 usb_free_coherent(u->ep->chip->dev, u->buffer_size, in release_urb_ctx()
133 static inline bool ep_state_running(struct snd_usb_endpoint *ep) in ep_state_running() argument
135 return atomic_read(&ep->state) == EP_STATE_RUNNING; in ep_state_running()
138 static inline bool ep_state_update(struct snd_usb_endpoint *ep, int old, int new) in ep_state_update() argument
140 return atomic_try_cmpxchg(&ep->state, &old, new); in ep_state_update()
151 int snd_usb_endpoint_implicit_feedback_sink(struct snd_usb_endpoint *ep) in snd_usb_endpoint_implicit_feedback_sink() argument
153 return ep->implicit_fb_sync && usb_pipeout(ep->pipe); in snd_usb_endpoint_implicit_feedback_sink()
163 static int slave_next_packet_size(struct snd_usb_endpoint *ep, in slave_next_packet_size() argument
170 if (ep->fill_max) in slave_next_packet_size()
171 return ep->maxframesize; in slave_next_packet_size()
[all …]
Dmidi.c87 void (*output)(struct snd_usb_midi_out_endpoint *ep, struct urb *urb);
124 struct snd_usb_midi_out_endpoint *ep; member
134 struct snd_usb_midi_out_endpoint *ep; member
167 static void snd_usbmidi_do_output(struct snd_usb_midi_out_endpoint *ep);
210 static void snd_usbmidi_input_data(struct snd_usb_midi_in_endpoint *ep, in snd_usbmidi_input_data() argument
213 struct usbmidi_in_port *port = &ep->ports[portidx]; in snd_usbmidi_input_data()
216 dev_dbg(&ep->umidi->dev->dev, "unexpected port %d!\n", portidx); in snd_usbmidi_input_data()
219 if (!test_bit(port->substream->number, &ep->umidi->input_triggered)) in snd_usbmidi_input_data()
241 struct snd_usb_midi_in_endpoint *ep = urb->context; in snd_usbmidi_in_urb_complete() local
245 ep->umidi->usb_protocol_ops->input(ep, urb->transfer_buffer, in snd_usbmidi_in_urb_complete()
[all …]
Dendpoint.h20 struct snd_usb_endpoint *ep);
22 struct snd_usb_endpoint *ep);
24 struct snd_usb_endpoint *ep);
28 struct snd_usb_endpoint *ep,
35 void snd_usb_endpoint_set_callback(struct snd_usb_endpoint *ep,
43 int snd_usb_endpoint_start(struct snd_usb_endpoint *ep);
44 void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep, bool keep_pending);
45 void snd_usb_endpoint_sync_pending_stop(struct snd_usb_endpoint *ep);
46 void snd_usb_endpoint_suspend(struct snd_usb_endpoint *ep);
47 int snd_usb_endpoint_activate(struct snd_usb_endpoint *ep);
[all …]
Dpcm.c190 static int init_pitch_v1(struct snd_usb_audio *chip, int ep) in init_pitch_v1() argument
199 UAC_EP_CS_ATTR_PITCH_CONTROL << 8, ep, in init_pitch_v1()
204 static int init_pitch_v2(struct snd_usb_audio *chip, int ep) in init_pitch_v2() argument
320 unsigned int ep, attr, sync_attr; in snd_usb_audioformat_set_sync_ep() local
375 ep = get_endpoint(alts, 1)->bEndpointAddress; in snd_usb_audioformat_set_sync_ep()
378 ((is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress | USB_DIR_IN)) || in snd_usb_audioformat_set_sync_ep()
379 (!is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress & ~USB_DIR_IN)))) { in snd_usb_audioformat_set_sync_ep()
383 is_playback, ep, get_endpoint(alts, 0)->bSynchAddress); in snd_usb_audioformat_set_sync_ep()
389 fmt->sync_ep = ep; in snd_usb_audioformat_set_sync_ep()
943 const struct snd_usb_endpoint *ep; in get_sync_ep_from_substream() local
[all …]
Dhelper.h25 #define get_endpoint(alt,ep) (&(alt)->endpoint[ep].desc) argument
26 #define get_ep_desc(ep) (&(ep)->desc) argument
Dimplicit.c38 #define IMPLICIT_FB_FIXED_DEV(vend, prod, ep, ifnum) \ argument
39 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_FIXED, .ep_num = (ep),\
41 #define IMPLICIT_FB_BOTH_DEV(vend, prod, ep, ifnum) \ argument
42 { .id = USB_ID(vend, prod), .type = IMPLICIT_FB_BOTH, .ep_num = (ep),\
84 int ep, int ep_idx, int ifnum, in add_implicit_fb_sync_ep() argument
96 fmt->sync_ep = ep; in add_implicit_fb_sync_ep()
104 (ep & USB_DIR_IN) ? "playback" : "capture", in add_implicit_fb_sync_ep()
Dquirks.c1799 void snd_usb_endpoint_start_quirk(struct snd_usb_endpoint *ep) in snd_usb_endpoint_start_quirk() argument
1805 if (USB_ID_VENDOR(ep->chip->usb_id) == 0x23ba && in snd_usb_endpoint_start_quirk()
1806 ep->type == SND_USB_ENDPOINT_TYPE_SYNC) in snd_usb_endpoint_start_quirk()
1807 ep->skip_packets = 4; in snd_usb_endpoint_start_quirk()
1816 if ((ep->chip->usb_id == USB_ID(0x0763, 0x2030) || in snd_usb_endpoint_start_quirk()
1817 ep->chip->usb_id == USB_ID(0x0763, 0x2031)) && in snd_usb_endpoint_start_quirk()
1818 ep->type == SND_USB_ENDPOINT_TYPE_DATA) in snd_usb_endpoint_start_quirk()
1819 ep->skip_packets = 16; in snd_usb_endpoint_start_quirk()
1822 if ((ep->chip->usb_id == USB_ID(0x0644, 0x8038) || /* TEAC UD-H01 */ in snd_usb_endpoint_start_quirk()
1823 ep->chip->usb_id == USB_ID(0x1852, 0x5034)) && /* T+A Dac8 */ in snd_usb_endpoint_start_quirk()
[all …]
Dcard.c1007 struct snd_usb_endpoint *ep; in usb_audio_disconnect() local
1021 list_for_each_entry(ep, &chip->ep_list, list) { in usb_audio_disconnect()
1022 snd_usb_endpoint_release(ep); in usb_audio_disconnect()
1125 struct snd_usb_endpoint *ep; in usb_audio_suspend() local
1135 list_for_each_entry(ep, &chip->ep_list, list) in usb_audio_suspend()
1136 snd_usb_endpoint_suspend(ep); in usb_audio_suspend()
Dquirks.h34 void snd_usb_endpoint_start_quirk(struct snd_usb_endpoint *ep);
Dcard.h57 struct snd_usb_endpoint *ep; member
Dmixer.c3529 struct usb_endpoint_descriptor *ep; in snd_usb_mixer_status_create() local
3537 ep = get_endpoint(mixer->hostif, 0); in snd_usb_mixer_status_create()
3538 if (!usb_endpoint_dir_in(ep) || !usb_endpoint_xfer_int(ep)) in snd_usb_mixer_status_create()
3541 epnum = usb_endpoint_num(ep); in snd_usb_mixer_status_create()
3542 buffer_length = le16_to_cpu(ep->wMaxPacketSize); in snd_usb_mixer_status_create()
3554 snd_usb_mixer_interrupt, mixer, ep->bInterval); in snd_usb_mixer_status_create()
Dmixer_quirks.c1642 unsigned int ep; in snd_microii_spdif_default_get() local
1665 ep = get_endpoint(alts, 0)->bEndpointAddress; in snd_microii_spdif_default_get()
1672 ep, in snd_microii_spdif_default_get()
/sound/soc/generic/
Daudio-graph-card2.c315 struct device_node *ep = NULL; in graph_get_next_multi_ep() local
340 ep = port_to_endpoint(*port); in graph_get_next_multi_ep()
341 rep = of_graph_get_remote_endpoint(ep); in graph_get_next_multi_ep()
344 of_node_put(ep); in graph_get_next_multi_ep()
356 static int graph_get_dai_id(struct device_node *ep) in graph_get_dai_id() argument
366 ret = snd_soc_get_dai_id(ep); in graph_get_dai_id()
371 ret = of_graph_parse_endpoint(ep, &info); in graph_get_dai_id()
379 if (of_get_property(ep, "reg", NULL)) in graph_get_dai_id()
382 node = of_get_parent(ep); in graph_get_dai_id()
388 node = of_graph_get_port_parent(ep); in graph_get_dai_id()
[all …]
Daudio-graph-card.c58 static int graph_get_dai_id(struct device_node *ep) in graph_get_dai_id() argument
68 ret = snd_soc_get_dai_id(ep); in graph_get_dai_id()
73 ret = of_graph_parse_endpoint(ep, &info); in graph_get_dai_id()
81 if (of_get_property(ep, "reg", NULL)) in graph_get_dai_id()
84 node = of_get_parent(ep); in graph_get_dai_id()
90 node = of_graph_get_port_parent(ep); in graph_get_dai_id()
99 if (endpoint == ep) in graph_get_dai_id()
123 static int asoc_simple_parse_dai(struct device_node *ep, in asoc_simple_parse_dai() argument
131 if (!ep) in asoc_simple_parse_dai()
134 node = of_graph_get_port_parent(ep); in asoc_simple_parse_dai()
[all …]
Dtest-component.c533 struct device_node *ep; in test_driver_probe() local
603 for_each_endpoint_of_node(node, ep) { in test_driver_probe()
/sound/usb/line6/
Ddriver.c499 struct usb_host_endpoint *ep = NULL; in line6_get_usb_properties() local
509 ep = usbdev->ep_in[usb_pipeendpoint(pipe)]; in line6_get_usb_properties()
513 if (ep) { in line6_get_usb_properties()
514 line6->interval = ep->desc.bInterval; in line6_get_usb_properties()
515 line6->max_packet_size = le16_to_cpu(ep->desc.wMaxPacketSize); in line6_get_usb_properties()
/sound/usb/6fire/
Dpcm.c551 struct sfire_chip *chip, bool in, int ep, in usb6fire_pcm_init_urb() argument
560 urb->instance.pipe = in ? usb_rcvisocpipe(chip->dev, ep) in usb6fire_pcm_init_urb()
561 : usb_sndisocpipe(chip->dev, ep); in usb6fire_pcm_init_urb()
/sound/usb/usx2y/
Dus122l.c280 unsigned int ep = 0x81; in us122l_set_sample_rate() local
289 UAC_EP_CS_ATTR_SAMPLE_RATE << 8, ep, data, 3, in us122l_set_sample_rate()
293 dev->devnum, rate, ep); in us122l_set_sample_rate()
/sound/usb/hiface/
Dpcm.c508 unsigned int ep, in hiface_pcm_init_urb() argument
519 usb_sndbulkpipe(chip->dev, ep), (void *)urb->buffer, in hiface_pcm_init_urb()
/sound/soc/
Dsoc-dapm.c2743 unsigned int ep; in dapm_update_widget_flags() local
2750 ep = SND_SOC_DAPM_EP_SOURCE; in dapm_update_widget_flags()
2756 ep = 0; in dapm_update_widget_flags()
2765 ep = SND_SOC_DAPM_EP_SINK; in dapm_update_widget_flags()
2771 ep = 0; in dapm_update_widget_flags()
2777 ep = 0; in dapm_update_widget_flags()
2780 ep |= SND_SOC_DAPM_DIR_TO_EP(dir); in dapm_update_widget_flags()
2787 w->is_ep = ep; in dapm_update_widget_flags()
4417 unsigned int ep; in soc_dapm_dai_stream_event() local
4422 ep = SND_SOC_DAPM_EP_SOURCE; in soc_dapm_dai_stream_event()
[all …]
Dsoc-component.c357 struct device_node *ep) in snd_soc_component_of_xlate_dai_id() argument
362 ret = component->driver->of_xlate_dai_id(component, ep); in snd_soc_component_of_xlate_dai_id()
Dsoc-core.c3201 int snd_soc_get_dai_id(struct device_node *ep) in snd_soc_get_dai_id() argument
3207 dlc.of_node = of_graph_get_port_parent(ep); in snd_soc_get_dai_id()
3219 ret = snd_soc_component_of_xlate_dai_id(component, ep); in snd_soc_get_dai_id()