Lines Matching defs:hdspm

956 	struct hdspm *hdspm;  member
982 struct hdspm { struct
999 struct hdspm_midi midi[4]; argument
1000 struct work_struct midi_work;
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 const signed char *channel_map_in;
1014 const signed char *channel_map_out;
1016 const signed char *channel_map_in_ss, *channel_map_in_ds, *channel_map_in_qs;
1017 const signed char *channel_map_out_ss, *channel_map_out_ds, *channel_map_out_qs;
1019 const char * const *port_names_in;
1020 const char * const *port_names_out;
1022 const char * const *port_names_in_ss;
1023 const char * const *port_names_in_ds;
1024 const char * const *port_names_in_qs;
1025 const char * const *port_names_out_ss;
1026 const char * const *port_names_out_ds;
1027 const char * const *port_names_out_qs;
1029 unsigned char *playback_buffer; /* suitably aligned address */
1030 unsigned char *capture_buffer; /* suitably aligned address */
1032 pid_t capture_pid; /* process id which uses capture */
1033 pid_t playback_pid; /* process id which uses capture */
1034 int running; /* running status */
1059 struct hdspm_mixer *mixer; argument
1061 struct hdspm_tco *tco; /* NULL if no TCO detected */ argument
1070 struct hdspm_peak_rms peak_rms; argument
1090 struct hdspm *hdspm); argument
1126 static bool hdspm_is_raydat_or_aio(struct hdspm *hdspm) in hdspm_is_raydat_or_aio()
1135 static inline void hdspm_write(struct hdspm * hdspm, unsigned int reg, in hdspm_write()
1141 static inline unsigned int hdspm_read(struct hdspm * hdspm, unsigned int reg) in hdspm_read()
1150 static inline int hdspm_read_in_gain(struct hdspm * hdspm, unsigned int chan, in hdspm_read_in_gain()
1159 static inline int hdspm_read_pb_gain(struct hdspm * hdspm, unsigned int chan, in hdspm_read_pb_gain()
1167 static int hdspm_write_in_gain(struct hdspm *hdspm, unsigned int chan, in hdspm_write_in_gain()
1180 static int hdspm_write_pb_gain(struct hdspm *hdspm, unsigned int chan, in hdspm_write_pb_gain()
1195 static inline void snd_hdspm_enable_in(struct hdspm * hdspm, int i, int v) in snd_hdspm_enable_in()
1200 static inline void snd_hdspm_enable_out(struct hdspm * hdspm, int i, int v) in snd_hdspm_enable_out()
1206 static int snd_hdspm_use_is_exclusive(struct hdspm *hdspm) in snd_hdspm_use_is_exclusive()
1239 static int hdspm_rate_multiplier(struct hdspm *hdspm, int rate) in hdspm_rate_multiplier()
1252 static int hdspm_external_sample_rate(struct hdspm *hdspm) in hdspm_external_sample_rate()
1452 static int hdspm_get_latency(struct hdspm *hdspm) in hdspm_get_latency()
1472 static inline void hdspm_compute_period_size(struct hdspm *hdspm) in hdspm_compute_period_size()
1478 static snd_pcm_uframes_t hdspm_hw_pointer(struct hdspm *hdspm) in hdspm_hw_pointer()
1512 static void hdspm_silence_playback(struct hdspm *hdspm) in hdspm_silence_playback()
1566 static u64 hdspm_calc_dds_value(struct hdspm *hdspm, u64 period) in hdspm_calc_dds_value()
1594 static void hdspm_set_dds_value(struct hdspm *hdspm, int rate) in hdspm_set_dds_value()
1630 static int hdspm_set_rate(struct hdspm * hdspm, int rate, int called_internally) in hdspm_set_rate()
1786 static void all_in_all_mixer(struct hdspm * hdspm, int sgain) in all_in_all_mixer()
1809 static inline unsigned char snd_hdspm_midi_read_byte (struct hdspm *hdspm, in snd_hdspm_midi_read_byte()
1816 static inline void snd_hdspm_midi_write_byte (struct hdspm *hdspm, int id, in snd_hdspm_midi_write_byte()
1823 static inline int snd_hdspm_midi_input_available (struct hdspm *hdspm, int id) in snd_hdspm_midi_input_available()
1828 static inline int snd_hdspm_midi_output_possible (struct hdspm *hdspm, int id) in snd_hdspm_midi_output_possible()
1840 static void snd_hdspm_flush_midi_input(struct hdspm *hdspm, int id) in snd_hdspm_flush_midi_input()
1922 struct hdspm *hdspm; in snd_hdspm_midi_input_trigger() local
2055 struct hdspm *hdspm, int id) in snd_hdspm_create_midi()
2174 struct hdspm *hdspm = container_of(work, struct hdspm, midi_work); in hdspm_midi_work() local
2193 static inline int hdspm_get_pll_freq(struct hdspm *hdspm) in hdspm_get_pll_freq()
2207 static int hdspm_get_system_sample_rate(struct hdspm *hdspm) in hdspm_get_system_sample_rate()
2257 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_sample_rate() local
2267 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_sample_rate() local
2280 static int hdspm_get_wc_sample_rate(struct hdspm *hdspm) in hdspm_get_wc_sample_rate()
2305 static int hdspm_get_tco_sample_rate(struct hdspm *hdspm) in hdspm_get_tco_sample_rate()
2331 static int hdspm_get_sync_in_sample_rate(struct hdspm *hdspm) in hdspm_get_sync_in_sample_rate()
2353 static int hdspm_get_aes_sample_rate(struct hdspm *hdspm, int index) in hdspm_get_aes_sample_rate()
2372 static int hdspm_get_s1_sample_rate(struct hdspm *hdspm, unsigned int idx) in hdspm_get_s1_sample_rate()
2386 static int hdspm_external_rate_to_enum(struct hdspm *hdspm) in hdspm_external_rate_to_enum()
2421 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_sample_rate() local
2523 static int hdspm_system_clock_mode(struct hdspm *hdspm) in hdspm_system_clock_mode()
2545 static void hdspm_set_system_clock_mode(struct hdspm *hdspm, int mode) in hdspm_set_system_clock_mode()
2565 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_clock_mode() local
2574 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_clock_mode() local
2602 static int hdspm_clock_source(struct hdspm * hdspm) in hdspm_clock_source()
2619 static int hdspm_set_clock_source(struct hdspm * hdspm, int mode) in hdspm_set_clock_source()
2657 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_clock_source() local
2666 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_clock_source() local
2704 static int hdspm_pref_sync_ref(struct hdspm * hdspm) in hdspm_pref_sync_ref()
2807 static int hdspm_set_pref_sync_ref(struct hdspm * hdspm, int pref) in hdspm_set_pref_sync_ref()
2968 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_info_pref_sync_ref() local
2978 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_pref_sync_ref() local
2992 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_pref_sync_ref() local
3023 static int hdspm_autosync_ref(struct hdspm *hdspm) in hdspm_autosync_ref()
3062 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_info_autosync_ref() local
3081 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_ref() local
3112 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_video_input_format() local
3153 static int hdspm_tco_ltc_frames(struct hdspm *hdspm) in hdspm_tco_ltc_frames()
3187 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_ltc_frames() local
3202 static int hdspm_toggle_setting(struct hdspm *hdspm, u32 regmask) in hdspm_toggle_setting()
3214 static int hdspm_set_toggle_setting(struct hdspm *hdspm, u32 regmask, int out) in hdspm_set_toggle_setting()
3242 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_toggle_setting() local
3254 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_toggle_setting() local
3278 static int hdspm_input_select(struct hdspm * hdspm) in hdspm_input_select()
3283 static int hdspm_set_input_select(struct hdspm * hdspm, int out) in hdspm_set_input_select()
3305 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_input_select() local
3316 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_input_select() local
3340 static int hdspm_ds_wire(struct hdspm * hdspm) in hdspm_ds_wire()
3345 static int hdspm_set_ds_wire(struct hdspm * hdspm, int ds) in hdspm_set_ds_wire()
3367 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_ds_wire() local
3378 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_ds_wire() local
3402 static int hdspm_qs_wire(struct hdspm * hdspm) in hdspm_qs_wire()
3411 static int hdspm_set_qs_wire(struct hdspm * hdspm, int mode) in hdspm_set_qs_wire()
3440 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_qs_wire() local
3451 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_qs_wire() local
3478 static int hdspm_tristate(struct hdspm *hdspm, u32 regmask) in hdspm_tristate()
3484 static int hdspm_set_tristate(struct hdspm *hdspm, int mode, u32 regmask) in hdspm_set_tristate()
3515 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tristate() local
3527 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tristate() local
3556 static int hdspm_madi_speedmode(struct hdspm *hdspm) in hdspm_madi_speedmode()
3565 static int hdspm_set_madi_speedmode(struct hdspm *hdspm, int mode) in hdspm_set_madi_speedmode()
3594 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_madi_speedmode() local
3605 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_madi_speedmode() local
3649 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_mixer() local
3682 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_mixer() local
3753 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_playback_mixer() local
3772 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_playback_mixer() local
3834 static int hdspm_wc_sync_check(struct hdspm *hdspm) in hdspm_wc_sync_check()
3882 static int hdspm_madi_sync_check(struct hdspm *hdspm) in hdspm_madi_sync_check()
3895 static int hdspm_s1_sync_check(struct hdspm *hdspm, int idx) in hdspm_s1_sync_check()
3912 static int hdspm_sync_in_sync_check(struct hdspm *hdspm) in hdspm_sync_in_sync_check()
3948 static int hdspm_aes_sync_check(struct hdspm *hdspm, int idx) in hdspm_aes_sync_check()
3963 static int hdspm_tco_input_check(struct hdspm *hdspm, u32 mask) in hdspm_tco_input_check()
3972 static int hdspm_tco_sync_check(struct hdspm *hdspm) in hdspm_tco_sync_check()
4018 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_sync_check() local
4111 static void hdspm_tco_write(struct hdspm *hdspm) in hdspm_tco_write()
4223 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_sample_rate() local
4233 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_sample_rate() local
4270 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_pull() local
4280 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_pull() local
4315 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_wck_conversion() local
4325 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_wck_conversion() local
4362 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_frame_rate() local
4372 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_frame_rate() local
4408 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_sync_source() local
4418 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_sync_source() local
4458 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_word_term() local
4469 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_word_term() local
4648 static int hdspm_update_simple_mixer_controls(struct hdspm * hdspm) in hdspm_update_simple_mixer_controls()
4673 struct hdspm *hdspm) in snd_hdspm_create_controls()
4755 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_tco() local
4867 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_madi() local
5029 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_aes32() local
5182 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_raydat() local
5240 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_debug() local
5257 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_ports_in() local
5270 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_ports_out() local
5281 static void snd_hdspm_proc_init(struct hdspm *hdspm) in snd_hdspm_proc_init()
5319 static int snd_hdspm_set_defaults(struct hdspm * hdspm) in snd_hdspm_set_defaults()
5389 struct hdspm *hdspm = (struct hdspm *) dev_id; in snd_hdspm_interrupt() local
5466 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_pointer() local
5474 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_reset() local
5503 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_params() local
5668 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_free() local
5693 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_channel_info() local
5761 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_trigger() local
5880 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels_rate() local
5915 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels_rate() local
5950 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_in_channels() local
5984 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_out_channels() local
6020 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels() local
6034 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels() local
6058 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_open() local
6134 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_release() local
6168 struct hdspm *hdspm = hw->private_data; in snd_hdspm_hwdep_ioctl() local
6378 struct hdspm *hdspm) in snd_hdspm_create_hwdep()
6403 static int snd_hdspm_preallocate_memory(struct hdspm *hdspm) in snd_hdspm_preallocate_memory()
6421 static void hdspm_set_channel_dma_addr(struct hdspm *hdspm, in hdspm_set_channel_dma_addr()
6435 struct hdspm *hdspm) in snd_hdspm_create_pcm()
6462 static inline void snd_hdspm_initialize_midi_flush(struct hdspm * hdspm) in snd_hdspm_initialize_midi_flush()
6471 struct hdspm *hdspm) in snd_hdspm_create_alsa_devices()
6530 struct hdspm *hdspm) in snd_hdspm_create()
6870 static int snd_hdspm_free(struct hdspm * hdspm) in snd_hdspm_free()
6901 struct hdspm *hdspm = card->private_data; in snd_hdspm_card_free() local
6912 struct hdspm *hdspm; in snd_hdspm_probe() local