Lines Matching defs:hdsp

447     struct hdsp             *hdsp;  member
458 struct hdsp { struct
462 struct hdsp_midi midi[2]; argument
463 struct tasklet_struct midi_tasklet;
464 int use_midi_tasklet;
465 int precise_ptr;
466 u32 control_register; /* cached value */
467 u32 control2_register; /* cached value */
468 u32 creg_spdif;
469 u32 creg_spdif_stream;
470 int clock_source_locked;
471 char *card_name; /* digiface/multiface/rpm */
472 enum HDSP_IO_Type io_type; /* ditto, but for code use */
473 unsigned short firmware_rev;
474 unsigned short state; /* stores state bits */
475 const struct firmware *firmware;
476 u32 *fw_uploaded;
477 size_t period_bytes; /* guess what this is */
478 unsigned char max_channels;
479 unsigned char qs_in_channels; /* quad speed mode for H9632 */
480 unsigned char ds_in_channels;
481 unsigned char ss_in_channels; /* different for multiface/digiface */
482 unsigned char qs_out_channels;
483 unsigned char ds_out_channels;
484 unsigned char ss_out_channels;
486 struct snd_dma_buffer capture_dma_buf;
487 struct snd_dma_buffer playback_dma_buf;
488 unsigned char *capture_buffer; /* suitably aligned address */
489 unsigned char *playback_buffer; /* suitably aligned address */
491 pid_t capture_pid;
492 pid_t playback_pid;
493 int running;
494 int system_sample_rate;
495 char *channel_map;
496 int dev;
497 int irq;
498 unsigned long port;
499 void __iomem *iobase;
500 struct snd_card *card;
501 struct snd_pcm *pcm;
502 struct snd_hwdep *hwdep;
503 struct pci_dev *pci;
504 struct snd_kcontrol *spdif_ctl;
505 unsigned short mixer_matrix[HDSP_MATRIX_MIXER_SIZE];
506 unsigned int dds_value; /* last value written to freq register */
623 static int hdsp_playback_to_output_key (struct hdsp *hdsp, int in, int out) in hdsp_playback_to_output_key()
641 static int hdsp_input_to_output_key (struct hdsp *hdsp, int in, int out) in hdsp_input_to_output_key()
659 static void hdsp_write(struct hdsp *hdsp, int reg, int val) in hdsp_write()
664 static unsigned int hdsp_read(struct hdsp *hdsp, int reg) in hdsp_read()
669 static int hdsp_check_for_iobox (struct hdsp *hdsp) in hdsp_check_for_iobox()
691 static int hdsp_wait_for_iobox(struct hdsp *hdsp, unsigned int loops, in hdsp_wait_for_iobox()
714 static int snd_hdsp_load_firmware_from_cache(struct hdsp *hdsp) { in snd_hdsp_load_firmware_from_cache()
782 static int hdsp_get_iobox_version (struct hdsp *hdsp) in hdsp_get_iobox_version()
842 static int hdsp_check_for_firmware (struct hdsp *hdsp, int load_on_demand) in hdsp_check_for_firmware()
869 static int hdsp_fifo_wait(struct hdsp *hdsp, int count, int timeout) in hdsp_fifo_wait()
895 static int hdsp_read_gain (struct hdsp *hdsp, unsigned int addr) in hdsp_read_gain()
903 static int hdsp_write_gain(struct hdsp *hdsp, unsigned int addr, unsigned short data) in hdsp_write_gain()
963 static int snd_hdsp_use_is_exclusive(struct hdsp *hdsp) in snd_hdsp_use_is_exclusive()
976 static int hdsp_spdif_sample_rate(struct hdsp *hdsp) in hdsp_spdif_sample_rate()
1013 static int hdsp_external_sample_rate(struct hdsp *hdsp) in hdsp_external_sample_rate()
1038 static void hdsp_compute_period_size(struct hdsp *hdsp) in hdsp_compute_period_size()
1043 static snd_pcm_uframes_t hdsp_hw_pointer(struct hdsp *hdsp) in hdsp_hw_pointer()
1058 static void hdsp_reset_hw_pointer(struct hdsp *hdsp) in hdsp_reset_hw_pointer()
1080 static void hdsp_silence_playback(struct hdsp *hdsp) in hdsp_silence_playback()
1110 static void hdsp_set_dds_value(struct hdsp *hdsp, int rate) in hdsp_set_dds_value()
1129 static int hdsp_set_rate(struct hdsp *hdsp, int rate, int called_internally) in hdsp_set_rate()
1281 static unsigned char snd_hdsp_midi_read_byte (struct hdsp *hdsp, int id) in snd_hdsp_midi_read_byte()
1290 static void snd_hdsp_midi_write_byte (struct hdsp *hdsp, int id, int val) in snd_hdsp_midi_write_byte()
1299 static int snd_hdsp_midi_input_available (struct hdsp *hdsp, int id) in snd_hdsp_midi_input_available()
1307 static int snd_hdsp_midi_output_possible (struct hdsp *hdsp, int id) in snd_hdsp_midi_output_possible()
1322 static void snd_hdsp_flush_midi_input (struct hdsp *hdsp, int id) in snd_hdsp_flush_midi_input()
1390 struct hdsp *hdsp; in snd_hdsp_midi_input_trigger() local
1523 static int snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int id) in snd_hdsp_create_midi()
1588 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_get() local
1596 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_put() local
1617 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_stream_get() local
1625 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_stream_put() local
1660 static unsigned int hdsp_spdif_in(struct hdsp *hdsp) in hdsp_spdif_in()
1665 static int hdsp_set_spdif_input(struct hdsp *hdsp, int in) in hdsp_set_spdif_input()
1678 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_spdif_in() local
1686 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_spdif_in() local
1694 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_spdif_in() local
1718 static int hdsp_toggle_setting(struct hdsp *hdsp, u32 regmask) in hdsp_toggle_setting()
1723 static int hdsp_set_toggle_setting(struct hdsp *hdsp, u32 regmask, int out) in hdsp_set_toggle_setting()
1739 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_toggle_setting() local
1751 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_toggle_setting() local
1782 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_spdif_sample_rate() local
1790 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_spdif_sample_rate() local
1844 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_system_sample_rate() local
1861 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_autosync_sample_rate() local
1873 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_autosync_sample_rate() local
1918 static int hdsp_system_clock_mode(struct hdsp *hdsp) in hdsp_system_clock_mode()
1936 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_system_clock_mode() local
1951 static int hdsp_clock_source(struct hdsp *hdsp) in hdsp_clock_source()
1981 static int hdsp_set_clock_source(struct hdsp *hdsp, int mode) in hdsp_set_clock_source()
2038 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_clock_source() local
2046 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_clock_source() local
2054 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_clock_source() local
2082 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_clock_source_lock() local
2090 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_clock_source_lock() local
2108 static int hdsp_da_gain(struct hdsp *hdsp) in hdsp_da_gain()
2122 static int hdsp_set_da_gain(struct hdsp *hdsp, int mode) in hdsp_set_da_gain()
2152 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_da_gain() local
2160 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_da_gain() local
2187 static int hdsp_ad_gain(struct hdsp *hdsp) in hdsp_ad_gain()
2201 static int hdsp_set_ad_gain(struct hdsp *hdsp, int mode) in hdsp_set_ad_gain()
2231 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_ad_gain() local
2239 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_ad_gain() local
2266 static int hdsp_phone_gain(struct hdsp *hdsp) in hdsp_phone_gain()
2280 static int hdsp_set_phone_gain(struct hdsp *hdsp, int mode) in hdsp_set_phone_gain()
2310 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_phone_gain() local
2318 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_phone_gain() local
2345 static int hdsp_pref_sync_ref(struct hdsp *hdsp) in hdsp_pref_sync_ref()
2370 static int hdsp_set_pref_sync_ref(struct hdsp *hdsp, int pref) in hdsp_set_pref_sync_ref()
2404 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_pref_sync_ref() local
2427 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_pref_sync_ref() local
2435 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_pref_sync_ref() local
2474 static int hdsp_autosync_ref(struct hdsp *hdsp) in hdsp_autosync_ref()
2511 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_autosync_ref() local
2526 static int hdsp_set_precise_pointer(struct hdsp *hdsp, int precise) in hdsp_set_precise_pointer()
2539 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_precise_pointer() local
2549 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_precise_pointer() local
2572 static int hdsp_set_use_midi_tasklet(struct hdsp *hdsp, int use_tasklet) in hdsp_set_use_midi_tasklet()
2585 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_use_midi_tasklet() local
2595 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_use_midi_tasklet() local
2633 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_mixer() local
2654 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_mixer() local
2698 static int hdsp_wc_sync_check(struct hdsp *hdsp) in hdsp_wc_sync_check()
2713 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_wc_sync_check() local
2728 static int hdsp_spdif_sync_check(struct hdsp *hdsp) in hdsp_spdif_sync_check()
2744 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_spdif_sync_check() local
2759 static int hdsp_adatsync_sync_check(struct hdsp *hdsp) in hdsp_adatsync_sync_check()
2773 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_adatsync_sync_check() local
2786 static int hdsp_adat_sync_check(struct hdsp *hdsp, int idx) in hdsp_adat_sync_check()
2802 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_adat_sync_check() local
2836 static int hdsp_dds_offset(struct hdsp *hdsp) in hdsp_dds_offset()
2858 static int hdsp_set_dds_offset(struct hdsp *hdsp, int offset_hz) in hdsp_set_dds_offset()
2876 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_dds_offset() local
2884 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_dds_offset() local
2975 static int hdsp_rpm_input12(struct hdsp *hdsp) in hdsp_rpm_input12()
2993 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_input12() local
3000 static int hdsp_set_rpm_input12(struct hdsp *hdsp, int mode) in hdsp_set_rpm_input12()
3029 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_input12() local
3060 static int hdsp_rpm_input34(struct hdsp *hdsp) in hdsp_rpm_input34()
3078 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_input34() local
3085 static int hdsp_set_rpm_input34(struct hdsp *hdsp, int mode) in hdsp_set_rpm_input34()
3114 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_input34() local
3136 static int hdsp_rpm_bypass(struct hdsp *hdsp) in hdsp_rpm_bypass()
3144 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_bypass() local
3151 static int hdsp_set_rpm_bypass(struct hdsp *hdsp, int on) in hdsp_set_rpm_bypass()
3164 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_bypass() local
3188 static int hdsp_rpm_disconnect(struct hdsp *hdsp) in hdsp_rpm_disconnect()
3196 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_disconnect() local
3203 static int hdsp_set_rpm_disconnect(struct hdsp *hdsp, int on) in hdsp_set_rpm_disconnect()
3216 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_disconnect() local
3275 static int snd_hdsp_create_controls(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_controls()
3335 struct hdsp *hdsp = entry->private_data; in snd_hdsp_proc_read() local
3708 static void snd_hdsp_proc_init(struct hdsp *hdsp) in snd_hdsp_proc_init()
3716 static void snd_hdsp_free_buffers(struct hdsp *hdsp) in snd_hdsp_free_buffers()
3722 static int snd_hdsp_initialize_memory(struct hdsp *hdsp) in snd_hdsp_initialize_memory()
3751 static int snd_hdsp_set_defaults(struct hdsp *hdsp) in snd_hdsp_set_defaults()
3816 struct hdsp *hdsp = (struct hdsp *)arg; in hdsp_midi_tasklet() local
3826 struct hdsp *hdsp = (struct hdsp *) dev_id; in snd_hdsp_interrupt() local
3889 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_hw_pointer() local
3893 static char *hdsp_channel_buffer_location(struct hdsp *hdsp, in hdsp_channel_buffer_location()
3916 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_copy() local
3934 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_copy_kernel() local
3948 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_copy() local
3966 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_copy_kernel() local
3980 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_hw_silence() local
3993 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_reset() local
4019 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_hw_params() local
4094 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_channel_info() local
4126 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_trigger() local
4194 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_prepare() local
4288 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels() local
4308 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels() local
4325 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels_rate() local
4356 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels_rate() local
4387 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_rate_out_channels() local
4418 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_rate_in_channels() local
4448 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_open() local
4505 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_release() local
4525 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_open() local
4570 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_release() local
4608 static int hdsp_9652_get_peak(struct hdsp *hdsp, struct hdsp_peak_rms __user *peak_rms) in hdsp_9652_get_peak()
4645 static int hdsp_9632_get_peak(struct hdsp *hdsp, struct hdsp_peak_rms __user *peak_rms) in hdsp_9632_get_peak()
4675 static int hdsp_get_peak(struct hdsp *hdsp, struct hdsp_peak_rms __user *peak_rms) in hdsp_get_peak()
4707 struct hdsp *hdsp = hw->private_data; in snd_hdsp_hwdep_ioctl() local
4916 static int snd_hdsp_create_hwdep(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_hwdep()
4934 static int snd_hdsp_create_pcm(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_pcm()
4954 static void snd_hdsp_9652_enable_mixer (struct hdsp *hdsp) in snd_hdsp_9652_enable_mixer()
4960 static int snd_hdsp_enable_io (struct hdsp *hdsp) in snd_hdsp_enable_io()
4978 static void snd_hdsp_initialize_channels(struct hdsp *hdsp) in snd_hdsp_initialize_channels()
5029 static void snd_hdsp_initialize_midi_flush (struct hdsp *hdsp) in snd_hdsp_initialize_midi_flush()
5035 static int snd_hdsp_create_alsa_devices(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_alsa_devices()
5097 static int hdsp_request_fw_loader(struct hdsp *hdsp) in hdsp_request_fw_loader()
5176 struct hdsp *hdsp) in snd_hdsp_create()
5323 static int snd_hdsp_free(struct hdsp *hdsp) in snd_hdsp_free()
5350 struct hdsp *hdsp = card->private_data; in snd_hdsp_card_free() local
5360 struct hdsp *hdsp; in snd_hdsp_probe() local