Lines Matching +full:audio +full:- +full:gain +full:- +full:db

3    Copyright Echo Digital Audio Corporation (c) 1998 - 2004
7 This file is part of Echo Digital Audio's generic driver library.
9 Echo Digital Audio's generic driver library is free software;
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
44 return -ENODEV; in init_hw()
48 dev_err(chip->card->dev, in init_hw()
49 "init_hw - could not initialize DSP comm page\n"); in init_hw()
53 chip->device_id = device_id; in init_hw()
54 chip->subdevice_id = subdevice_id; in init_hw()
55 chip->bad_board = true; in init_hw()
56 chip->has_midi = true; in init_hw()
57 chip->dsp_code_to_load = FW_LAYLA20_DSP; in init_hw()
58 chip->input_clock_types = in init_hw()
61 chip->output_clock_types = in init_hw()
67 chip->bad_board = false; in init_hw()
76 chip->professional_spdif = false; in set_mixer_defaults()
87 clocks_from_dsp = le32_to_cpu(chip->comm_page->status_clocks); in detect_input_clocks()
106 /* ASIC status check - some cards have one or two ASICs that need to be
110 defective - the external box may be disconnected or turned off.
118 chip->asic_loaded = false; in check_asic_status()
125 dev_err(chip->card->dev, in check_asic_status()
127 return -EIO; in check_asic_status()
132 chip->asic_loaded = true; in check_asic_status()
137 return -EIO; in check_asic_status()
147 if (chip->asic_loaded) in load_asic()
164 return -EINVAL; in set_sample_rate()
167 simply treat it as a non-event. */ in set_sample_rate()
168 if (chip->input_clock != ECHO_CLOCK_INTERNAL) { in set_sample_rate()
169 dev_warn(chip->card->dev, in set_sample_rate()
170 "Cannot set sample rate - clock not set to CLK_CLOCKININTERNAL\n"); in set_sample_rate()
171 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
172 chip->sample_rate = rate; in set_sample_rate()
177 return -EIO; in set_sample_rate()
179 dev_dbg(chip->card->dev, "set_sample_rate(%d)\n", rate); in set_sample_rate()
180 chip->sample_rate = rate; in set_sample_rate()
181 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
196 rate = chip->sample_rate; in set_input_clock()
209 dev_err(chip->card->dev, in set_input_clock()
212 return -EINVAL; in set_input_clock()
214 chip->input_clock = clock_source; in set_input_clock()
216 chip->comm_page->input_clock = cpu_to_le16(clock); in set_input_clock()
238 dev_err(chip->card->dev, "set_output_clock wrong clock\n"); in set_output_clock()
239 return -EINVAL; in set_output_clock()
243 return -EIO; in set_output_clock()
245 chip->comm_page->output_clock = cpu_to_le16(clock); in set_output_clock()
246 chip->output_clock = clock; in set_output_clock()
253 /* Set input bus gain (one unit is 0.5dB !) */
254 static int set_input_gain(struct echoaudio *chip, u16 input, int gain) in set_input_gain() argument
257 return -EINVAL; in set_input_gain()
260 return -EIO; in set_input_gain()
262 chip->input_gain[input] = gain; in set_input_gain()
263 gain += GL20_INPUT_GAIN_MAGIC_NUMBER; in set_input_gain()
264 chip->comm_page->line_in_level[input] = gain; in set_input_gain()
274 return -EIO; in update_flags()
284 chip->comm_page->flags |= in set_professional_spdif()
287 chip->comm_page->flags &= in set_professional_spdif()
289 chip->professional_spdif = prof; in set_professional_spdif()