Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 522) sorted by relevance

12345678910>>...21

/sound/firewire/bebob/
Dbebob_command.c15 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 && err < 9) in avc_audio_set_selector()
35 err = -EIO; in avc_audio_set_selector()
37 err = -ENOSYS; in avc_audio_set_selector()
39 err = -EINVAL; in avc_audio_set_selector()
40 else if (err > 0) in avc_audio_set_selector()
41 err = 0; in avc_audio_set_selector()
44 return err; in avc_audio_set_selector()
51 int err; in avc_audio_get_selector() local
[all …]
Dbebob_stream.c68 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 …]
Dbebob_maudio.c97 int err, rcode; in snd_bebob_maudio_load_firmware() local
106 err = snd_bebob_read_block(unit, INFO_OFFSET_SW_DATE, in snd_bebob_maudio_load_firmware()
108 if (err < 0) in snd_bebob_maudio_load_firmware()
117 err = -ENOSYS; in snd_bebob_maudio_load_firmware()
128 err = -EIO; in snd_bebob_maudio_load_firmware()
131 return err; in snd_bebob_maudio_load_firmware()
145 int err; in check_clk_sync() local
152 err = get_meter(bebob, buf, size); in check_clk_sync()
153 if (err < 0) in check_clk_sync()
160 return err; in check_clk_sync()
[all …]
/sound/firewire/tascam/
Dtascam-stream.c17 int err; in get_clock() local
19 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in get_clock()
22 if (err >= 0) in get_clock()
25 return err; in get_clock()
33 int err; in set_clock() local
35 err = get_clock(tscm, &data); in set_clock()
36 if (err < 0) in set_clock()
37 return err; in set_clock()
65 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, in set_clock()
68 if (err < 0) in set_clock()
[all …]
/sound/firewire/digi00x/
Ddigi00x-stream.c35 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 …]
Ddigi00x-pcm.c83 int err; in pcm_init_hw_params() local
96 err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_init_hw_params()
100 if (err < 0) in pcm_init_hw_params()
101 return err; in pcm_init_hw_params()
103 err = snd_pcm_hw_rule_add(substream->runtime, 0, in pcm_init_hw_params()
107 if (err < 0) in pcm_init_hw_params()
108 return err; in pcm_init_hw_params()
119 int err; in pcm_open() local
121 err = snd_dg00x_stream_lock_try(dg00x); in pcm_open()
122 if (err < 0) in pcm_open()
[all …]
/sound/firewire/oxfw/
Doxfw-stream.c44 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 …]
Doxfw-command.c15 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) && (err < len + 10)) in avc_stream_set_format()
38 err = -EIO; in avc_stream_set_format()
40 err = -ENOSYS; in avc_stream_set_format()
42 err = -EINVAL; in avc_stream_set_format()
44 err = 0; in avc_stream_set_format()
48 return err; in avc_stream_set_format()
56 int err; in avc_stream_get_format() local
77 err = fcp_avc_transaction(unit, buf, 12, buf, *len, in avc_stream_get_format()
[all …]
Doxfw-spkr.c33 int err; in avc_audio_feature_mute() local
60 err = fcp_avc_transaction(unit, buf, 11, buf, 11, 0x3fe); in avc_audio_feature_mute()
61 if (err < 0) in avc_audio_feature_mute()
63 if (err < 11) { in avc_audio_feature_mute()
65 err = -EIO; in avc_audio_feature_mute()
70 err = -EIO; in avc_audio_feature_mute()
76 err = 0; in avc_audio_feature_mute()
81 return err; in avc_audio_feature_mute()
91 int err; in avc_audio_feature_volume() local
121 err = fcp_avc_transaction(unit, buf, 12, buf, 12, 0x3fe); in avc_audio_feature_volume()
[all …]
/sound/usb/
Dmixer_quirks.c135 int err; in snd_create_std_mono_table() local
138 err = snd_create_std_mono_ctl(mixer, t->unitid, t->control, in snd_create_std_mono_table()
140 if (err < 0) in snd_create_std_mono_table()
141 return err; in snd_create_std_mono_table()
225 int err; in snd_usb_sbrc_hwdep_read() local
230 err = wait_event_interruptible(mixer->rc_waitq, in snd_usb_sbrc_hwdep_read()
232 if (err == 0) { in snd_usb_sbrc_hwdep_read()
234 err = put_user(rc_code, buf); in snd_usb_sbrc_hwdep_read()
236 err = put_user(rc_code, (u32 __user *)buf); in snd_usb_sbrc_hwdep_read()
238 return err < 0 ? err : count; in snd_usb_sbrc_hwdep_read()
[all …]
Dmixer_scarlett.c248 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/soc/tegra/
Dtegra_asoc_utils.c37 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/pci/lx6464es/
Dlx6464es.c108 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/pci/pcxhr/
Dpcxhr_hwdep.c44 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 …]
Dpcxhr_core.c182 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/
Ddice-stream.c40 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 …]
Ddice-pcm.c21 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()
75 int err; in init_hw_info() local
88 err = snd_dice_transaction_read_tx(dice, TX_NUMBER, reg, in init_hw_info()
[all …]
/sound/firewire/fireworks/
Dfireworks_stream.c18 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/
Dvx_core.c124 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/
Dgalaxy.c129 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/
Dhdac_regmap.c159 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/drivers/pcsp/
Dpcsp.c47 int err, div, min_div, order; in snd_pcsp_create() local
88 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, &pcsp_chip, &ops); in snd_pcsp_create()
89 if (err < 0) in snd_pcsp_create()
90 return err; in snd_pcsp_create()
98 int err; in snd_card_pcsp_probe() local
106 err = snd_card_new(dev, index, id, THIS_MODULE, 0, &card); in snd_card_pcsp_probe()
107 if (err < 0) in snd_card_pcsp_probe()
108 return err; in snd_card_pcsp_probe()
110 err = snd_pcsp_create(card); in snd_card_pcsp_probe()
111 if (err < 0) { in snd_card_pcsp_probe()
[all …]
/sound/pci/mixart/
Dmixart_hwdep.c144 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/
Dcs8427.c63 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, &reg, 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/
Dalsa.c20 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 …]

12345678910>>...21