Lines Matching defs:hdsp
431 struct hdsp *hdsp; member
442 struct hdsp { struct
446 struct hdsp_midi midi[2]; argument
447 struct work_struct midi_work;
448 int use_midi_work;
449 int precise_ptr;
450 u32 control_register; /* cached value */
451 u32 control2_register; /* cached value */
452 u32 creg_spdif;
453 u32 creg_spdif_stream;
454 int clock_source_locked;
455 char *card_name; /* digiface/multiface/rpm */
456 enum HDSP_IO_Type io_type; /* ditto, but for code use */
457 unsigned short firmware_rev;
458 unsigned short state; /* stores state bits */
459 const struct firmware *firmware;
460 u32 *fw_uploaded;
461 size_t period_bytes; /* guess what this is */
462 unsigned char max_channels;
463 unsigned char qs_in_channels; /* quad speed mode for H9632 */
464 unsigned char ds_in_channels;
465 unsigned char ss_in_channels; /* different for multiface/digiface */
466 unsigned char qs_out_channels;
467 unsigned char ds_out_channels;
468 unsigned char ss_out_channels;
469 u32 io_loopback; /* output loopback channel states*/
474 struct snd_dma_buffer capture_dma_buf;
475 struct snd_dma_buffer playback_dma_buf;
476 unsigned char *capture_buffer; /* suitably aligned address */
477 unsigned char *playback_buffer; /* suitably aligned address */
479 pid_t capture_pid;
480 pid_t playback_pid;
481 int running;
482 int system_sample_rate;
483 const signed char *channel_map;
484 int dev;
485 int irq;
486 unsigned long port;
487 void __iomem *iobase;
488 struct snd_card *card;
489 struct snd_pcm *pcm;
490 struct snd_hwdep *hwdep;
491 struct pci_dev *pci;
492 struct snd_kcontrol *spdif_ctl;
493 unsigned short mixer_matrix[HDSP_MATRIX_MIXER_SIZE];
494 unsigned int dds_value; /* last value written to freq register */
600 static int hdsp_playback_to_output_key (struct hdsp *hdsp, int in, int out) in hdsp_playback_to_output_key()
618 static int hdsp_input_to_output_key (struct hdsp *hdsp, int in, int out) in hdsp_input_to_output_key()
636 static void hdsp_write(struct hdsp *hdsp, int reg, int val) in hdsp_write()
641 static unsigned int hdsp_read(struct hdsp *hdsp, int reg) in hdsp_read()
646 static int hdsp_check_for_iobox (struct hdsp *hdsp) in hdsp_check_for_iobox()
668 static int hdsp_wait_for_iobox(struct hdsp *hdsp, unsigned int loops, in hdsp_wait_for_iobox()
691 static int snd_hdsp_load_firmware_from_cache(struct hdsp *hdsp) { in snd_hdsp_load_firmware_from_cache()
759 static int hdsp_get_iobox_version (struct hdsp *hdsp) in hdsp_get_iobox_version()
819 static int hdsp_check_for_firmware (struct hdsp *hdsp, int load_on_demand) in hdsp_check_for_firmware()
846 static int hdsp_fifo_wait(struct hdsp *hdsp, int count, int timeout) in hdsp_fifo_wait()
872 static int hdsp_read_gain (struct hdsp *hdsp, unsigned int addr) in hdsp_read_gain()
880 static int hdsp_write_gain(struct hdsp *hdsp, unsigned int addr, unsigned short data) in hdsp_write_gain()
940 static int snd_hdsp_use_is_exclusive(struct hdsp *hdsp) in snd_hdsp_use_is_exclusive()
953 static int hdsp_spdif_sample_rate(struct hdsp *hdsp) in hdsp_spdif_sample_rate()
990 static int hdsp_external_sample_rate(struct hdsp *hdsp) in hdsp_external_sample_rate()
1015 static void hdsp_compute_period_size(struct hdsp *hdsp) in hdsp_compute_period_size()
1020 static snd_pcm_uframes_t hdsp_hw_pointer(struct hdsp *hdsp) in hdsp_hw_pointer()
1035 static void hdsp_reset_hw_pointer(struct hdsp *hdsp) in hdsp_reset_hw_pointer()
1057 static void hdsp_silence_playback(struct hdsp *hdsp) in hdsp_silence_playback()
1087 static void hdsp_set_dds_value(struct hdsp *hdsp, int rate) in hdsp_set_dds_value()
1106 static int hdsp_set_rate(struct hdsp *hdsp, int rate, int called_internally) in hdsp_set_rate()
1258 static unsigned char snd_hdsp_midi_read_byte (struct hdsp *hdsp, int id) in snd_hdsp_midi_read_byte()
1267 static void snd_hdsp_midi_write_byte (struct hdsp *hdsp, int id, int val) in snd_hdsp_midi_write_byte()
1276 static int snd_hdsp_midi_input_available (struct hdsp *hdsp, int id) in snd_hdsp_midi_input_available()
1284 static int snd_hdsp_midi_output_possible (struct hdsp *hdsp, int id) in snd_hdsp_midi_output_possible()
1299 static void snd_hdsp_flush_midi_input (struct hdsp *hdsp, int id) in snd_hdsp_flush_midi_input()
1372 struct hdsp *hdsp; in snd_hdsp_midi_input_trigger() local
1504 static int snd_hdsp_create_midi (struct snd_card *card, struct hdsp *hdsp, int id) in snd_hdsp_create_midi()
1569 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_get() local
1577 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_put() local
1598 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_stream_get() local
1606 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_stream_put() local
1641 static unsigned int hdsp_spdif_in(struct hdsp *hdsp) in hdsp_spdif_in()
1646 static int hdsp_set_spdif_input(struct hdsp *hdsp, int in) in hdsp_set_spdif_input()
1659 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_spdif_in() local
1667 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_spdif_in() local
1675 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_spdif_in() local
1699 static int hdsp_toggle_setting(struct hdsp *hdsp, u32 regmask) in hdsp_toggle_setting()
1704 static int hdsp_set_toggle_setting(struct hdsp *hdsp, u32 regmask, int out) in hdsp_set_toggle_setting()
1720 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_toggle_setting() local
1732 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_toggle_setting() local
1763 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_spdif_sample_rate() local
1771 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_spdif_sample_rate() local
1825 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_system_sample_rate() local
1842 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_autosync_sample_rate() local
1854 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_autosync_sample_rate() local
1899 static int hdsp_system_clock_mode(struct hdsp *hdsp) in hdsp_system_clock_mode()
1917 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_system_clock_mode() local
1932 static int hdsp_clock_source(struct hdsp *hdsp) in hdsp_clock_source()
1962 static int hdsp_set_clock_source(struct hdsp *hdsp, int mode) in hdsp_set_clock_source()
2019 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_clock_source() local
2027 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_clock_source() local
2035 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_clock_source() local
2063 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_clock_source_lock() local
2071 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_clock_source_lock() local
2089 static int hdsp_da_gain(struct hdsp *hdsp) in hdsp_da_gain()
2103 static int hdsp_set_da_gain(struct hdsp *hdsp, int mode) in hdsp_set_da_gain()
2133 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_da_gain() local
2141 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_da_gain() local
2168 static int hdsp_ad_gain(struct hdsp *hdsp) in hdsp_ad_gain()
2182 static int hdsp_set_ad_gain(struct hdsp *hdsp, int mode) in hdsp_set_ad_gain()
2212 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_ad_gain() local
2220 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_ad_gain() local
2247 static int hdsp_phone_gain(struct hdsp *hdsp) in hdsp_phone_gain()
2261 static int hdsp_set_phone_gain(struct hdsp *hdsp, int mode) in hdsp_set_phone_gain()
2291 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_phone_gain() local
2299 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_phone_gain() local
2326 static int hdsp_pref_sync_ref(struct hdsp *hdsp) in hdsp_pref_sync_ref()
2351 static int hdsp_set_pref_sync_ref(struct hdsp *hdsp, int pref) in hdsp_set_pref_sync_ref()
2385 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_info_pref_sync_ref() local
2408 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_pref_sync_ref() local
2416 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_pref_sync_ref() local
2455 static int hdsp_autosync_ref(struct hdsp *hdsp) in hdsp_autosync_ref()
2492 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_autosync_ref() local
2507 static int hdsp_set_precise_pointer(struct hdsp *hdsp, int precise) in hdsp_set_precise_pointer()
2520 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_precise_pointer() local
2530 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_precise_pointer() local
2553 static int hdsp_set_use_midi_work(struct hdsp *hdsp, int use_work) in hdsp_set_use_midi_work()
2566 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_use_midi_work() local
2576 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_use_midi_work() local
2614 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_mixer() local
2635 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_mixer() local
2679 static int hdsp_wc_sync_check(struct hdsp *hdsp) in hdsp_wc_sync_check()
2694 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_wc_sync_check() local
2709 static int hdsp_spdif_sync_check(struct hdsp *hdsp) in hdsp_spdif_sync_check()
2725 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_spdif_sync_check() local
2740 static int hdsp_adatsync_sync_check(struct hdsp *hdsp) in hdsp_adatsync_sync_check()
2754 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_adatsync_sync_check() local
2767 static int hdsp_adat_sync_check(struct hdsp *hdsp, int idx) in hdsp_adat_sync_check()
2783 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_adat_sync_check() local
2817 static int hdsp_dds_offset(struct hdsp *hdsp) in hdsp_dds_offset()
2839 static int hdsp_set_dds_offset(struct hdsp *hdsp, int offset_hz) in hdsp_set_dds_offset()
2857 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_dds_offset() local
2865 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_dds_offset() local
2956 static int hdsp_rpm_input12(struct hdsp *hdsp) in hdsp_rpm_input12()
2974 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_input12() local
2981 static int hdsp_set_rpm_input12(struct hdsp *hdsp, int mode) in hdsp_set_rpm_input12()
3010 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_input12() local
3041 static int hdsp_rpm_input34(struct hdsp *hdsp) in hdsp_rpm_input34()
3059 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_input34() local
3066 static int hdsp_set_rpm_input34(struct hdsp *hdsp, int mode) in hdsp_set_rpm_input34()
3095 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_input34() local
3117 static int hdsp_rpm_bypass(struct hdsp *hdsp) in hdsp_rpm_bypass()
3125 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_bypass() local
3132 static int hdsp_set_rpm_bypass(struct hdsp *hdsp, int on) in hdsp_set_rpm_bypass()
3145 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_bypass() local
3169 static int hdsp_rpm_disconnect(struct hdsp *hdsp) in hdsp_rpm_disconnect()
3177 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_get_rpm_disconnect() local
3184 static int hdsp_set_rpm_disconnect(struct hdsp *hdsp, int on) in hdsp_set_rpm_disconnect()
3197 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_put_rpm_disconnect() local
3257 static bool hdsp_loopback_get(struct hdsp *const hdsp, const u8 channel) in hdsp_loopback_get()
3262 static int hdsp_loopback_set(struct hdsp *const hdsp, const u8 channel, const bool enable) in hdsp_loopback_set()
3277 struct hdsp *const hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_loopback_get() local
3291 struct hdsp *const hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_loopback_put() local
3310 static int snd_hdsp_create_controls(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_controls()
3391 struct hdsp *hdsp = entry->private_data; in snd_hdsp_proc_read() local
3765 static void snd_hdsp_proc_init(struct hdsp *hdsp) in snd_hdsp_proc_init()
3770 static int snd_hdsp_initialize_memory(struct hdsp *hdsp) in snd_hdsp_initialize_memory()
3802 static int snd_hdsp_set_defaults(struct hdsp *hdsp) in snd_hdsp_set_defaults()
3867 struct hdsp *hdsp = container_of(work, struct hdsp, midi_work); in hdsp_midi_work() local
3877 struct hdsp *hdsp = (struct hdsp *) dev_id; in snd_hdsp_interrupt() local
3940 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_hw_pointer() local
3944 static signed char *hdsp_channel_buffer_location(struct hdsp *hdsp, in hdsp_channel_buffer_location()
3968 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_copy() local
3986 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_copy() local
4004 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_hw_silence() local
4017 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_reset() local
4043 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_hw_params() local
4120 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_channel_info() local
4153 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_trigger() local
4221 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_prepare() local
4307 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels() local
4327 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels() local
4344 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_in_channels_rate() local
4375 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_out_channels_rate() local
4406 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_rate_out_channels() local
4437 struct hdsp *hdsp = rule->private; in snd_hdsp_hw_rule_rate_in_channels() local
4467 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_open() local
4524 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_playback_release() local
4544 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_open() local
4589 struct hdsp *hdsp = snd_pcm_substream_chip(substream); in snd_hdsp_capture_release() local
4627 static int hdsp_9652_get_peak(struct hdsp *hdsp, struct hdsp_peak_rms __user *peak_rms) in hdsp_9652_get_peak()
4664 static int hdsp_9632_get_peak(struct hdsp *hdsp, struct hdsp_peak_rms __user *peak_rms) in hdsp_9632_get_peak()
4694 static int hdsp_get_peak(struct hdsp *hdsp, struct hdsp_peak_rms __user *peak_rms) in hdsp_get_peak()
4726 struct hdsp *hdsp = hw->private_data; in snd_hdsp_hwdep_ioctl() local
4936 static int snd_hdsp_create_hwdep(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_hwdep()
4955 static int snd_hdsp_create_pcm(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_pcm()
4976 static void snd_hdsp_9652_enable_mixer (struct hdsp *hdsp) in snd_hdsp_9652_enable_mixer()
4982 static int snd_hdsp_enable_io (struct hdsp *hdsp) in snd_hdsp_enable_io()
5000 static void snd_hdsp_initialize_channels(struct hdsp *hdsp) in snd_hdsp_initialize_channels()
5057 static void snd_hdsp_initialize_midi_flush (struct hdsp *hdsp) in snd_hdsp_initialize_midi_flush()
5063 static int snd_hdsp_create_alsa_devices(struct snd_card *card, struct hdsp *hdsp) in snd_hdsp_create_alsa_devices()
5131 static int hdsp_request_fw_loader(struct hdsp *hdsp) in hdsp_request_fw_loader()
5215 struct hdsp *hdsp) in snd_hdsp_create()
5374 struct hdsp *hdsp = card->private_data; in snd_hdsp_card_free() local
5391 struct hdsp *hdsp; in snd_hdsp_probe() local