Lines Matching defs:hdspm

956 	struct hdspm *hdspm;  member
982 struct hdspm { struct
999 struct hdspm_midi midi[4]; argument
1000 struct tasklet_struct midi_tasklet;
1002 size_t period_bytes;
1003 unsigned char ss_in_channels;
1004 unsigned char ds_in_channels;
1005 unsigned char qs_in_channels;
1006 unsigned char ss_out_channels;
1007 unsigned char ds_out_channels;
1008 unsigned char qs_out_channels;
1010 unsigned char max_channels_in;
1011 unsigned char max_channels_out;
1013 signed char *channel_map_in;
1014 signed char *channel_map_out;
1016 signed char *channel_map_in_ss, *channel_map_in_ds, *channel_map_in_qs;
1017 signed char *channel_map_out_ss, *channel_map_out_ds, *channel_map_out_qs;
1019 char **port_names_in;
1020 char **port_names_out;
1022 char **port_names_in_ss, **port_names_in_ds, **port_names_in_qs;
1023 char **port_names_out_ss, **port_names_out_ds, **port_names_out_qs;
1025 unsigned char *playback_buffer; /* suitably aligned address */
1026 unsigned char *capture_buffer; /* suitably aligned address */
1028 pid_t capture_pid; /* process id which uses capture */
1029 pid_t playback_pid; /* process id which uses capture */
1030 int running; /* running status */
1055 struct hdspm_mixer *mixer; argument
1057 struct hdspm_tco *tco; /* NULL if no TCO detected */ argument
1066 struct hdspm_peak_rms peak_rms; argument
1086 struct hdspm *hdspm); argument
1122 static bool hdspm_is_raydat_or_aio(struct hdspm *hdspm) in hdspm_is_raydat_or_aio()
1131 static inline void hdspm_write(struct hdspm * hdspm, unsigned int reg, in hdspm_write()
1137 static inline unsigned int hdspm_read(struct hdspm * hdspm, unsigned int reg) in hdspm_read()
1146 static inline int hdspm_read_in_gain(struct hdspm * hdspm, unsigned int chan, in hdspm_read_in_gain()
1155 static inline int hdspm_read_pb_gain(struct hdspm * hdspm, unsigned int chan, in hdspm_read_pb_gain()
1163 static int hdspm_write_in_gain(struct hdspm *hdspm, unsigned int chan, in hdspm_write_in_gain()
1176 static int hdspm_write_pb_gain(struct hdspm *hdspm, unsigned int chan, in hdspm_write_pb_gain()
1191 static inline void snd_hdspm_enable_in(struct hdspm * hdspm, int i, int v) in snd_hdspm_enable_in()
1196 static inline void snd_hdspm_enable_out(struct hdspm * hdspm, int i, int v) in snd_hdspm_enable_out()
1202 static int snd_hdspm_use_is_exclusive(struct hdspm *hdspm) in snd_hdspm_use_is_exclusive()
1235 static int hdspm_rate_multiplier(struct hdspm *hdspm, int rate) in hdspm_rate_multiplier()
1248 static int hdspm_external_sample_rate(struct hdspm *hdspm) in hdspm_external_sample_rate()
1448 static int hdspm_get_latency(struct hdspm *hdspm) in hdspm_get_latency()
1468 static inline void hdspm_compute_period_size(struct hdspm *hdspm) in hdspm_compute_period_size()
1474 static snd_pcm_uframes_t hdspm_hw_pointer(struct hdspm *hdspm) in hdspm_hw_pointer()
1508 static void hdspm_silence_playback(struct hdspm *hdspm) in hdspm_silence_playback()
1562 static u64 hdspm_calc_dds_value(struct hdspm *hdspm, u64 period) in hdspm_calc_dds_value()
1590 static void hdspm_set_dds_value(struct hdspm *hdspm, int rate) in hdspm_set_dds_value()
1626 static int hdspm_set_rate(struct hdspm * hdspm, int rate, int called_internally) in hdspm_set_rate()
1782 static void all_in_all_mixer(struct hdspm * hdspm, int sgain) in all_in_all_mixer()
1805 static inline unsigned char snd_hdspm_midi_read_byte (struct hdspm *hdspm, in snd_hdspm_midi_read_byte()
1812 static inline void snd_hdspm_midi_write_byte (struct hdspm *hdspm, int id, in snd_hdspm_midi_write_byte()
1819 static inline int snd_hdspm_midi_input_available (struct hdspm *hdspm, int id) in snd_hdspm_midi_input_available()
1824 static inline int snd_hdspm_midi_output_possible (struct hdspm *hdspm, int id) in snd_hdspm_midi_output_possible()
1836 static void snd_hdspm_flush_midi_input(struct hdspm *hdspm, int id) in snd_hdspm_flush_midi_input()
1918 struct hdspm *hdspm; in snd_hdspm_midi_input_trigger() local
2051 struct hdspm *hdspm, int id) in snd_hdspm_create_midi()
2170 struct hdspm *hdspm = (struct hdspm *)arg; in hdspm_midi_tasklet() local
2189 static inline int hdspm_get_pll_freq(struct hdspm *hdspm) in hdspm_get_pll_freq()
2203 static int hdspm_get_system_sample_rate(struct hdspm *hdspm) in hdspm_get_system_sample_rate()
2253 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_sample_rate() local
2263 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_sample_rate() local
2276 static int hdspm_get_wc_sample_rate(struct hdspm *hdspm) in hdspm_get_wc_sample_rate()
2301 static int hdspm_get_tco_sample_rate(struct hdspm *hdspm) in hdspm_get_tco_sample_rate()
2327 static int hdspm_get_sync_in_sample_rate(struct hdspm *hdspm) in hdspm_get_sync_in_sample_rate()
2349 static int hdspm_get_aes_sample_rate(struct hdspm *hdspm, int index) in hdspm_get_aes_sample_rate()
2368 static int hdspm_get_s1_sample_rate(struct hdspm *hdspm, unsigned int idx) in hdspm_get_s1_sample_rate()
2382 static int hdspm_external_rate_to_enum(struct hdspm *hdspm) in hdspm_external_rate_to_enum()
2417 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_sample_rate() local
2519 static int hdspm_system_clock_mode(struct hdspm *hdspm) in hdspm_system_clock_mode()
2541 static void hdspm_set_system_clock_mode(struct hdspm *hdspm, int mode) in hdspm_set_system_clock_mode()
2561 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_clock_mode() local
2570 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_clock_mode() local
2598 static int hdspm_clock_source(struct hdspm * hdspm) in hdspm_clock_source()
2615 static int hdspm_set_clock_source(struct hdspm * hdspm, int mode) in hdspm_set_clock_source()
2653 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_clock_source() local
2662 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_clock_source() local
2700 static int hdspm_pref_sync_ref(struct hdspm * hdspm) in hdspm_pref_sync_ref()
2803 static int hdspm_set_pref_sync_ref(struct hdspm * hdspm, int pref) in hdspm_set_pref_sync_ref()
2964 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_info_pref_sync_ref() local
2974 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_pref_sync_ref() local
2988 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_pref_sync_ref() local
3019 static int hdspm_autosync_ref(struct hdspm *hdspm) in hdspm_autosync_ref()
3058 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_info_autosync_ref() local
3077 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_ref() local
3108 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_video_input_format() local
3149 static int hdspm_tco_ltc_frames(struct hdspm *hdspm) in hdspm_tco_ltc_frames()
3183 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_ltc_frames() local
3198 static int hdspm_toggle_setting(struct hdspm *hdspm, u32 regmask) in hdspm_toggle_setting()
3210 static int hdspm_set_toggle_setting(struct hdspm *hdspm, u32 regmask, int out) in hdspm_set_toggle_setting()
3238 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_toggle_setting() local
3250 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_toggle_setting() local
3274 static int hdspm_input_select(struct hdspm * hdspm) in hdspm_input_select()
3279 static int hdspm_set_input_select(struct hdspm * hdspm, int out) in hdspm_set_input_select()
3301 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_input_select() local
3312 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_input_select() local
3336 static int hdspm_ds_wire(struct hdspm * hdspm) in hdspm_ds_wire()
3341 static int hdspm_set_ds_wire(struct hdspm * hdspm, int ds) in hdspm_set_ds_wire()
3363 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_ds_wire() local
3374 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_ds_wire() local
3398 static int hdspm_qs_wire(struct hdspm * hdspm) in hdspm_qs_wire()
3407 static int hdspm_set_qs_wire(struct hdspm * hdspm, int mode) in hdspm_set_qs_wire()
3436 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_qs_wire() local
3447 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_qs_wire() local
3474 static int hdspm_tristate(struct hdspm *hdspm, u32 regmask) in hdspm_tristate()
3480 static int hdspm_set_tristate(struct hdspm *hdspm, int mode, u32 regmask) in hdspm_set_tristate()
3511 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tristate() local
3523 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tristate() local
3552 static int hdspm_madi_speedmode(struct hdspm *hdspm) in hdspm_madi_speedmode()
3561 static int hdspm_set_madi_speedmode(struct hdspm *hdspm, int mode) in hdspm_set_madi_speedmode()
3590 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_madi_speedmode() local
3601 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_madi_speedmode() local
3645 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_mixer() local
3678 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_mixer() local
3749 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_playback_mixer() local
3768 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_playback_mixer() local
3830 static int hdspm_wc_sync_check(struct hdspm *hdspm) in hdspm_wc_sync_check()
3878 static int hdspm_madi_sync_check(struct hdspm *hdspm) in hdspm_madi_sync_check()
3891 static int hdspm_s1_sync_check(struct hdspm *hdspm, int idx) in hdspm_s1_sync_check()
3908 static int hdspm_sync_in_sync_check(struct hdspm *hdspm) in hdspm_sync_in_sync_check()
3944 static int hdspm_aes_sync_check(struct hdspm *hdspm, int idx) in hdspm_aes_sync_check()
3959 static int hdspm_tco_input_check(struct hdspm *hdspm, u32 mask) in hdspm_tco_input_check()
3968 static int hdspm_tco_sync_check(struct hdspm *hdspm) in hdspm_tco_sync_check()
4014 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_sync_check() local
4107 static void hdspm_tco_write(struct hdspm *hdspm) in hdspm_tco_write()
4219 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_sample_rate() local
4229 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_sample_rate() local
4266 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_pull() local
4276 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_pull() local
4311 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_wck_conversion() local
4321 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_wck_conversion() local
4358 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_frame_rate() local
4368 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_frame_rate() local
4404 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_sync_source() local
4414 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_sync_source() local
4454 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_word_term() local
4465 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_word_term() local
4644 static int hdspm_update_simple_mixer_controls(struct hdspm * hdspm) in hdspm_update_simple_mixer_controls()
4669 struct hdspm *hdspm) in snd_hdspm_create_controls()
4751 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_tco() local
4863 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_madi() local
5025 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_aes32() local
5178 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_raydat() local
5236 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_debug() local
5253 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_ports_in() local
5266 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_ports_out() local
5277 static void snd_hdspm_proc_init(struct hdspm *hdspm) in snd_hdspm_proc_init()
5315 static int snd_hdspm_set_defaults(struct hdspm * hdspm) in snd_hdspm_set_defaults()
5385 struct hdspm *hdspm = (struct hdspm *) dev_id; in snd_hdspm_interrupt() local
5462 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_pointer() local
5470 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_reset() local
5499 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_params() local
5664 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_free() local
5689 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_channel_info() local
5757 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_trigger() local
5876 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels_rate() local
5911 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels_rate() local
5946 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_in_channels() local
5980 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_out_channels() local
6016 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels() local
6030 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels() local
6054 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_open() local
6130 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_release() local
6164 struct hdspm *hdspm = hw->private_data; in snd_hdspm_hwdep_ioctl() local
6375 struct hdspm *hdspm) in snd_hdspm_create_hwdep()
6400 static int snd_hdspm_preallocate_memory(struct hdspm *hdspm) in snd_hdspm_preallocate_memory()
6418 static void hdspm_set_channel_dma_addr(struct hdspm *hdspm, in hdspm_set_channel_dma_addr()
6432 struct hdspm *hdspm) in snd_hdspm_create_pcm()
6459 static inline void snd_hdspm_initialize_midi_flush(struct hdspm * hdspm) in snd_hdspm_initialize_midi_flush()
6468 struct hdspm *hdspm) in snd_hdspm_create_alsa_devices()
6527 struct hdspm *hdspm) in snd_hdspm_create()
6869 static int snd_hdspm_free(struct hdspm * hdspm) in snd_hdspm_free()
6899 struct hdspm *hdspm = card->private_data; in snd_hdspm_card_free() local
6910 struct hdspm *hdspm; in snd_hdspm_probe() local