Lines Matching defs:hdsp

434     struct hdsp             *hdsp;  member
445 struct hdsp { struct
449 struct hdsp_midi midi[2]; argument
450 struct tasklet_struct midi_tasklet;
451 int use_midi_tasklet;
452 int precise_ptr;
453 u32 control_register; /* cached value */
454 u32 control2_register; /* cached value */
455 u32 creg_spdif;
456 u32 creg_spdif_stream;
457 int clock_source_locked;
458 char *card_name; /* digiface/multiface/rpm */
459 enum HDSP_IO_Type io_type; /* ditto, but for code use */
460 unsigned short firmware_rev;
461 unsigned short state; /* stores state bits */
462 const struct firmware *firmware;
463 u32 *fw_uploaded;
464 size_t period_bytes; /* guess what this is */
465 unsigned char max_channels;
466 unsigned char qs_in_channels; /* quad speed mode for H9632 */
467 unsigned char ds_in_channels;
468 unsigned char ss_in_channels; /* different for multiface/digiface */
469 unsigned char qs_out_channels;
470 unsigned char ds_out_channels;
471 unsigned char ss_out_channels;
473 struct snd_dma_buffer capture_dma_buf;
474 struct snd_dma_buffer playback_dma_buf;
475 unsigned char *capture_buffer; /* suitably aligned address */
476 unsigned char *playback_buffer; /* suitably aligned address */
478 pid_t capture_pid;
479 pid_t playback_pid;
480 int running;
481 int system_sample_rate;
482 char *channel_map;
483 int dev;
484 int irq;
485 unsigned long port;
486 void __iomem *iobase;
487 struct snd_card *card;
488 struct snd_pcm *pcm;
489 struct snd_hwdep *hwdep;
490 struct pci_dev *pci;
491 struct snd_kcontrol *spdif_ctl;
492 unsigned short mixer_matrix[HDSP_MATRIX_MIXER_SIZE];
493 unsigned int dds_value; /* last value written to freq register */
610 static int hdsp_playback_to_output_key (struct hdsp *hdsp, int in, int out) in hdsp_playback_to_output_key()
628 static int hdsp_input_to_output_key (struct hdsp *hdsp, int in, int out) in hdsp_input_to_output_key()
646 static void hdsp_write(struct hdsp *hdsp, int reg, int val) in hdsp_write()
651 static unsigned int hdsp_read(struct hdsp *hdsp, int reg) in hdsp_read()
656 static int hdsp_check_for_iobox (struct hdsp *hdsp) in hdsp_check_for_iobox()
678 static int hdsp_wait_for_iobox(struct hdsp *hdsp, unsigned int loops, in hdsp_wait_for_iobox()
701 static int snd_hdsp_load_firmware_from_cache(struct hdsp *hdsp) { in snd_hdsp_load_firmware_from_cache()
769 static int hdsp_get_iobox_version (struct hdsp *hdsp) in hdsp_get_iobox_version()
829 static int hdsp_check_for_firmware (struct hdsp *hdsp, int load_on_demand) in hdsp_check_for_firmware()
856 static int hdsp_fifo_wait(struct hdsp *hdsp, int count, int timeout) in hdsp_fifo_wait()
882 static int hdsp_read_gain (struct hdsp *hdsp, unsigned int addr) in hdsp_read_gain()
890 static int hdsp_write_gain(struct hdsp *hdsp, unsigned int addr, unsigned short data) in hdsp_write_gain()
950 static int snd_hdsp_use_is_exclusive(struct hdsp *hdsp) in snd_hdsp_use_is_exclusive()
963 static int hdsp_spdif_sample_rate(struct hdsp *hdsp) in hdsp_spdif_sample_rate()
1000 static int hdsp_external_sample_rate(struct hdsp *hdsp) in hdsp_external_sample_rate()
1025 static void hdsp_compute_period_size(struct hdsp *hdsp) in hdsp_compute_period_size()
1030 static snd_pcm_uframes_t hdsp_hw_pointer(struct hdsp *hdsp) in hdsp_hw_pointer()
1045 static void hdsp_reset_hw_pointer(struct hdsp *hdsp) in hdsp_reset_hw_pointer()
1067 static void hdsp_silence_playback(struct hdsp *hdsp) in hdsp_silence_playback()
1097 static void hdsp_set_dds_value(struct hdsp *hdsp, int rate) in hdsp_set_dds_value()
1116 static int hdsp_set_rate(struct hdsp *hdsp, int rate, int called_internally) in hdsp_set_rate()
1268 static unsigned char snd_hdsp_midi_read_byte (struct hdsp *hdsp, int id) in snd_hdsp_midi_read_byte()
1277 static void snd_hdsp_midi_write_byte (struct hdsp *hdsp, int id, int val) in snd_hdsp_midi_write_byte()
1286 static int snd_hdsp_midi_input_available (struct hdsp *hdsp, int id) in snd_hdsp_midi_input_available()
1294 static int snd_hdsp_midi_output_possible (struct hdsp *hdsp, int id) in snd_hdsp_midi_output_possible()
1309 static void snd_hdsp_flush_midi_input (struct hdsp *hdsp, int id) in snd_hdsp_flush_midi_input()
1377 struct hdsp *hdsp; in snd_hdsp_midi_input_trigger() local
1510 static int snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int id) in snd_hdsp_create_midi()
1575 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_get() local
1583 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_put() local
1604 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_stream_get() local
1612 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_stream_put() local
1647 static unsigned int hdsp_spdif_in(struct hdsp *hdsp) in hdsp_spdif_in()
1652 static int hdsp_set_spdif_input(struct hdsp *hdsp, int in) in hdsp_set_spdif_input()
1665 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_spdif_in() local
1673 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_spdif_in() local
1681 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_spdif_in() local
1705 static int hdsp_toggle_setting(struct hdsp *hdsp, u32 regmask) in hdsp_toggle_setting()
1710 static int hdsp_set_toggle_setting(struct hdsp *hdsp, u32 regmask, int out) in hdsp_set_toggle_setting()
1726 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_toggle_setting() local
1738 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_toggle_setting() local
1769 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_spdif_sample_rate() local
1777 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_spdif_sample_rate() local
1831 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_system_sample_rate() local
1848 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_autosync_sample_rate() local
1860 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_autosync_sample_rate() local
1905 static int hdsp_system_clock_mode(struct hdsp *hdsp) in hdsp_system_clock_mode()
1923 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_system_clock_mode() local
1938 static int hdsp_clock_source(struct hdsp *hdsp) in hdsp_clock_source()
1968 static int hdsp_set_clock_source(struct hdsp *hdsp, int mode) in hdsp_set_clock_source()
2025 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_clock_source() local
2033 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_clock_source() local
2041 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_clock_source() local
2069 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_clock_source_lock() local
2077 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_clock_source_lock() local
2095 static int hdsp_da_gain(struct hdsp *hdsp) in hdsp_da_gain()
2109 static int hdsp_set_da_gain(struct hdsp *hdsp, int mode) in hdsp_set_da_gain()
2139 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_da_gain() local
2147 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_da_gain() local
2174 static int hdsp_ad_gain(struct hdsp *hdsp) in hdsp_ad_gain()
2188 static int hdsp_set_ad_gain(struct hdsp *hdsp, int mode) in hdsp_set_ad_gain()
2218 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_ad_gain() local
2226 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_ad_gain() local
2253 static int hdsp_phone_gain(struct hdsp *hdsp) in hdsp_phone_gain()
2267 static int hdsp_set_phone_gain(struct hdsp *hdsp, int mode) in hdsp_set_phone_gain()
2297 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_phone_gain() local
2305 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_phone_gain() local
2332 static int hdsp_pref_sync_ref(struct hdsp *hdsp) in hdsp_pref_sync_ref()
2357 static int hdsp_set_pref_sync_ref(struct hdsp *hdsp, int pref) in hdsp_set_pref_sync_ref()
2391 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_pref_sync_ref() local
2414 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_pref_sync_ref() local
2422 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_pref_sync_ref() local
2461 static int hdsp_autosync_ref(struct hdsp *hdsp) in hdsp_autosync_ref()
2498 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_autosync_ref() local
2513 static int hdsp_set_precise_pointer(struct hdsp *hdsp, int precise) in hdsp_set_precise_pointer()
2526 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_precise_pointer() local
2536 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_precise_pointer() local
2559 static int hdsp_set_use_midi_tasklet(struct hdsp *hdsp, int use_tasklet) in hdsp_set_use_midi_tasklet()
2572 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_use_midi_tasklet() local
2582 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_use_midi_tasklet() local
2620 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_mixer() local
2641 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_mixer() local
2685 static int hdsp_wc_sync_check(struct hdsp *hdsp) in hdsp_wc_sync_check()
2700 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_wc_sync_check() local
2715 static int hdsp_spdif_sync_check(struct hdsp *hdsp) in hdsp_spdif_sync_check()
2731 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_spdif_sync_check() local
2746 static int hdsp_adatsync_sync_check(struct hdsp *hdsp) in hdsp_adatsync_sync_check()
2760 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_adatsync_sync_check() local
2773 static int hdsp_adat_sync_check(struct hdsp *hdsp, int idx) in hdsp_adat_sync_check()
2789 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_adat_sync_check() local
2823 static int hdsp_dds_offset(struct hdsp *hdsp) in hdsp_dds_offset()
2845 static int hdsp_set_dds_offset(struct hdsp *hdsp, int offset_hz) in hdsp_set_dds_offset()
2863 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_dds_offset() local
2871 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_dds_offset() local
2962 static int hdsp_rpm_input12(struct hdsp *hdsp) in hdsp_rpm_input12()
2980 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_input12() local
2987 static int hdsp_set_rpm_input12(struct hdsp *hdsp, int mode) in hdsp_set_rpm_input12()
3016 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_input12() local
3047 static int hdsp_rpm_input34(struct hdsp *hdsp) in hdsp_rpm_input34()
3065 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_input34() local
3072 static int hdsp_set_rpm_input34(struct hdsp *hdsp, int mode) in hdsp_set_rpm_input34()
3101 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_input34() local
3123 static int hdsp_rpm_bypass(struct hdsp *hdsp) in hdsp_rpm_bypass()
3131 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_bypass() local
3138 static int hdsp_set_rpm_bypass(struct hdsp *hdsp, int on) in hdsp_set_rpm_bypass()
3151 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_bypass() local
3175 static int hdsp_rpm_disconnect(struct hdsp *hdsp) in hdsp_rpm_disconnect()
3183 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_disconnect() local
3190 static int hdsp_set_rpm_disconnect(struct hdsp *hdsp, int on) in hdsp_set_rpm_disconnect()
3203 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_disconnect() local
3262 static int snd_hdsp_create_controls(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_controls()
3322 struct hdsp *hdsp = entry->private_data; in snd_hdsp_proc_read() local
3695 static void snd_hdsp_proc_init(struct hdsp *hdsp) in snd_hdsp_proc_init()
3700 static void snd_hdsp_free_buffers(struct hdsp *hdsp) in snd_hdsp_free_buffers()
3706 static int snd_hdsp_initialize_memory(struct hdsp *hdsp) in snd_hdsp_initialize_memory()
3735 static int snd_hdsp_set_defaults(struct hdsp *hdsp) in snd_hdsp_set_defaults()
3800 struct hdsp *hdsp = (struct hdsp *)arg; in hdsp_midi_tasklet() local
3810 struct hdsp *hdsp = (struct hdsp *) dev_id; in snd_hdsp_interrupt() local
3873 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_hw_pointer() local
3877 static char *hdsp_channel_buffer_location(struct hdsp *hdsp, in hdsp_channel_buffer_location()
3900 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_copy() local
3918 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_copy_kernel() local
3932 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_copy() local
3950 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_copy_kernel() local
3964 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_hw_silence() local
3977 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_reset() local
4003 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_hw_params() local
4078 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_channel_info() local
4111 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_trigger() local
4179 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_prepare() local
4273 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels() local
4293 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels() local
4310 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels_rate() local
4341 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels_rate() local
4372 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_rate_out_channels() local
4403 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_rate_in_channels() local
4433 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_open() local
4490 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_release() local
4510 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_open() local
4555 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_release() local
4593 static int hdsp_9652_get_peak(struct hdsp *hdsp, struct hdsp_peak_rms __user *peak_rms) in hdsp_9652_get_peak()
4630 static int hdsp_9632_get_peak(struct hdsp *hdsp, struct hdsp_peak_rms __user *peak_rms) in hdsp_9632_get_peak()
4660 static int hdsp_get_peak(struct hdsp *hdsp, struct hdsp_peak_rms __user *peak_rms) in hdsp_get_peak()
4692 struct hdsp *hdsp = hw->private_data; in snd_hdsp_hwdep_ioctl() local
4901 static int snd_hdsp_create_hwdep(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_hwdep()
4919 static int snd_hdsp_create_pcm(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_pcm()
4939 static void snd_hdsp_9652_enable_mixer (struct hdsp *hdsp) in snd_hdsp_9652_enable_mixer()
4945 static int snd_hdsp_enable_io (struct hdsp *hdsp) in snd_hdsp_enable_io()
4963 static void snd_hdsp_initialize_channels(struct hdsp *hdsp) in snd_hdsp_initialize_channels()
5014 static void snd_hdsp_initialize_midi_flush (struct hdsp *hdsp) in snd_hdsp_initialize_midi_flush()
5020 static int snd_hdsp_create_alsa_devices(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_alsa_devices()
5082 static int hdsp_request_fw_loader(struct hdsp *hdsp) in hdsp_request_fw_loader()
5161 struct hdsp *hdsp) in snd_hdsp_create()
5308 static int snd_hdsp_free(struct hdsp *hdsp) in snd_hdsp_free()
5335 struct hdsp *hdsp = card->private_data; in snd_hdsp_card_free() local
5345 struct hdsp *hdsp; in snd_hdsp_probe() local