Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef __USBAUDIO_ENDPOINT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __USBAUDIO_ENDPOINT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #define SND_USB_ENDPOINT_TYPE_DATA     0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #define SND_USB_ENDPOINT_TYPE_SYNC     1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) struct snd_usb_endpoint *snd_usb_add_endpoint(struct snd_usb_audio *chip,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 					      struct usb_host_interface *alts,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 					      int ep_num, int direction, int type);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 				snd_pcm_format_t pcm_format,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 				unsigned int channels,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 				unsigned int period_bytes,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 				unsigned int period_frames,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 				unsigned int buffer_periods,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 				unsigned int rate,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 				struct audioformat *fmt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 				struct snd_usb_endpoint *sync_ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) int  snd_usb_endpoint_start(struct snd_usb_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) void snd_usb_endpoint_sync_pending_stop(struct snd_usb_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) int  snd_usb_endpoint_activate(struct snd_usb_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) void snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) void snd_usb_endpoint_release(struct snd_usb_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) void snd_usb_endpoint_free(struct snd_usb_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) int snd_usb_endpoint_implicit_feedback_sink(struct snd_usb_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) int snd_usb_endpoint_slave_next_packet_size(struct snd_usb_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) int snd_usb_endpoint_next_packet_size(struct snd_usb_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) void snd_usb_handle_sync_urb(struct snd_usb_endpoint *ep,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 			     struct snd_usb_endpoint *sender,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 			     const struct urb *urb);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #endif /* __USBAUDIO_ENDPOINT_H */