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()
1923 struct hdspm *hdspm; in snd_hdspm_midi_input_trigger() local
2056 struct hdspm *hdspm, int id) in snd_hdspm_create_midi()
2175 struct hdspm *hdspm = container_of(work, struct hdspm, midi_work); in hdspm_midi_work() local
2194 static inline int hdspm_get_pll_freq(struct hdspm *hdspm) in hdspm_get_pll_freq()
2208 static int hdspm_get_system_sample_rate(struct hdspm *hdspm) in hdspm_get_system_sample_rate()
2258 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_sample_rate() local
2268 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_sample_rate() local
2281 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()
2330 static int hdspm_get_sync_in_sample_rate(struct hdspm *hdspm) in hdspm_get_sync_in_sample_rate()
2351 static int hdspm_get_aes_sample_rate(struct hdspm *hdspm, int index) in hdspm_get_aes_sample_rate()
2369 static int hdspm_get_s1_sample_rate(struct hdspm *hdspm, unsigned int idx) in hdspm_get_s1_sample_rate()
2383 static int hdspm_external_rate_to_enum(struct hdspm *hdspm) in hdspm_external_rate_to_enum()
2418 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_sample_rate() local
2520 static int hdspm_system_clock_mode(struct hdspm *hdspm) in hdspm_system_clock_mode()
2542 static void hdspm_set_system_clock_mode(struct hdspm *hdspm, int mode) in hdspm_set_system_clock_mode()
2562 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_clock_mode() local
2571 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_clock_mode() local
2599 static int hdspm_clock_source(struct hdspm * hdspm) in hdspm_clock_source()
2616 static int hdspm_set_clock_source(struct hdspm * hdspm, int mode) in hdspm_set_clock_source()
2654 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_clock_source() local
2663 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_clock_source() local
2701 static int hdspm_pref_sync_ref(struct hdspm * hdspm) in hdspm_pref_sync_ref()
2804 static int hdspm_set_pref_sync_ref(struct hdspm * hdspm, int pref) in hdspm_set_pref_sync_ref()
2965 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_info_pref_sync_ref() local
2975 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_pref_sync_ref() local
2989 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_pref_sync_ref() local
3020 static int hdspm_autosync_ref(struct hdspm *hdspm) in hdspm_autosync_ref()
3059 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_info_autosync_ref() local
3078 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_ref() local
3109 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_video_input_format() local
3150 static int hdspm_tco_ltc_frames(struct hdspm *hdspm) in hdspm_tco_ltc_frames()
3184 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_ltc_frames() local
3199 static int hdspm_toggle_setting(struct hdspm *hdspm, u32 regmask) in hdspm_toggle_setting()
3211 static int hdspm_set_toggle_setting(struct hdspm *hdspm, u32 regmask, int out) in hdspm_set_toggle_setting()
3239 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_toggle_setting() local
3251 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_toggle_setting() local
3275 static int hdspm_input_select(struct hdspm * hdspm) in hdspm_input_select()
3280 static int hdspm_set_input_select(struct hdspm * hdspm, int out) in hdspm_set_input_select()
3302 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_input_select() local
3313 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_input_select() local
3337 static int hdspm_ds_wire(struct hdspm * hdspm) in hdspm_ds_wire()
3342 static int hdspm_set_ds_wire(struct hdspm * hdspm, int ds) in hdspm_set_ds_wire()
3364 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_ds_wire() local
3375 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_ds_wire() local
3399 static int hdspm_qs_wire(struct hdspm * hdspm) in hdspm_qs_wire()
3408 static int hdspm_set_qs_wire(struct hdspm * hdspm, int mode) in hdspm_set_qs_wire()
3437 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_qs_wire() local
3448 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_qs_wire() local
3475 static int hdspm_tristate(struct hdspm *hdspm, u32 regmask) in hdspm_tristate()
3481 static int hdspm_set_tristate(struct hdspm *hdspm, int mode, u32 regmask) in hdspm_set_tristate()
3512 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tristate() local
3524 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tristate() local
3553 static int hdspm_madi_speedmode(struct hdspm *hdspm) in hdspm_madi_speedmode()
3562 static int hdspm_set_madi_speedmode(struct hdspm *hdspm, int mode) in hdspm_set_madi_speedmode()
3591 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_madi_speedmode() local
3602 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_madi_speedmode() local
3646 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_mixer() local
3679 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_mixer() local
3750 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_playback_mixer() local
3769 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_playback_mixer() local
3831 static int hdspm_wc_sync_check(struct hdspm *hdspm) in hdspm_wc_sync_check()
3875 static int hdspm_madi_sync_check(struct hdspm *hdspm) in hdspm_madi_sync_check()
3888 static int hdspm_s1_sync_check(struct hdspm *hdspm, int idx) in hdspm_s1_sync_check()
3905 static int hdspm_sync_in_sync_check(struct hdspm *hdspm) in hdspm_sync_in_sync_check()
3941 static int hdspm_aes_sync_check(struct hdspm *hdspm, int idx) in hdspm_aes_sync_check()
3956 static int hdspm_tco_input_check(struct hdspm *hdspm, u32 mask) in hdspm_tco_input_check()
3965 static int hdspm_tco_sync_check(struct hdspm *hdspm) in hdspm_tco_sync_check()
4011 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_sync_check() local
4104 static void hdspm_tco_write(struct hdspm *hdspm) in hdspm_tco_write()
4216 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_sample_rate() local
4226 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_sample_rate() local
4263 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_pull() local
4273 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_pull() local
4308 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_wck_conversion() local
4318 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_wck_conversion() local
4355 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_frame_rate() local
4365 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_frame_rate() local
4401 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_sync_source() local
4411 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_sync_source() local
4451 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_tco_word_term() local
4462 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_tco_word_term() local
4641 static int hdspm_update_simple_mixer_controls(struct hdspm * hdspm) in hdspm_update_simple_mixer_controls()
4666 struct hdspm *hdspm) in snd_hdspm_create_controls()
4748 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_tco() local
4860 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_madi() local
5022 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_aes32() local
5175 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_raydat() local
5233 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_read_debug() local
5250 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_ports_in() local
5263 struct hdspm *hdspm = entry->private_data; in snd_hdspm_proc_ports_out() local
5274 static void snd_hdspm_proc_init(struct hdspm *hdspm) in snd_hdspm_proc_init()
5312 static int snd_hdspm_set_defaults(struct hdspm * hdspm) in snd_hdspm_set_defaults()
5382 struct hdspm *hdspm = (struct hdspm *) dev_id; in snd_hdspm_interrupt() local
5459 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_pointer() local
5467 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_reset() local
5496 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_params() local
5661 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_hw_free() local
5686 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_channel_info() local
5754 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_trigger() local
5873 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels_rate() local
5908 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels_rate() local
5943 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_in_channels() local
5977 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_rate_out_channels() local
6013 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_in_channels() local
6027 struct hdspm *hdspm = rule->private; in snd_hdspm_hw_rule_out_channels() local
6051 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_open() local
6127 struct hdspm *hdspm = snd_pcm_substream_chip(substream); in snd_hdspm_release() local
6155 struct hdspm *hdspm = hw->private_data; in snd_hdspm_hwdep_ioctl() local
6366 struct hdspm *hdspm) in snd_hdspm_create_hwdep()
6391 static int snd_hdspm_preallocate_memory(struct hdspm *hdspm) in snd_hdspm_preallocate_memory()
6409 static void hdspm_set_channel_dma_addr(struct hdspm *hdspm, in hdspm_set_channel_dma_addr()
6423 struct hdspm *hdspm) in snd_hdspm_create_pcm()
6450 static inline void snd_hdspm_initialize_midi_flush(struct hdspm * hdspm) in snd_hdspm_initialize_midi_flush()
6459 struct hdspm *hdspm) in snd_hdspm_create_alsa_devices()
6518 struct hdspm *hdspm) in snd_hdspm_create()
6851 struct hdspm *hdspm = card->private_data; in snd_hdspm_card_free() local
6871 struct hdspm *hdspm; in snd_hdspm_probe() local