/sound/firewire/bebob/ |
D | bebob_command.c | 15 int err; in avc_audio_set_selector() local 31 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_set_selector() 34 if (err < 0) in avc_audio_set_selector() 36 else if (err < 9) in avc_audio_set_selector() 37 err = -EIO; in avc_audio_set_selector() 39 err = -ENOSYS; in avc_audio_set_selector() 41 err = -EINVAL; in avc_audio_set_selector() 43 err = 0; in avc_audio_set_selector() 46 return err; in avc_audio_set_selector() 53 int err; in avc_audio_get_selector() local [all …]
|
D | bebob_stream.c | 68 int err; in snd_bebob_stream_get_rate() local 72 err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, in snd_bebob_stream_get_rate() 74 } while (err == -EAGAIN && ++trials < 3); in snd_bebob_stream_get_rate() 75 if (err < 0) in snd_bebob_stream_get_rate() 80 err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, in snd_bebob_stream_get_rate() 82 } while (err == -EAGAIN && ++trials < 3); in snd_bebob_stream_get_rate() 83 if (err < 0) in snd_bebob_stream_get_rate() 91 err = avc_general_set_sig_fmt(bebob->unit, rx_rate, in snd_bebob_stream_get_rate() 94 return err; in snd_bebob_stream_get_rate() 100 int err; in snd_bebob_stream_set_rate() local [all …]
|
D | bebob_maudio.c | 97 int err, rcode; in snd_bebob_maudio_load_firmware() local 102 err = snd_bebob_read_block(unit, INFO_OFFSET_SW_DATE, in snd_bebob_maudio_load_firmware() 104 if (err < 0) in snd_bebob_maudio_load_firmware() 105 return err; in snd_bebob_maudio_load_firmware() 132 err = -EIO; in snd_bebob_maudio_load_firmware() 135 return err; in snd_bebob_maudio_load_firmware() 149 int err; in check_clk_sync() local 156 err = get_meter(bebob, buf, size); in check_clk_sync() 157 if (err < 0) in check_clk_sync() 164 return err; in check_clk_sync() [all …]
|
/sound/firewire/tascam/ |
D | tascam-stream.c | 21 int err; in get_clock() local 24 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in get_clock() 27 if (err < 0) in get_clock() 28 return err; in get_clock() 50 int err; in set_clock() local 52 err = get_clock(tscm, &data); in set_clock() 53 if (err < 0) in set_clock() 54 return err; in set_clock() 82 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, in set_clock() 85 if (err < 0) in set_clock() [all …]
|
/sound/firewire/digi00x/ |
D | digi00x-stream.c | 35 int err; in snd_dg00x_stream_get_local_rate() local 37 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, in snd_dg00x_stream_get_local_rate() 40 if (err < 0) in snd_dg00x_stream_get_local_rate() 41 return err; in snd_dg00x_stream_get_local_rate() 47 err = -EIO; in snd_dg00x_stream_get_local_rate() 49 return err; in snd_dg00x_stream_get_local_rate() 74 int err; in snd_dg00x_stream_get_clock() local 76 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, in snd_dg00x_stream_get_clock() 79 if (err < 0) in snd_dg00x_stream_get_clock() 80 return err; in snd_dg00x_stream_get_clock() [all …]
|
/sound/firewire/motu/ |
D | motu-stream.c | 34 int err; in start_both_streams() local 41 err = amdtp_motu_set_parameters(&motu->rx_stream, rate, midi_ports, in start_both_streams() 43 if (err < 0) in start_both_streams() 44 return err; in start_both_streams() 52 err = amdtp_motu_set_parameters(&motu->tx_stream, rate, midi_ports, in start_both_streams() 54 if (err < 0) in start_both_streams() 55 return err; in start_both_streams() 58 err = fw_iso_resources_allocate(&motu->rx_resources, in start_both_streams() 61 if (err < 0) in start_both_streams() 62 return err; in start_both_streams() [all …]
|
/sound/firewire/oxfw/ |
D | oxfw-stream.c | 44 int err; in set_rate() local 46 err = avc_general_set_sig_fmt(oxfw->unit, rate, in set_rate() 48 if (err < 0) in set_rate() 52 err = avc_general_set_sig_fmt(oxfw->unit, rate, in set_rate() 55 return err; in set_rate() 65 int i, err; in set_stream_format() local 77 err = snd_oxfw_stream_parse_format(formats[i], &formation); in set_stream_format() 78 if (err < 0) in set_stream_format() 79 return err; in set_stream_format() 94 err = avc_stream_set_format(oxfw->unit, dir, 0, formats[i], len); in set_stream_format() [all …]
|
D | oxfw-command.c | 15 int err; in avc_stream_set_format() local 34 err = fcp_avc_transaction(unit, buf, len + 10, buf, len + 10, in avc_stream_set_format() 37 if (err < 0) in avc_stream_set_format() 39 else if (err < len + 10) in avc_stream_set_format() 40 err = -EIO; in avc_stream_set_format() 42 err = -ENOSYS; in avc_stream_set_format() 44 err = -EINVAL; in avc_stream_set_format() 46 err = 0; in avc_stream_set_format() 50 return err; in avc_stream_set_format() 58 int err; in avc_stream_get_format() local [all …]
|
D | oxfw-pcm.c | 22 int i, err; in hw_rule_rate() local 28 err = snd_oxfw_stream_parse_format(formats[i], &formation); in hw_rule_rate() 29 if (err < 0) in hw_rule_rate() 50 int i, j, err; in hw_rule_channels() local 58 err = snd_oxfw_stream_parse_format(formats[i], &formation); in hw_rule_channels() 59 if (err < 0) in hw_rule_channels() 83 int i, err; in limit_channels_and_rates() local 96 err = snd_oxfw_stream_parse_format(formats[i], &formation); in limit_channels_and_rates() 97 if (err < 0) in limit_channels_and_rates() 115 int err; in init_hw_params() local [all …]
|
/sound/usb/ |
D | mixer_quirks.c | 136 int err; in snd_create_std_mono_table() local 139 err = snd_create_std_mono_ctl(mixer, t->unitid, t->control, in snd_create_std_mono_table() 141 if (err < 0) in snd_create_std_mono_table() 142 return err; in snd_create_std_mono_table() 226 int err; in snd_usb_sbrc_hwdep_read() local 231 err = wait_event_interruptible(mixer->rc_waitq, in snd_usb_sbrc_hwdep_read() 233 if (err == 0) { in snd_usb_sbrc_hwdep_read() 235 err = put_user(rc_code, buf); in snd_usb_sbrc_hwdep_read() 237 err = put_user(rc_code, (u32 __user *)buf); in snd_usb_sbrc_hwdep_read() 239 return err < 0 ? err : count; in snd_usb_sbrc_hwdep_read() [all …]
|
D | mixer_scarlett.c | 248 int i, err, val; in scarlett_ctl_switch_get() local 251 err = snd_usb_get_cur_mix_value(elem, i, i, &val); in scarlett_ctl_switch_get() 252 if (err < 0) in scarlett_ctl_switch_get() 253 return err; in scarlett_ctl_switch_get() 267 int err, oval, val; in scarlett_ctl_switch_put() local 270 err = snd_usb_get_cur_mix_value(elem, i, i, &oval); in scarlett_ctl_switch_put() 271 if (err < 0) in scarlett_ctl_switch_put() 272 return err; in scarlett_ctl_switch_put() 277 err = snd_usb_set_cur_mix_value(elem, i, i, val); in scarlett_ctl_switch_put() 278 if (err < 0) in scarlett_ctl_switch_put() [all …]
|
/sound/pci/lx6464es/ |
D | lx6464es.c | 108 int err = 0; in lx_hardware_open() local 116 err = lx_pipe_allocate(chip, 0, is_capture, channels); in lx_hardware_open() 117 if (err < 0) { in lx_hardware_open() 119 return err; in lx_hardware_open() 122 err = lx_set_granularity(chip, period_size); in lx_hardware_open() 123 if (err < 0) { in lx_hardware_open() 126 return err; in lx_hardware_open() 135 int err = 0; in lx_hardware_start() local 140 err = lx_stream_set_format(chip, runtime, 0, is_capture); in lx_hardware_start() 141 if (err < 0) { in lx_hardware_start() [all …]
|
/sound/soc/tegra/ |
D | tegra_asoc_utils.c | 37 int err; in tegra_asoc_utils_set_rate() local 80 err = clk_set_rate(data->clk_pll_a, new_baseclock); in tegra_asoc_utils_set_rate() 81 if (err) { in tegra_asoc_utils_set_rate() 82 dev_err(data->dev, "Can't set pll_a rate: %d\n", err); in tegra_asoc_utils_set_rate() 83 return err; in tegra_asoc_utils_set_rate() 86 err = clk_set_rate(data->clk_pll_a_out0, mclk); in tegra_asoc_utils_set_rate() 87 if (err) { in tegra_asoc_utils_set_rate() 88 dev_err(data->dev, "Can't set pll_a_out0 rate: %d\n", err); in tegra_asoc_utils_set_rate() 89 return err; in tegra_asoc_utils_set_rate() 94 err = clk_prepare_enable(data->clk_pll_a); in tegra_asoc_utils_set_rate() [all …]
|
/sound/firewire/fireface/ |
D | ff-stream.c | 37 int err; in keep_resources() local 39 err = get_rate_mode(rate, &mode); in keep_resources() 40 if (err < 0) in keep_resources() 41 return err; in keep_resources() 44 err = amdtp_ff_set_parameters(&ff->tx_stream, rate, in keep_resources() 46 if (err < 0) in keep_resources() 47 return err; in keep_resources() 49 err = fw_iso_resources_allocate(&ff->tx_resources, in keep_resources() 52 if (err < 0) in keep_resources() 53 return err; in keep_resources() [all …]
|
/sound/pci/pcxhr/ |
D | pcxhr_hwdep.c | 44 int err; in pcxhr_init_board() local 59 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_init_board() 60 if (err) in pcxhr_init_board() 61 return err; in pcxhr_init_board() 85 err = pcxhr_send_msg(mgr, &rmh); in pcxhr_init_board() 86 if (err) in pcxhr_init_board() 87 return err; in pcxhr_init_board() 94 err = hr222_sub_init(mgr); in pcxhr_init_board() 96 err = pcxhr_sub_init(mgr); in pcxhr_init_board() 97 return err; in pcxhr_init_board() [all …]
|
D | pcxhr_core.c | 182 int err; in pcxhr_send_it_dsp() local 217 err = pcxhr_check_reg_bit(mgr, PCXHR_DSP_CVR, PCXHR_CVR_HI08_HC, 0, in pcxhr_send_it_dsp() 219 if (err) { in pcxhr_send_it_dsp() 221 return err; in pcxhr_send_it_dsp() 225 err = pcxhr_check_reg_bit(mgr, PCXHR_PLX_MBOX0, in pcxhr_send_it_dsp() 230 if (err) { in pcxhr_send_it_dsp() 233 return err; in pcxhr_send_it_dsp() 335 int err; in pcxhr_download_dsp() local 359 err = pcxhr_check_reg_bit(mgr, PCXHR_DSP_ISR, in pcxhr_download_dsp() 363 if (err) { in pcxhr_download_dsp() [all …]
|
/sound/firewire/dice/ |
D | dice-stream.c | 40 int err; in ensure_phase_lock() local 42 err = snd_dice_transaction_read_global(dice, GLOBAL_CLOCK_SELECT, in ensure_phase_lock() 44 if (err < 0) in ensure_phase_lock() 45 return err; in ensure_phase_lock() 50 err = snd_dice_transaction_write_global(dice, GLOBAL_CLOCK_SELECT, in ensure_phase_lock() 52 if (err < 0) in ensure_phase_lock() 53 return err; in ensure_phase_lock() 62 err = snd_dice_transaction_read_global(dice, GLOBAL_STATUS, in ensure_phase_lock() 64 if (err < 0) in ensure_phase_lock() 65 return err; in ensure_phase_lock() [all …]
|
D | dice-pcm.c | 21 int err; in limit_channels_and_rates() local 29 err = snd_dice_transaction_read_tx(dice, in limit_channels_and_rates() 34 err = snd_dice_transaction_read_rx(dice, in limit_channels_and_rates() 38 if (err < 0) in limit_channels_and_rates() 39 return err; in limit_channels_and_rates() 44 err = snd_dice_transaction_get_rate(dice, &rate); in limit_channels_and_rates() 45 if (err < 0) in limit_channels_and_rates() 46 return err; in limit_channels_and_rates() 63 int err; in init_hw_info() local 69 err = snd_dice_transaction_read_tx(dice, TX_NUMBER, reg, in init_hw_info() [all …]
|
/sound/firewire/fireworks/ |
D | fireworks_stream.c | 18 int err; in init_stream() local 30 err = cmp_connection_init(conn, efw->unit, c_dir, 0); in init_stream() 31 if (err < 0) in init_stream() 34 err = amdtp_am824_init(stream, efw->unit, s_dir, CIP_BLOCKING); in init_stream() 35 if (err < 0) { in init_stream() 40 return err; in init_stream() 61 int err; in start_stream() local 63 err = snd_efw_get_multiplier_mode(sampling_rate, &mode); in start_stream() 64 if (err < 0) in start_stream() 76 err = amdtp_am824_set_parameters(stream, sampling_rate, in start_stream() [all …]
|
/sound/drivers/vx/ |
D | vx_core.c | 124 int err; in vx_transfer_end() local 126 if ((err = vx_reset_chk(chip)) < 0) in vx_transfer_end() 127 return err; in vx_transfer_end() 130 if ((err = vx_send_irq_dsp(chip, cmd)) < 0) in vx_transfer_end() 131 return err; in vx_transfer_end() 134 if ((err = vx_wait_isr_bit(chip, ISR_CHK)) < 0) in vx_transfer_end() 135 return err; in vx_transfer_end() 138 if ((err = vx_inb(chip, ISR)) & ISR_ERR) { in vx_transfer_end() 139 if ((err = vx_wait_for_rx_full(chip)) < 0) { in vx_transfer_end() 141 return err; in vx_transfer_end() [all …]
|
/sound/isa/galaxy/ |
D | galaxy.c | 129 int err; in dsp_get_version() local 131 err = dsp_command(port, DSP_COMMAND_GET_VERSION); in dsp_get_version() 132 if (err < 0) in dsp_get_version() 133 return err; in dsp_get_version() 135 err = dsp_get_byte(port, major); in dsp_get_version() 136 if (err < 0) in dsp_get_version() 137 return err; in dsp_get_version() 139 err = dsp_get_byte(port, minor); in dsp_get_version() 140 if (err < 0) in dsp_get_version() 141 return err; in dsp_get_version() [all …]
|
/sound/hda/ |
D | hdac_regmap.c | 159 int err; in hda_reg_read_stereo_amp() local 162 err = snd_hdac_exec_verb(codec, reg | AC_AMP_GET_LEFT, 0, &left); in hda_reg_read_stereo_amp() 163 if (err < 0) in hda_reg_read_stereo_amp() 164 return err; in hda_reg_read_stereo_amp() 165 err = snd_hdac_exec_verb(codec, reg | AC_AMP_GET_RIGHT, 0, &right); in hda_reg_read_stereo_amp() 166 if (err < 0) in hda_reg_read_stereo_amp() 167 return err; in hda_reg_read_stereo_amp() 176 int err; in hda_reg_write_stereo_amp() local 193 err = snd_hdac_exec_verb(codec, reg | AC_AMP_SET_LEFT | left, 0, NULL); in hda_reg_write_stereo_amp() 194 if (err < 0) in hda_reg_write_stereo_amp() [all …]
|
/sound/pci/mixart/ |
D | mixart_hwdep.c | 144 int err; in mixart_enum_connectors() local 154 err = -ENOMEM; in mixart_enum_connectors() 167 err = snd_mixart_send_msg(mgr, &request, sizeof(*connector), connector); in mixart_enum_connectors() 168 if((err < 0) || (connector->error_code) || (connector->uid_count > MIXART_MAX_PHYS_CONNECTORS)) { in mixart_enum_connectors() 171 err = -EINVAL; in mixart_enum_connectors() 197 err = snd_mixart_send_msg(mgr, &request, sizeof(*audio_info), audio_info); in mixart_enum_connectors() 198 if( err < 0 ) { in mixart_enum_connectors() 211 err = snd_mixart_send_msg(mgr, &request, sizeof(*connector), connector); in mixart_enum_connectors() 212 if((err < 0) || (connector->error_code) || (connector->uid_count > MIXART_MAX_PHYS_CONNECTORS)) { in mixart_enum_connectors() 215 err = -EINVAL; in mixart_enum_connectors() [all …]
|
/sound/i2c/ |
D | cs8427.c | 63 int err; in snd_cs8427_reg_write() local 68 if ((err = snd_i2c_sendbytes(device, buf, 2)) != 2) { in snd_cs8427_reg_write() 70 "to CS8427 (%i)\n", buf[0], buf[1], err); in snd_cs8427_reg_write() 71 return err < 0 ? err : -EIO; in snd_cs8427_reg_write() 80 int err; in snd_cs8427_reg_read() local 83 if ((err = snd_i2c_sendbytes(device, ®, 1)) != 1) { in snd_cs8427_reg_read() 86 return err < 0 ? err : -EIO; in snd_cs8427_reg_read() 88 if ((err = snd_i2c_readbytes(device, &buf, 1)) != 1) { in snd_cs8427_reg_read() 91 return err < 0 ? err : -EIO; in snd_cs8427_reg_read() 99 int err; in snd_cs8427_select_corudata() local [all …]
|
/sound/aoa/core/ |
D | alsa.c | 20 int err; in aoa_alsa_init() local 26 err = snd_card_new(dev, index, name, mod, sizeof(struct aoa_card), in aoa_alsa_init() 28 if (err < 0) in aoa_alsa_init() 29 return err; in aoa_alsa_init() 36 err = snd_card_register(aoa_card->alsa_card); in aoa_alsa_init() 37 if (err < 0) { in aoa_alsa_init() 41 return err; in aoa_alsa_init() 66 int err; in aoa_snd_device_new() local 70 err = snd_device_new(card, type, device_data, ops); in aoa_snd_device_new() 71 if (err) { in aoa_snd_device_new() [all …]
|