Home
last modified time | relevance | path

Searched refs:snd_usb_audio (Results 1 – 25 of 39) sorted by relevance

12

/linux/sound/usb/
H A Dmidi2.h8 int snd_usb_midi_v2_create(struct snd_usb_audio *chip,
12 void snd_usb_midi_v2_suspend_all(struct snd_usb_audio *chip);
13 void snd_usb_midi_v2_resume_all(struct snd_usb_audio *chip);
14 void snd_usb_midi_v2_disconnect_all(struct snd_usb_audio *chip);
15 void snd_usb_midi_v2_free_all(struct snd_usb_audio *chip);
18 static inline int snd_usb_midi_v2_create(struct snd_usb_audio *chip, in snd_usb_midi_v2_create()
27 static inline void snd_usb_midi_v2_suspend_all(struct snd_usb_audio *chip) {} in snd_usb_midi_v2_suspend_all()
28 static inline void snd_usb_midi_v2_resume_all(struct snd_usb_audio *chip) {} in snd_usb_midi_v2_resume_all()
29 static inline void snd_usb_midi_v2_disconnect_all(struct snd_usb_audio *chip) {} in snd_usb_midi_v2_disconnect_all()
30 static inline void snd_usb_midi_v2_free_all(struct snd_usb_audio *chip) {} in snd_usb_midi_v2_free_all()
H A Dendpoint.h8 struct snd_usb_endpoint *snd_usb_get_endpoint(struct snd_usb_audio *chip,
11 int snd_usb_add_endpoint(struct snd_usb_audio *chip, int ep_num, int type);
14 snd_usb_endpoint_open(struct snd_usb_audio *chip,
19 void snd_usb_endpoint_close(struct snd_usb_audio *chip,
21 int snd_usb_endpoint_set_params(struct snd_usb_audio *chip,
23 int snd_usb_endpoint_prepare(struct snd_usb_audio *chip,
25 int snd_usb_endpoint_get_clock_rate(struct snd_usb_audio *chip, int clock);
27 bool snd_usb_endpoint_compatible(struct snd_usb_audio *chip,
32 void snd_usb_endpoint_set_sync(struct snd_usb_audio *chip,
48 void snd_usb_endpoint_free_all(struct snd_usb_audio *chip);
H A Dquirks.h9 int snd_usb_create_quirk(struct snd_usb_audio *chip,
14 int snd_usb_apply_interface_quirk(struct snd_usb_audio *chip,
31 int snd_usb_is_big_endian_format(struct snd_usb_audio *chip,
40 int snd_usb_select_mode_quirk(struct snd_usb_audio *chip,
43 u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
47 void snd_usb_audioformat_attributes_quirk(struct snd_usb_audio *chip,
51 void snd_usb_init_quirk_flags(struct snd_usb_audio *chip);
H A Dimplicit.c82 static int add_implicit_fb_sync_ep(struct snd_usb_audio *chip, in add_implicit_fb_sync_ep()
110 static int add_generic_uac2_implicit_fb(struct snd_usb_audio *chip, in add_generic_uac2_implicit_fb()
146 static int add_roland_implicit_fb(struct snd_usb_audio *chip, in add_roland_implicit_fb()
176 static int add_roland_capture_quirk(struct snd_usb_audio *chip, in add_roland_capture_quirk()
204 static bool is_pioneer_implicit_fb(struct snd_usb_audio *chip, in is_pioneer_implicit_fb()
235 static int __add_generic_implicit_fb(struct snd_usb_audio *chip, in __add_generic_implicit_fb()
259 static int add_generic_implicit_fb(struct snd_usb_audio *chip, in add_generic_implicit_fb()
276 find_implicit_fb_entry(struct snd_usb_audio *chip, in find_implicit_fb_entry()
292 static int audioformat_implicit_fb_quirk(struct snd_usb_audio *chip, in audioformat_implicit_fb_quirk()
360 static int audioformat_capture_quirk(struct snd_usb_audio *chip, in audioformat_capture_quirk()
[all …]
H A Dmedia.h53 int snd_media_device_create(struct snd_usb_audio *chip,
55 void snd_media_device_delete(struct snd_usb_audio *chip);
62 static inline int snd_media_device_create(struct snd_usb_audio *chip, in snd_media_device_create()
65 static inline void snd_media_device_delete(struct snd_usb_audio *chip) { } in snd_media_device_delete()
H A Dhelper.h14 unsigned char snd_usb_parse_datainterval(struct snd_usb_audio *chip,
18 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting);
20 int snd_usb_add_ctrl_interface_link(struct snd_usb_audio *chip, int ifnum,
23 struct usb_host_interface *snd_usb_find_ctrl_interface(struct snd_usb_audio *chip,
H A Dclock.h5 int snd_usb_init_sample_rate(struct snd_usb_audio *chip,
8 int snd_usb_clock_find_source(struct snd_usb_audio *chip,
11 int snd_usb_set_sample_rate_v2v3(struct snd_usb_audio *chip,
H A Dcard.c119 static struct snd_usb_audio *usb_chip[SNDRV_CARDS];
140 static int snd_usb_create_stream(struct snd_usb_audio *chip, int ctrlif, int interface) in snd_usb_create_stream()
223 static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) in snd_usb_create_streams()
497 struct snd_usb_audio *chip = card->private_data; in snd_usb_audio_free()
508 struct snd_usb_audio *chip, in usb_audio_make_shortname()
539 struct snd_usb_audio *chip, in usb_audio_make_longname()
612 struct snd_usb_audio **rchip) in snd_usb_audio_create()
615 struct snd_usb_audio *chip; in snd_usb_audio_create()
706 static int check_delayed_register_option(struct snd_usb_audio *chip) in check_delayed_register_option()
724 static void find_last_interface(struct snd_usb_audio *chip) in find_last_interface()
[all …]
H A Dpower.h18 int snd_usb_power_domain_set(struct snd_usb_audio *chip,
25 int snd_usb_autoresume(struct snd_usb_audio *chip);
26 void snd_usb_autosuspend(struct snd_usb_audio *chip);
H A Dclock.c101 static obj *name(struct snd_usb_audio *chip, int id, \ in uac_clock_selector_get_val()
121 static int uac_clock_selector_get_val(struct snd_usb_audio *chip, in uac_clock_selector_set_val()
142 static int uac_clock_selector_set_val(struct snd_usb_audio *chip, in uac_clock_selector_set_val()
179 static bool uac_clock_source_is_valid_quirk(struct snd_usb_audio *chip, in uac_clock_source_is_valid_quirk()
243 static bool uac_clock_source_is_valid(struct snd_usb_audio *chip, in uac_clock_source_is_valid()
288 static int __uac_clock_find_source(struct snd_usb_audio *chip, in __uac_clock_find_source()
448 int snd_usb_clock_find_source(struct snd_usb_audio *chip, in set_sample_rate_v1()
464 static int set_sample_rate_v1(struct snd_usb_audio *chip, in set_sample_rate_v1()
522 static int get_sample_rate_v2v3(struct snd_usb_audio *chip, int iface,
554 int snd_usb_set_sample_rate_v2v3(struct snd_usb_audio *chi in snd_usb_set_sample_rate_v2v3()
[all...]
H A Dformat.c31 static u64 parse_audio_format_i_type(struct snd_usb_audio *chip, in parse_audio_format_i_type()
202 static int parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audioformat *fp, in parse_audio_format_rates_v1()
307 static bool focusrite_valid_sample_rate(struct snd_usb_audio *chip, in focusrite_valid_sample_rate()
354 static int parse_uac2_sample_rate_range(struct snd_usb_audio *chip, in parse_uac2_sample_rate_range()
415 static int line6_parse_audio_format_rates_quirk(struct snd_usb_audio *chip, in line6_parse_audio_format_rates_quirk()
437 static bool check_valid_altsetting_v2v3(struct snd_usb_audio *chip, int iface, in check_valid_altsetting_v2v3()
470 static int validate_sample_rate_table_v2v3(struct snd_usb_audio *chip, in validate_sample_rate_table_v2v3()
546 static int parse_audio_format_rates_v2v3(struct snd_usb_audio *chip, in parse_audio_format_rates_v2v3()
651 static int parse_audio_format_i(struct snd_usb_audio *chip, in parse_audio_format_i()
734 static int parse_audio_format_ii(struct snd_usb_audio *chi in parse_audio_format_ii()
[all...]
H A Dquirks.c33 static int create_composite_quirk(struct snd_usb_audio *chip, in create_composite_quirk()
70 static int ignore_interface_quirk(struct snd_usb_audio *chip, in ignore_interface_quirk()
79 static int create_any_midi_quirk(struct snd_usb_audio *chip, in create_any_midi_quirk()
90 static int create_standard_audio_quirk(struct snd_usb_audio *chip, in create_standard_audio_quirk()
115 static int add_audio_stream_from_fixed_fmt(struct snd_usb_audio *chip, in add_audio_stream_from_fixed_fmt()
149 static int create_fixed_stream_quirk(struct snd_usb_audio *chip, in create_fixed_stream_quirk()
216 static int create_auto_pcm_quirk(struct snd_usb_audio *chip, in create_auto_pcm_quirk()
258 static int create_yamaha_midi_quirk(struct snd_usb_audio *chip, in create_yamaha_midi_quirk()
290 static int create_roland_midi_quirk(struct snd_usb_audio *chip, in create_roland_midi_quirk()
314 static int create_std_midi_quirk(struct snd_usb_audio *chi
[all...]
H A Dhelper.c106 unsigned char snd_usb_parse_datainterval(struct snd_usb_audio *chip, in snd_usb_parse_datainterval()
124 snd_usb_get_host_interface(struct snd_usb_audio *chip, int ifnum, int altsetting) in snd_usb_get_host_interface()
134 int snd_usb_add_ctrl_interface_link(struct snd_usb_audio *chip, int ifnum, in snd_usb_add_ctrl_interface_link()
155 struct usb_host_interface *snd_usb_find_ctrl_interface(struct snd_usb_audio *chip, in snd_usb_find_ctrl_interface()
H A Dproc.c35 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbbus_read()
42 struct snd_usb_audio *chip = entry->private_data; in proc_audio_usbid_read()
49 void snd_usb_audio_create_proc(struct snd_usb_audio *chip) in snd_usb_audio_create_proc()
192 static void proc_dump_substream_status(struct snd_usb_audio *chip, in proc_dump_substream_status()
213 struct snd_usb_audio *chip = stream->chip; in proc_pcm_format_read()
H A Dstream.h5 int snd_usb_parse_audio_interface(struct snd_usb_audio *chip,
8 int snd_usb_add_audio_stream(struct snd_usb_audio *chip,
H A Dimplicit.h5 int snd_usb_parse_implicit_fb_quirk(struct snd_usb_audio *chip,
9 snd_usb_find_implicit_fb_sync_format(struct snd_usb_audio *chip,
H A Dformat.h5 int snd_usb_parse_audio_format(struct snd_usb_audio *chip,
10 int snd_usb_parse_audio_format_v3(struct snd_usb_audio *chip,
H A Dpcm.h11 int snd_usb_init_pitch(struct snd_usb_audio *chip,
15 int snd_usb_audioformat_set_sync_ep(struct snd_usb_audio *chip,
H A Dendpoint.c276 static inline bool has_tx_length_quirk(struct snd_usb_audio *chip) in has_tx_length_quirk()
614 iface_ref_find(struct snd_usb_audio *chip, int iface) in iface_ref_find()
632 clock_ref_find(struct snd_usb_audio *chip, int clock) in clock_ref_find()
654 snd_usb_get_endpoint(struct snd_usb_audio *chip, int ep_num) in snd_usb_get_endpoint()
687 int snd_usb_add_endpoint(struct snd_usb_audio *chip, int ep_num, int type) in snd_usb_add_endpoint()
722 static void endpoint_set_syncinterval(struct snd_usb_audio *chip, in endpoint_set_syncinterval()
766 bool snd_usb_endpoint_compatible(struct snd_usb_audio *chip, in snd_usb_endpoint_compatible()
793 snd_usb_endpoint_open(struct snd_usb_audio *chip, in snd_usb_endpoint_open()
893 void snd_usb_endpoint_set_sync(struct snd_usb_audio *chip,
923 static int endpoint_set_interface(struct snd_usb_audio *chi in endpoint_set_interface()
[all...]
H A Dusbaudio.h33 struct snd_usb_audio { struct
139 int snd_usb_lock_shutdown(struct snd_usb_audio *chip);
140 void snd_usb_unlock_shutdown(struct snd_usb_audio *chip);
H A Dmedia.c164 static int snd_media_mixer_init(struct snd_usb_audio *chip) in snd_media_mixer_init()
227 static void snd_media_mixer_delete(struct snd_usb_audio *chip) in snd_media_mixer_delete()
254 int snd_media_device_create(struct snd_usb_audio *chip, in snd_media_device_create()
310 void snd_media_device_delete(struct snd_usb_audio *chip) in snd_media_device_delete()
H A Dmixer_quirks.c303 struct snd_usb_audio *chip = mixer->chip; in snd_audigy2nx_led_update()
472 struct snd_usb_audio *chip = mixer->chip; in snd_emu0204_ch_switch_update()
543 struct snd_usb_audio *chip = mixer->chip; in snd_xonar_u1_switch_update()
601 static int snd_mbox1_is_spdif_synced(struct snd_usb_audio *chip) in snd_mbox1_is_spdif_synced()
621 static int snd_mbox1_set_clk_source(struct snd_usb_audio *chip, int rate_or_zero) in snd_mbox1_set_clk_source()
639 static int snd_mbox1_is_spdif_input(struct snd_usb_audio *chip) in snd_mbox1_is_spdif_input()
659 static int snd_mbox1_set_input_source(struct snd_usb_audio *chip, int is_spdif) in snd_mbox1_set_input_source()
682 struct snd_usb_audio *chip = list->mixer->chip; in snd_mbox1_clk_switch_get()
703 struct snd_usb_audio *chip = mixer->chip; in snd_mbox1_clk_switch_update()
774 struct snd_usb_audio *chi in snd_mbox1_src_switch_update()
[all...]
H A Dpcm.c163 struct snd_usb_audio *chip; in snd_usb_pcm_has_fixed_rate()
188 static int init_pitch_v1(struct snd_usb_audio *chip, int ep) in init_pitch_v1()
202 static int init_pitch_v2(struct snd_usb_audio *chip, int ep) in init_pitch_v2()
219 int snd_usb_init_pitch(struct snd_usb_audio *chip, in snd_usb_init_pitch()
312 int snd_usb_audioformat_set_sync_ep(struct snd_usb_audio *chip, in snd_usb_audioformat_set_sync_ep()
449 static void close_endpoints(struct snd_usb_audio *chip, in close_endpoints()
478 struct snd_usb_audio *chip = subs->stream->chip; in snd_usb_hw_params()
591 struct snd_usb_audio *chip = subs->stream->chip; in snd_usb_hw_free()
617 struct snd_usb_audio *chip = subs->stream->chip; in lowlatency_playback_available()
641 struct snd_usb_audio *chip = subs->stream->chip; in snd_usb_pcm_prepare()
[all …]
H A Dmixer.h17 struct snd_usb_audio *chip;
100 int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif);
H A Dstream.c479 static int __snd_usb_add_audio_stream(struct snd_usb_audio *chip, in __snd_usb_add_audio_stream()
561 int snd_usb_add_audio_stream(struct snd_usb_audio *chip, in snd_usb_add_audio_stream()
568 static int snd_usb_add_audio_stream_v3(struct snd_usb_audio *chip, in snd_usb_add_audio_stream_v3()
576 static int parse_uac_endpoint_attributes(struct snd_usb_audio *chip, in parse_uac_endpoint_attributes()
678 audio_format_alloc_init(struct snd_usb_audio *chip, in audio_format_alloc_init()
708 snd_usb_get_audioformat_uac12(struct snd_usb_audio *chip, in snd_usb_get_audioformat_uac12()
864 snd_usb_get_audioformat_uac3(struct snd_usb_audio *chip, in snd_usb_get_audioformat_uac3()
1094 static int __snd_usb_parse_audio_interface(struct snd_usb_audio *chip, in __snd_usb_parse_audio_interface()
1253 int snd_usb_parse_audio_interface(struct snd_usb_audio *chip, int iface_no) in snd_usb_parse_audio_interface()

12