Lines Matching defs:hdspm
967 struct hdspm *hdspm; member
993 struct hdspm { struct
1010 struct hdspm_midi midi[4]; argument
1011 struct tasklet_struct midi_tasklet;
1013 size_t period_bytes;
1014 unsigned char ss_in_channels;
1015 unsigned char ds_in_channels;
1016 unsigned char qs_in_channels;
1017 unsigned char ss_out_channels;
1018 unsigned char ds_out_channels;
1019 unsigned char qs_out_channels;
1021 unsigned char max_channels_in;
1022 unsigned char max_channels_out;
1024 signed char *channel_map_in;
1025 signed char *channel_map_out;
1027 signed char *channel_map_in_ss, *channel_map_in_ds, *channel_map_in_qs;
1028 signed char *channel_map_out_ss, *channel_map_out_ds, *channel_map_out_qs;
1030 char **port_names_in;
1031 char **port_names_out;
1033 char **port_names_in_ss, **port_names_in_ds, **port_names_in_qs;
1034 char **port_names_out_ss, **port_names_out_ds, **port_names_out_qs;
1036 unsigned char *playback_buffer; /* suitably aligned address */
1037 unsigned char *capture_buffer; /* suitably aligned address */
1039 pid_t capture_pid; /* process id which uses capture */
1040 pid_t playback_pid; /* process id which uses capture */
1041 int running; /* running status */
1066 struct hdspm_mixer *mixer; argument
1068 struct hdspm_tco *tco; /* NULL if no TCO detected */ argument
1077 struct hdspm_peak_rms peak_rms; argument
1097 struct hdspm *hdspm); argument
1133 static bool hdspm_is_raydat_or_aio(struct hdspm *hdspm) in hdspm_is_raydat_or_aio()
1142 static inline void hdspm_write(struct hdspm * hdspm, unsigned int reg, in hdspm_write()
1148 static inline unsigned int hdspm_read(struct hdspm * hdspm, unsigned int reg) in hdspm_read()
1157 static inline int hdspm_read_in_gain(struct hdspm * hdspm, unsigned int chan, in hdspm_read_in_gain()
1166 static inline int hdspm_read_pb_gain(struct hdspm * hdspm, unsigned int chan, in hdspm_read_pb_gain()
1174 static int hdspm_write_in_gain(struct hdspm *hdspm, unsigned int chan, in hdspm_write_in_gain()
1187 static int hdspm_write_pb_gain(struct hdspm *hdspm, unsigned int chan, in hdspm_write_pb_gain()
1202 static inline void snd_hdspm_enable_in(struct hdspm * hdspm, int i, int v) in snd_hdspm_enable_in()
1207 static inline void snd_hdspm_enable_out(struct hdspm * hdspm, int i, int v) in snd_hdspm_enable_out()
1213 static int snd_hdspm_use_is_exclusive(struct hdspm *hdspm) in snd_hdspm_use_is_exclusive()
1246 static int hdspm_rate_multiplier(struct hdspm *hdspm, int rate) in hdspm_rate_multiplier()
1259 static int hdspm_external_sample_rate(struct hdspm *hdspm) in hdspm_external_sample_rate()
1459 static int hdspm_get_latency(struct hdspm *hdspm) in hdspm_get_latency()
1479 static inline void hdspm_compute_period_size(struct hdspm *hdspm) in hdspm_compute_period_size()
1485 static snd_pcm_uframes_t hdspm_hw_pointer(struct hdspm *hdspm) in hdspm_hw_pointer()
1519 static void hdspm_silence_playback(struct hdspm *hdspm) in hdspm_silence_playback()
1573 static u64 hdspm_calc_dds_value(struct hdspm *hdspm, u64 period) in hdspm_calc_dds_value()
1601 static void hdspm_set_dds_value(struct hdspm *hdspm, int rate) in hdspm_set_dds_value()
1637 static int hdspm_set_rate(struct hdspm * hdspm, int rate, int called_internally) in hdspm_set_rate()
1793 static void all_in_all_mixer(struct hdspm * hdspm, int sgain) in all_in_all_mixer()
1816 static inline unsigned char snd_hdspm_midi_read_byte (struct hdspm *hdspm, in snd_hdspm_midi_read_byte()
1823 static inline void snd_hdspm_midi_write_byte (struct hdspm *hdspm, int id, in snd_hdspm_midi_write_byte()
1830 static inline int snd_hdspm_midi_input_available (struct hdspm *hdspm, int id) in snd_hdspm_midi_input_available()
1835 static inline int snd_hdspm_midi_output_possible (struct hdspm *hdspm, int id) in snd_hdspm_midi_output_possible()
1847 static void snd_hdspm_flush_midi_input(struct hdspm *hdspm, int id) in snd_hdspm_flush_midi_input()
1929 struct hdspm *hdspm; in snd_hdspm_midi_input_trigger() local
2062 struct hdspm *hdspm, int id) in snd_hdspm_create_midi()
2181 struct hdspm *hdspm = (struct hdspm *)arg; in hdspm_midi_tasklet() local
2200 static inline int hdspm_get_pll_freq(struct hdspm *hdspm) in hdspm_get_pll_freq()
2214 static int hdspm_get_system_sample_rate(struct hdspm *hdspm) in hdspm_get_system_sample_rate()
2264 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_sample_rate() local
2274 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_sample_rate() local
2287 static int hdspm_get_wc_sample_rate(struct hdspm *hdspm) in hdspm_get_wc_sample_rate()
2312 static int hdspm_get_tco_sample_rate(struct hdspm *hdspm) in hdspm_get_tco_sample_rate()
2338 static int hdspm_get_sync_in_sample_rate(struct hdspm *hdspm) in hdspm_get_sync_in_sample_rate()
2360 static int hdspm_get_aes_sample_rate(struct hdspm *hdspm, int index) in hdspm_get_aes_sample_rate()
2379 static int hdspm_get_s1_sample_rate(struct hdspm *hdspm, unsigned int idx) in hdspm_get_s1_sample_rate()
2393 static int hdspm_external_rate_to_enum(struct hdspm *hdspm) in hdspm_external_rate_to_enum()
2428 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_sample_rate() local
2530 static int hdspm_system_clock_mode(struct hdspm *hdspm) in hdspm_system_clock_mode()
2552 static void hdspm_set_system_clock_mode(struct hdspm *hdspm, int mode) in hdspm_set_system_clock_mode()
2572 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_clock_mode() local
2581 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_clock_mode() local
2609 static int hdspm_clock_source(struct hdspm * hdspm) in hdspm_clock_source()
2626 static int hdspm_set_clock_source(struct hdspm * hdspm, int mode) in hdspm_set_clock_source()
2664 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_clock_source() local
2673 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_clock_source() local
2711 static int hdspm_pref_sync_ref(struct hdspm * hdspm) in hdspm_pref_sync_ref()
2814 static int hdspm_set_pref_sync_ref(struct hdspm * hdspm, int pref) in hdspm_set_pref_sync_ref()
2975 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_info_pref_sync_ref() local
2985 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_pref_sync_ref() local
2999 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_pref_sync_ref() local
3030 static int hdspm_autosync_ref(struct hdspm *hdspm) in hdspm_autosync_ref()
3069 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_info_autosync_ref() local
3088 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_ref() local
3119 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_video_input_format() local
3160 static int hdspm_tco_ltc_frames(struct hdspm *hdspm) in hdspm_tco_ltc_frames()
3194 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_ltc_frames() local
3209 static int hdspm_toggle_setting(struct hdspm *hdspm, u32 regmask) in hdspm_toggle_setting()
3221 static int hdspm_set_toggle_setting(struct hdspm *hdspm, u32 regmask, int out) in hdspm_set_toggle_setting()
3249 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_toggle_setting() local
3261 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_toggle_setting() local
3285 static int hdspm_input_select(struct hdspm * hdspm) in hdspm_input_select()
3290 static int hdspm_set_input_select(struct hdspm * hdspm, int out) in hdspm_set_input_select()
3312 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_input_select() local
3323 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_input_select() local
3347 static int hdspm_ds_wire(struct hdspm * hdspm) in hdspm_ds_wire()
3352 static int hdspm_set_ds_wire(struct hdspm * hdspm, int ds) in hdspm_set_ds_wire()
3374 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_ds_wire() local
3385 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_ds_wire() local
3409 static int hdspm_qs_wire(struct hdspm * hdspm) in hdspm_qs_wire()
3418 static int hdspm_set_qs_wire(struct hdspm * hdspm, int mode) in hdspm_set_qs_wire()
3447 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_qs_wire() local
3458 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_qs_wire() local
3485 static int hdspm_tristate(struct hdspm *hdspm, u32 regmask) in hdspm_tristate()
3491 static int hdspm_set_tristate(struct hdspm *hdspm, int mode, u32 regmask) in hdspm_set_tristate()
3522 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tristate() local
3534 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tristate() local
3563 static int hdspm_madi_speedmode(struct hdspm *hdspm) in hdspm_madi_speedmode()
3572 static int hdspm_set_madi_speedmode(struct hdspm *hdspm, int mode) in hdspm_set_madi_speedmode()
3601 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_madi_speedmode() local
3612 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_madi_speedmode() local
3656 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_mixer() local
3689 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_mixer() local
3760 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_playback_mixer() local
3779 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_playback_mixer() local
3841 static int hdspm_wc_sync_check(struct hdspm *hdspm) in hdspm_wc_sync_check()
3889 static int hdspm_madi_sync_check(struct hdspm *hdspm) in hdspm_madi_sync_check()
3902 static int hdspm_s1_sync_check(struct hdspm *hdspm, int idx) in hdspm_s1_sync_check()
3919 static int hdspm_sync_in_sync_check(struct hdspm *hdspm) in hdspm_sync_in_sync_check()
3955 static int hdspm_aes_sync_check(struct hdspm *hdspm, int idx) in hdspm_aes_sync_check()
3970 static int hdspm_tco_input_check(struct hdspm *hdspm, u32 mask) in hdspm_tco_input_check()
3979 static int hdspm_tco_sync_check(struct hdspm *hdspm) in hdspm_tco_sync_check()
4025 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_sync_check() local
4118 static void hdspm_tco_write(struct hdspm *hdspm) in hdspm_tco_write()
4230 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_sample_rate() local
4240 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_sample_rate() local
4277 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_pull() local
4287 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_pull() local
4322 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_wck_conversion() local
4332 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_wck_conversion() local
4369 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_frame_rate() local
4379 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_frame_rate() local
4415 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_sync_source() local
4425 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_sync_source() local
4465 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_word_term() local
4476 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_word_term() local
4655 static int hdspm_update_simple_mixer_controls(struct hdspm * hdspm) in hdspm_update_simple_mixer_controls()
4680 struct hdspm *hdspm) in snd_hdspm_create_controls()
4762 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_tco() local
4874 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_madi() local
5036 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_aes32() local
5189 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_raydat() local
5247 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_debug() local
5264 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_ports_in() local
5277 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_ports_out() local
5288 static void snd_hdspm_proc_init(struct hdspm *hdspm) in snd_hdspm_proc_init()
5335 static int snd_hdspm_set_defaults(struct hdspm * hdspm) in snd_hdspm_set_defaults()
5405 struct hdspm *hdspm = (struct hdspm *) dev_id; in snd_hdspm_interrupt() local
5482 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_pointer() local
5490 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_reset() local
5519 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_params() local
5674 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_free() local
5701 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_channel_info() local
5769 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_trigger() local
5888 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels_rate() local
5923 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels_rate() local
5958 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_in_channels() local
5992 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_out_channels() local
6028 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels() local
6042 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels() local
6066 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_open() local
6142 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_release() local
6176 struct hdspm *hdspm = hw->private_data; in snd_hdspm_hwdep_ioctl() local
6387 struct hdspm *hdspm) in snd_hdspm_create_hwdep()
6412 static int snd_hdspm_preallocate_memory(struct hdspm *hdspm) in snd_hdspm_preallocate_memory()
6441 static void hdspm_set_sgbuf(struct hdspm *hdspm, in hdspm_set_sgbuf()
6456 struct hdspm *hdspm) in snd_hdspm_create_pcm()
6483 static inline void snd_hdspm_initialize_midi_flush(struct hdspm * hdspm) in snd_hdspm_initialize_midi_flush()
6492 struct hdspm *hdspm) in snd_hdspm_create_alsa_devices()
6551 struct hdspm *hdspm) in snd_hdspm_create()
6893 static int snd_hdspm_free(struct hdspm * hdspm) in snd_hdspm_free()
6923 struct hdspm *hdspm = card->private_data; in snd_hdspm_card_free() local
6934 struct hdspm *hdspm; in snd_hdspm_probe() local