Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 28) sorted by relevance

12

/sound/spi/
Dat73c213.c91 int retval; in snd_at73c213_write_reg() local
102 retval = spi_sync(chip->spi, &msg); in snd_at73c213_write_reg()
104 if (!retval) in snd_at73c213_write_reg()
107 return retval; in snd_at73c213_write_reg()
276 int retval = 0; in snd_at73c213_pcm_trigger() local
291 retval = -EINVAL; in snd_at73c213_pcm_trigger()
297 return retval; in snd_at73c213_pcm_trigger()
330 int retval; in snd_at73c213_pcm_new() local
332 retval = snd_pcm_new(chip->card, chip->card->shortname, in snd_at73c213_pcm_new()
334 if (retval < 0) in snd_at73c213_pcm_new()
[all …]
/sound/core/
Dcompress_offload.c285 int retval; in snd_compr_write() local
311 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write()
313 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write()
315 if (retval > 0) in snd_compr_write()
316 stream->runtime->total_bytes_available += retval; in snd_compr_write()
326 return retval; in snd_compr_write()
336 int retval; in snd_compr_read() local
353 retval = -EBADFD; in snd_compr_read()
356 retval = -EPIPE; in snd_compr_read()
367 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read()
[all …]
/sound/soc/intel/atom/sst/
Dsst_stream.c153 int retval = 0; in sst_start_stream() local
164 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, in sst_start_stream()
168 return retval; in sst_start_stream()
245 int retval = 0; in sst_pause_stream() local
259 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, IPC_CMD, in sst_pause_stream()
263 if (retval == 0) { in sst_pause_stream()
266 } else if (retval == -SST_ERR_INVALID_STREAM_ID) { in sst_pause_stream()
267 retval = -EINVAL; in sst_pause_stream()
273 retval = -EBADRQC; in sst_pause_stream()
277 return retval; in sst_pause_stream()
[all …]
Dsst_drv_interface.c62 int retval; in sst_get_stream_allocated() local
64 retval = ctx->ops->alloc_stream(ctx, str_param); in sst_get_stream_allocated()
65 if (retval > 0) in sst_get_stream_allocated()
66 dev_dbg(ctx->dev, "Stream allocated %d\n", retval); in sst_get_stream_allocated()
67 return retval; in sst_get_stream_allocated()
117 int retval; in sst_get_stream() local
121 retval = ctx->ops->alloc_stream(ctx, str_param); in sst_get_stream()
122 if (retval <= 0) { in sst_get_stream()
126 str_info = &ctx->streams[retval]; in sst_get_stream()
129 return retval; in sst_get_stream()
[all …]
Dsst_pvt.c84 int retval = 0; in sst_wait_interruptible() local
92 retval = -EBUSY; in sst_wait_interruptible()
95 retval = 0; in sst_wait_interruptible()
99 retval = -EINTR; in sst_wait_interruptible()
101 return retval; in sst_wait_interruptible()
116 int retval = 0; in sst_wait_timeout() local
134 retval = -block->ret_code; in sst_wait_timeout()
142 retval = -EBUSY; in sst_wait_timeout()
144 return retval; in sst_wait_timeout()
190 int retval; in sst_create_block_and_ipc_msg() local
[all …]
Dsst_loader.c288 int retval = 0; in sst_cache_and_parse_fw() local
292 retval = -ENOMEM; in sst_cache_and_parse_fw()
298 retval = sst_parse_fw_memcpy(sst, fw->size, &sst->memcpy_list); in sst_cache_and_parse_fw()
299 if (retval) { in sst_cache_and_parse_fw()
307 return retval; in sst_cache_and_parse_fw()
344 int retval = 0; in sst_request_fw() local
347 retval = request_firmware(&fw, sst->firmware_name, sst->dev); in sst_request_fw()
348 if (retval) { in sst_request_fw()
349 dev_err(sst->dev, "request fw failed %d\n", retval); in sst_request_fw()
350 return retval; in sst_request_fw()
[all …]
Dsst_ipc.c121 int retval = 0; in sst_post_message_mrfld() local
132 retval = -EBUSY; in sst_post_message_mrfld()
175 return retval; in sst_post_message_mrfld()
220 int retval = 0; in process_fw_init() local
227 retval = init->result; in process_fw_init()
245 sst_wake_up_block(sst_drv_ctx, retval, FW_DWNL_ID, 0 , NULL, 0); in process_fw_init()
Dsst.c53 irqreturn_t retval = IRQ_HANDLED; in intel_sst_interrupt_mrfld() local
73 retval = IRQ_HANDLED; in intel_sst_interrupt_mrfld()
109 retval = IRQ_WAKE_THREAD; in intel_sst_interrupt_mrfld()
111 return retval; in intel_sst_interrupt_mrfld()
/sound/aoa/soundbus/
Dcore.c63 int retval = 0; in soundbus_uevent() local
76 retval = add_uevent_var(env, "OF_NAME=%pOFn", of->dev.of_node); in soundbus_uevent()
77 if (retval) in soundbus_uevent()
78 return retval; in soundbus_uevent()
80 retval = add_uevent_var(env, "OF_TYPE=%s", of_node_get_device_type(of->dev.of_node)); in soundbus_uevent()
81 if (retval) in soundbus_uevent()
82 return retval; in soundbus_uevent()
91 retval = add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in soundbus_uevent()
92 if (retval) in soundbus_uevent()
93 return retval; in soundbus_uevent()
[all …]
/sound/atmel/
Dac97c.c192 int retval; in atmel_ac97c_playback_prepare() local
253 retval = snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, in atmel_ac97c_playback_prepare()
255 if (retval) in atmel_ac97c_playback_prepare()
265 return retval; in atmel_ac97c_playback_prepare()
274 int retval; in atmel_ac97c_capture_prepare() local
335 retval = snd_ac97_set_rate(chip->ac97, AC97_PCM_LR_ADC_RATE, in atmel_ac97c_capture_prepare()
337 if (retval) in atmel_ac97c_capture_prepare()
347 return retval; in atmel_ac97c_capture_prepare()
468 irqreturn_t retval = IRQ_NONE; in atmel_ac97c_interrupt() local
519 retval = IRQ_HANDLED; in atmel_ac97c_interrupt()
[all …]
/sound/soc/intel/atom/
Dsst-mfld-platform-compress.c100 int retval; in sst_platform_compr_set_params() local
110 retval = sst_fill_stream_params(cstream, ctx, &str_params, true); in sst_platform_compr_set_params()
111 pr_debug("compr_set_params: fill stream params ret_val = 0x%x\n", retval); in sst_platform_compr_set_params()
112 if (retval < 0) in sst_platform_compr_set_params()
113 return retval; in sst_platform_compr_set_params()
159 retval = stream->compr_ops->open(sst->dev, &str_params, &cb); in sst_platform_compr_set_params()
160 if (retval < 0) { in sst_platform_compr_set_params()
161 pr_err("stream allocation failed %d\n", retval); in sst_platform_compr_set_params()
162 return retval; in sst_platform_compr_set_params()
165 stream->id = retval; in sst_platform_compr_set_params()
/sound/usb/line6/
Ddriver.c110 int retval; in line6_send_raw_message() local
113 retval = usb_interrupt_msg(line6->usbdev, in line6_send_raw_message()
118 retval = usb_bulk_msg(line6->usbdev, in line6_send_raw_message()
124 if (retval) { in line6_send_raw_message()
126 "usb_bulk_msg failed (%d)\n", retval); in line6_send_raw_message()
157 int retval; in line6_send_raw_message_async_part() local
177 retval = usb_urb_ep_type_check(urb); in line6_send_raw_message_async_part()
178 if (retval < 0) in line6_send_raw_message_async_part()
181 retval = usb_submit_urb(urb, GFP_ATOMIC); in line6_send_raw_message_async_part()
182 if (retval < 0) in line6_send_raw_message_async_part()
[all …]
Dmidi.c110 int retval; in send_midi_async() local
131 retval = usb_urb_ep_type_check(urb); in send_midi_async()
132 if (retval < 0) in send_midi_async()
135 retval = usb_submit_urb(urb, GFP_ATOMIC); in send_midi_async()
136 if (retval < 0) in send_midi_async()
145 return retval; in send_midi_async()
/sound/x86/
Dintel_hdmi_audio.c1064 int retval; in had_pcm_open() local
1074 retval = snd_pcm_hw_constraint_integer(runtime, in had_pcm_open()
1076 if (retval < 0) in had_pcm_open()
1082 retval = snd_pcm_hw_constraint_step(substream->runtime, 0, in had_pcm_open()
1084 if (retval < 0) in had_pcm_open()
1087 retval = snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); in had_pcm_open()
1088 if (retval < 0) in had_pcm_open()
1097 return retval; in had_pcm_open()
1101 return retval; in had_pcm_open()
1150 int retval = 0; in had_pcm_trigger() local
[all …]
/sound/soc/codecs/
Drt1308-sdw.c531 int retval, port, num_channels, ch_mask; in rt1308_sdw_hw_params() local
567 retval = sdw_stream_add_slave(rt1308->sdw_slave, &stream_config, in rt1308_sdw_hw_params()
569 if (retval) { in rt1308_sdw_hw_params()
571 return retval; in rt1308_sdw_hw_params()
574 return retval; in rt1308_sdw_hw_params()
Drt1316-sdw.c526 int retval, port, num_channels, ch_mask; in rt1316_sdw_hw_params() local
558 retval = sdw_stream_add_slave(rt1316->sdw_slave, &stream_config, in rt1316_sdw_hw_params()
560 if (retval) { in rt1316_sdw_hw_params()
562 return retval; in rt1316_sdw_hw_params()
Drt5682-sdw.c137 int retval, port, num_channels; in rt5682_sdw_hw_params() local
167 retval = sdw_stream_add_slave(rt5682->slave, &stream_config, in rt5682_sdw_hw_params()
169 if (retval) { in rt5682_sdw_hw_params()
171 return retval; in rt5682_sdw_hw_params()
254 return retval; in rt5682_sdw_hw_params()
Drt715-sdca.c814 int retval, port, num_channels; in rt715_sdca_pcm_hw_params() local
852 retval = sdw_stream_add_slave(rt715->slave, &stream_config, in rt715_sdca_pcm_hw_params()
854 if (retval) { in rt715_sdca_pcm_hw_params()
856 retval); in rt715_sdca_pcm_hw_params()
857 return retval; in rt715_sdca_pcm_hw_params()
Drt715.c795 int retval, port, num_channels; in rt715_pcm_hw_params() local
831 retval = sdw_stream_add_slave(rt715->slave, &stream_config, in rt715_pcm_hw_params()
833 if (retval) { in rt715_pcm_hw_params()
835 return retval; in rt715_pcm_hw_params()
887 return retval; in rt715_pcm_hw_params()
Drt700.c911 int retval, port, num_channels; in rt700_pcm_hw_params() local
953 retval = sdw_stream_add_slave(rt700->slave, &stream_config, in rt700_pcm_hw_params()
955 if (retval) { in rt700_pcm_hw_params()
957 return retval; in rt700_pcm_hw_params()
993 return retval; in rt700_pcm_hw_params()
Drt711.c994 int retval, port, num_channels; in rt711_pcm_hw_params() local
1029 retval = sdw_stream_add_slave(rt711->slave, &stream_config, in rt711_pcm_hw_params()
1031 if (retval) { in rt711_pcm_hw_params()
1033 return retval; in rt711_pcm_hw_params()
1070 return retval; in rt711_pcm_hw_params()
/sound/isa/ad1816a/
Dad1816a_lib.c79 unsigned char retval = AD1816A_FMT_LINEAR_8; in snd_ad1816a_get_format() local
83 retval = AD1816A_FMT_ULAW_8; in snd_ad1816a_get_format()
86 retval = AD1816A_FMT_ALAW_8; in snd_ad1816a_get_format()
89 retval = AD1816A_FMT_LINEAR_16_LIT; in snd_ad1816a_get_format()
92 retval = AD1816A_FMT_LINEAR_16_BIG; in snd_ad1816a_get_format()
94 return (channels > 1) ? (retval | AD1816A_FMT_STEREO) : retval; in snd_ad1816a_get_format()
/sound/isa/opti9xx/
Dopti92x-ad1848.c231 unsigned char retval = 0xff; in snd_opti9xx_read() local
243 retval = inb(chip->mc_base + 9); in snd_opti9xx_read()
250 retval = inb(chip->mc_base + reg); in snd_opti9xx_read()
259 retval = inb(chip->mc_indir_index + 1); in snd_opti9xx_read()
268 return retval; in snd_opti9xx_read()
Dmiro.c819 unsigned char retval = 0xff; in snd_miro_read() local
829 retval = inb(chip->mc_base + 9); in snd_miro_read()
835 retval = inb(chip->mc_base + reg); in snd_miro_read()
843 return retval; in snd_miro_read()
/sound/pci/asihpi/
Dhpicmn.c61 u16 retval = 0; in hpi_add_adapter() local
67 retval = HPI_ERROR_BAD_ADAPTER_NUMBER; in hpi_add_adapter()
83 retval = HPI_ERROR_DUPLICATE_ADAPTER_NUMBER; in hpi_add_adapter()
93 return retval; in hpi_add_adapter()

12