Lines Matching +full:on +full:- +full:chip
3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 MA 02111-1307, USA.
26 Translation from C++ and adaptation for use in ALSA-Driver
31 static int load_asic(struct echoaudio *chip);
32 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode);
33 static int set_digital_mode(struct echoaudio *chip, u8 mode);
34 static int check_asic_status(struct echoaudio *chip);
35 static int set_sample_rate(struct echoaudio *chip, u32 rate);
36 static int set_input_clock(struct echoaudio *chip, u16 clock);
37 static int set_professional_spdif(struct echoaudio *chip, char prof);
38 static int set_phantom_power(struct echoaudio *chip, char on);
39 static int write_control_reg(struct echoaudio *chip, u32 ctl, u32 frq,
44 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw() argument
50 return -ENODEV; in init_hw()
52 err = init_dsp_comm_page(chip); in init_hw()
54 dev_err(chip->card->dev, in init_hw()
55 "init_hw - could not initialize DSP comm page\n"); in init_hw()
59 chip->comm_page->e3g_frq_register = in init_hw()
60 cpu_to_le32((E3G_MAGIC_NUMBER / 48000) - 2); in init_hw()
61 chip->device_id = device_id; in init_hw()
62 chip->subdevice_id = subdevice_id; in init_hw()
63 chip->bad_board = true; in init_hw()
64 chip->has_midi = true; in init_hw()
65 chip->dsp_code_to_load = FW_ECHO3G_DSP; in init_hw()
67 /* Load the DSP code and the ASIC on the PCI card and get in init_hw()
69 err = load_firmware(chip); in init_hw()
74 chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL | in init_hw()
77 chip->card_name = "Gina3G"; in init_hw()
78 chip->px_digital_out = chip->bx_digital_out = 6; in init_hw()
79 chip->px_analog_in = chip->bx_analog_in = 14; in init_hw()
80 chip->px_digital_in = chip->bx_digital_in = 16; in init_hw()
81 chip->px_num = chip->bx_num = 24; in init_hw()
82 chip->has_phantom_power = true; in init_hw()
83 chip->hasnt_input_nominal_level = true; in init_hw()
85 chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL | in init_hw()
89 chip->card_name = "Layla3G"; in init_hw()
90 chip->px_digital_out = chip->bx_digital_out = 8; in init_hw()
91 chip->px_analog_in = chip->bx_analog_in = 16; in init_hw()
92 chip->px_digital_in = chip->bx_digital_in = 24; in init_hw()
93 chip->px_num = chip->bx_num = 32; in init_hw()
95 return -ENODEV; in init_hw()
98 chip->digital_modes = ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_RCA | in init_hw()
107 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults() argument
109 chip->digital_mode = DIGITAL_MODE_SPDIF_RCA; in set_mixer_defaults()
110 chip->professional_spdif = false; in set_mixer_defaults()
111 chip->non_audio_spdif = false; in set_mixer_defaults()
112 chip->bad_board = false; in set_mixer_defaults()
113 chip->phantom_power = false; in set_mixer_defaults()
114 return init_line_levels(chip); in set_mixer_defaults()
119 static int set_phantom_power(struct echoaudio *chip, char on) in set_phantom_power() argument
121 u32 control_reg = le32_to_cpu(chip->comm_page->control_register); in set_phantom_power()
123 if (on) in set_phantom_power()
128 chip->phantom_power = on; in set_phantom_power()
129 return write_control_reg(chip, control_reg, in set_phantom_power()
130 le32_to_cpu(chip->comm_page->e3g_frq_register), in set_phantom_power()