Lines Matching defs:hdspm
955 struct hdspm *hdspm; member
981 struct hdspm { struct
998 struct hdspm_midi midi[4]; argument
999 struct work_struct midi_work;
1001 size_t period_bytes;
1002 unsigned char ss_in_channels;
1003 unsigned char ds_in_channels;
1004 unsigned char qs_in_channels;
1005 unsigned char ss_out_channels;
1006 unsigned char ds_out_channels;
1007 unsigned char qs_out_channels;
1009 unsigned char max_channels_in;
1010 unsigned char max_channels_out;
1012 const signed char *channel_map_in;
1013 const signed char *channel_map_out;
1015 const signed char *channel_map_in_ss, *channel_map_in_ds, *channel_map_in_qs;
1016 const signed char *channel_map_out_ss, *channel_map_out_ds, *channel_map_out_qs;
1018 const char * const *port_names_in;
1019 const char * const *port_names_out;
1021 const char * const *port_names_in_ss;
1022 const char * const *port_names_in_ds;
1023 const char * const *port_names_in_qs;
1024 const char * const *port_names_out_ss;
1025 const char * const *port_names_out_ds;
1026 const char * const *port_names_out_qs;
1028 unsigned char *playback_buffer; /* suitably aligned address */
1029 unsigned char *capture_buffer; /* suitably aligned address */
1031 pid_t capture_pid; /* process id which uses capture */
1032 pid_t playback_pid; /* process id which uses capture */
1033 int running; /* running status */
1058 struct hdspm_mixer *mixer; argument
1060 struct hdspm_tco *tco; /* NULL if no TCO detected */ argument
1069 struct hdspm_peak_rms peak_rms; argument
1089 struct hdspm *hdspm); argument
1125 static bool hdspm_is_raydat_or_aio(struct hdspm *hdspm) in hdspm_is_raydat_or_aio()
1134 static inline void hdspm_write(struct hdspm * hdspm, unsigned int reg, in hdspm_write()
1140 static inline unsigned int hdspm_read(struct hdspm * hdspm, unsigned int reg) in hdspm_read()
1149 static inline int hdspm_read_in_gain(struct hdspm * hdspm, unsigned int chan, in hdspm_read_in_gain()
1158 static inline int hdspm_read_pb_gain(struct hdspm * hdspm, unsigned int chan, in hdspm_read_pb_gain()
1166 static int hdspm_write_in_gain(struct hdspm *hdspm, unsigned int chan, in hdspm_write_in_gain()
1179 static int hdspm_write_pb_gain(struct hdspm *hdspm, unsigned int chan, in hdspm_write_pb_gain()
1194 static inline void snd_hdspm_enable_in(struct hdspm * hdspm, int i, int v) in snd_hdspm_enable_in()
1199 static inline void snd_hdspm_enable_out(struct hdspm * hdspm, int i, int v) in snd_hdspm_enable_out()
1205 static int snd_hdspm_use_is_exclusive(struct hdspm *hdspm) in snd_hdspm_use_is_exclusive()
1238 static int hdspm_rate_multiplier(struct hdspm *hdspm, int rate) in hdspm_rate_multiplier()
1251 static int hdspm_external_sample_rate(struct hdspm *hdspm) in hdspm_external_sample_rate()
1451 static int hdspm_get_latency(struct hdspm *hdspm) in hdspm_get_latency()
1471 static inline void hdspm_compute_period_size(struct hdspm *hdspm) in hdspm_compute_period_size()
1477 static snd_pcm_uframes_t hdspm_hw_pointer(struct hdspm *hdspm) in hdspm_hw_pointer()
1511 static void hdspm_silence_playback(struct hdspm *hdspm) in hdspm_silence_playback()
1565 static u64 hdspm_calc_dds_value(struct hdspm *hdspm, u64 period) in hdspm_calc_dds_value()
1593 static void hdspm_set_dds_value(struct hdspm *hdspm, int rate) in hdspm_set_dds_value()
1629 static int hdspm_set_rate(struct hdspm * hdspm, int rate, int called_internally) in hdspm_set_rate()
1785 static void all_in_all_mixer(struct hdspm * hdspm, int sgain) in all_in_all_mixer()
1808 static inline unsigned char snd_hdspm_midi_read_byte (struct hdspm *hdspm, in snd_hdspm_midi_read_byte()
1815 static inline void snd_hdspm_midi_write_byte (struct hdspm *hdspm, int id, in snd_hdspm_midi_write_byte()
1822 static inline int snd_hdspm_midi_input_available (struct hdspm *hdspm, int id) in snd_hdspm_midi_input_available()
1827 static inline int snd_hdspm_midi_output_possible (struct hdspm *hdspm, int id) in snd_hdspm_midi_output_possible()
1839 static void snd_hdspm_flush_midi_input(struct hdspm *hdspm, int id) in snd_hdspm_flush_midi_input()
1921 struct hdspm *hdspm; in snd_hdspm_midi_input_trigger() local
2054 struct hdspm *hdspm, int id) in snd_hdspm_create_midi()
2173 struct hdspm *hdspm = container_of(work, struct hdspm, midi_work); in hdspm_midi_work() local
2192 static inline int hdspm_get_pll_freq(struct hdspm *hdspm) in hdspm_get_pll_freq()
2206 static int hdspm_get_system_sample_rate(struct hdspm *hdspm) in hdspm_get_system_sample_rate()
2256 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_sample_rate() local
2266 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_sample_rate() local
2279 static int hdspm_get_wc_sample_rate(struct hdspm *hdspm) in hdspm_get_wc_sample_rate()
2303 static int hdspm_get_tco_sample_rate(struct hdspm *hdspm) in hdspm_get_tco_sample_rate()
2328 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()
2367 static int hdspm_get_s1_sample_rate(struct hdspm *hdspm, unsigned int idx) in hdspm_get_s1_sample_rate()
2381 static int hdspm_external_rate_to_enum(struct hdspm *hdspm) in hdspm_external_rate_to_enum()
2416 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_sample_rate() local
2518 static int hdspm_system_clock_mode(struct hdspm *hdspm) in hdspm_system_clock_mode()
2540 static void hdspm_set_system_clock_mode(struct hdspm *hdspm, int mode) in hdspm_set_system_clock_mode()
2560 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_clock_mode() local
2569 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_clock_mode() local
2597 static int hdspm_clock_source(struct hdspm * hdspm) in hdspm_clock_source()
2614 static int hdspm_set_clock_source(struct hdspm * hdspm, int mode) in hdspm_set_clock_source()
2652 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_clock_source() local
2661 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_clock_source() local
2699 static int hdspm_pref_sync_ref(struct hdspm * hdspm) in hdspm_pref_sync_ref()
2802 static int hdspm_set_pref_sync_ref(struct hdspm * hdspm, int pref) in hdspm_set_pref_sync_ref()
2963 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_info_pref_sync_ref() local
2973 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_pref_sync_ref() local
2987 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_pref_sync_ref() local
3018 static int hdspm_autosync_ref(struct hdspm *hdspm) in hdspm_autosync_ref()
3057 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_info_autosync_ref() local
3076 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_ref() local
3107 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_video_input_format() local
3148 static int hdspm_tco_ltc_frames(struct hdspm *hdspm) in hdspm_tco_ltc_frames()
3182 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_ltc_frames() local
3197 static int hdspm_toggle_setting(struct hdspm *hdspm, u32 regmask) in hdspm_toggle_setting()
3209 static int hdspm_set_toggle_setting(struct hdspm *hdspm, u32 regmask, int out) in hdspm_set_toggle_setting()
3237 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_toggle_setting() local
3249 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_toggle_setting() local
3273 static int hdspm_input_select(struct hdspm * hdspm) in hdspm_input_select()
3278 static int hdspm_set_input_select(struct hdspm * hdspm, int out) in hdspm_set_input_select()
3300 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_input_select() local
3311 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_input_select() local
3335 static int hdspm_ds_wire(struct hdspm * hdspm) in hdspm_ds_wire()
3340 static int hdspm_set_ds_wire(struct hdspm * hdspm, int ds) in hdspm_set_ds_wire()
3362 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_ds_wire() local
3373 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_ds_wire() local
3397 static int hdspm_qs_wire(struct hdspm * hdspm) in hdspm_qs_wire()
3406 static int hdspm_set_qs_wire(struct hdspm * hdspm, int mode) in hdspm_set_qs_wire()
3435 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_qs_wire() local
3446 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_qs_wire() local
3473 static int hdspm_tristate(struct hdspm *hdspm, u32 regmask) in hdspm_tristate()
3479 static int hdspm_set_tristate(struct hdspm *hdspm, int mode, u32 regmask) in hdspm_set_tristate()
3510 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tristate() local
3522 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tristate() local
3551 static int hdspm_madi_speedmode(struct hdspm *hdspm) in hdspm_madi_speedmode()
3560 static int hdspm_set_madi_speedmode(struct hdspm *hdspm, int mode) in hdspm_set_madi_speedmode()
3589 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_madi_speedmode() local
3600 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_madi_speedmode() local
3644 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_mixer() local
3677 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_mixer() local
3748 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_playback_mixer() local
3767 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_playback_mixer() local
3829 static int hdspm_wc_sync_check(struct hdspm *hdspm) in hdspm_wc_sync_check()
3873 static int hdspm_madi_sync_check(struct hdspm *hdspm) in hdspm_madi_sync_check()
3886 static int hdspm_s1_sync_check(struct hdspm *hdspm, int idx) in hdspm_s1_sync_check()
3903 static int hdspm_sync_in_sync_check(struct hdspm *hdspm) in hdspm_sync_in_sync_check()
3939 static int hdspm_aes_sync_check(struct hdspm *hdspm, int idx) in hdspm_aes_sync_check()
3954 static int hdspm_tco_input_check(struct hdspm *hdspm, u32 mask) in hdspm_tco_input_check()
3963 static int hdspm_tco_sync_check(struct hdspm *hdspm) in hdspm_tco_sync_check()
4009 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_sync_check() local
4102 static void hdspm_tco_write(struct hdspm *hdspm) in hdspm_tco_write()
4214 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_sample_rate() local
4224 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_sample_rate() local
4261 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_pull() local
4271 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_pull() local
4306 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_wck_conversion() local
4316 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_wck_conversion() local
4353 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_frame_rate() local
4363 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_frame_rate() local
4399 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_sync_source() local
4409 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_sync_source() local
4449 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_word_term() local
4460 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_word_term() local
4639 static int hdspm_update_simple_mixer_controls(struct hdspm * hdspm) in hdspm_update_simple_mixer_controls()
4664 struct hdspm *hdspm) in snd_hdspm_create_controls()
4746 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_tco() local
4858 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_madi() local
5020 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_aes32() local
5173 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_raydat() local
5231 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_debug() local
5248 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_ports_in() local
5261 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_ports_out() local
5272 static void snd_hdspm_proc_init(struct hdspm *hdspm) in snd_hdspm_proc_init()
5310 static int snd_hdspm_set_defaults(struct hdspm * hdspm) in snd_hdspm_set_defaults()
5380 struct hdspm *hdspm = (struct hdspm *) dev_id; in snd_hdspm_interrupt() local
5457 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_pointer() local
5465 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_reset() local
5494 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_params() local
5659 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_free() local
5684 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_channel_info() local
5752 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_trigger() local
5871 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels_rate() local
5906 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels_rate() local
5941 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_in_channels() local
5975 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_out_channels() local
6011 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels() local
6025 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels() local
6049 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_open() local
6125 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_release() local
6153 struct hdspm *hdspm = hw->private_data; in snd_hdspm_hwdep_ioctl() local
6364 struct hdspm *hdspm) in snd_hdspm_create_hwdep()
6389 static int snd_hdspm_preallocate_memory(struct hdspm *hdspm) in snd_hdspm_preallocate_memory()
6407 static void hdspm_set_channel_dma_addr(struct hdspm *hdspm, in hdspm_set_channel_dma_addr()
6421 struct hdspm *hdspm) in snd_hdspm_create_pcm()
6448 static inline void snd_hdspm_initialize_midi_flush(struct hdspm * hdspm) in snd_hdspm_initialize_midi_flush()
6457 struct hdspm *hdspm) in snd_hdspm_create_alsa_devices()
6516 struct hdspm *hdspm) in snd_hdspm_create()
6849 struct hdspm *hdspm = card->private_data; in snd_hdspm_card_free() local
6869 struct hdspm *hdspm; in snd_hdspm_probe() local