/sound/core/ |
D | compress_offload.c | 279 int retval; in snd_compr_write() local 301 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write() 303 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write() 305 if (retval > 0) in snd_compr_write() 306 stream->runtime->total_bytes_available += retval; in snd_compr_write() 316 return retval; in snd_compr_write() 326 int retval; in snd_compr_read() local 344 retval = -EBADFD; in snd_compr_read() 355 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read() 357 retval = -ENXIO; in snd_compr_read() [all …]
|
/sound/spi/ |
D | at73c213.c | 94 int retval; in snd_at73c213_write_reg() local 105 retval = spi_sync(chip->spi, &msg); in snd_at73c213_write_reg() 107 if (!retval) in snd_at73c213_write_reg() 110 return retval; in snd_at73c213_write_reg() 280 int retval = 0; in snd_at73c213_pcm_trigger() local 295 retval = -EINVAL; in snd_at73c213_pcm_trigger() 301 return retval; in snd_at73c213_pcm_trigger() 336 int retval; in snd_at73c213_pcm_new() local 338 retval = snd_pcm_new(chip->card, chip->card->shortname, in snd_at73c213_pcm_new() 340 if (retval < 0) in snd_at73c213_pcm_new() [all …]
|
/sound/atmel/ |
D | abdac.c | 199 int retval; in atmel_abdac_hw_params() local 201 retval = snd_pcm_lib_malloc_pages(substream, in atmel_abdac_hw_params() 203 if (retval < 0) in atmel_abdac_hw_params() 204 return retval; in atmel_abdac_hw_params() 206 if (retval == 1) in atmel_abdac_hw_params() 210 return retval; in atmel_abdac_hw_params() 224 int retval; in atmel_abdac_prepare() local 226 retval = clk_set_rate(dac->sample_clk, 256 * substream->runtime->rate); in atmel_abdac_prepare() 227 if (retval) in atmel_abdac_prepare() 228 return retval; in atmel_abdac_prepare() [all …]
|
D | ac97c.c | 251 int retval; in atmel_ac97c_playback_hw_params() local 253 retval = snd_pcm_lib_malloc_pages(substream, in atmel_ac97c_playback_hw_params() 255 if (retval < 0) in atmel_ac97c_playback_hw_params() 256 return retval; in atmel_ac97c_playback_hw_params() 260 if (retval == 1) in atmel_ac97c_playback_hw_params() 270 return retval; in atmel_ac97c_playback_hw_params() 277 int retval; in atmel_ac97c_capture_hw_params() local 279 retval = snd_pcm_lib_malloc_pages(substream, in atmel_ac97c_capture_hw_params() 281 if (retval < 0) in atmel_ac97c_capture_hw_params() 282 return retval; in atmel_ac97c_capture_hw_params() [all …]
|
/sound/soc/intel/atom/sst/ |
D | sst_stream.c | 145 int retval = 0; in sst_start_stream() local 156 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, in sst_start_stream() 160 return retval; in sst_start_stream() 236 int retval = 0; in sst_pause_stream() local 250 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, IPC_CMD, in sst_pause_stream() 254 if (retval == 0) { in sst_pause_stream() 257 } else if (retval == SST_ERR_INVALID_STREAM_ID) { in sst_pause_stream() 258 retval = -EINVAL; in sst_pause_stream() 264 retval = -EBADRQC; in sst_pause_stream() 268 return retval; in sst_pause_stream() [all …]
|
D | sst_drv_interface.c | 73 int retval; in sst_get_stream_allocated() local 75 retval = ctx->ops->alloc_stream(ctx, str_param); in sst_get_stream_allocated() 76 if (retval > 0) in sst_get_stream_allocated() 77 dev_dbg(ctx->dev, "Stream allocated %d\n", retval); in sst_get_stream_allocated() 78 return retval; in sst_get_stream_allocated() 128 int retval; in sst_get_stream() local 132 retval = ctx->ops->alloc_stream(ctx, str_param); in sst_get_stream() 133 if (retval <= 0) { in sst_get_stream() 137 str_info = &ctx->streams[retval]; in sst_get_stream() 140 return retval; in sst_get_stream() [all …]
|
D | sst_pvt.c | 93 int retval = 0; in sst_wait_interruptible() local 101 retval = -EBUSY; in sst_wait_interruptible() 104 retval = 0; in sst_wait_interruptible() 108 retval = -EINTR; in sst_wait_interruptible() 110 return retval; in sst_wait_interruptible() 125 int retval = 0; in sst_wait_timeout() local 143 retval = -block->ret_code; in sst_wait_timeout() 151 retval = -EBUSY; in sst_wait_timeout() 153 return retval; in sst_wait_timeout() 199 int retval = 0; in sst_create_block_and_ipc_msg() local [all …]
|
D | sst_loader.c | 297 int retval = 0; in sst_cache_and_parse_fw() local 301 retval = -ENOMEM; in sst_cache_and_parse_fw() 307 retval = sst_parse_fw_memcpy(sst, fw->size, &sst->memcpy_list); in sst_cache_and_parse_fw() 308 if (retval) { in sst_cache_and_parse_fw() 316 return retval; in sst_cache_and_parse_fw() 353 int retval = 0; in sst_request_fw() local 356 retval = request_firmware(&fw, sst->firmware_name, sst->dev); in sst_request_fw() 357 if (retval) { in sst_request_fw() 358 dev_err(sst->dev, "request fw failed %d\n", retval); in sst_request_fw() 359 return retval; in sst_request_fw() [all …]
|
D | sst_ipc.c | 130 int retval = 0; in sst_post_message_mrfld() local 141 retval = -EBUSY; in sst_post_message_mrfld() 184 return retval; in sst_post_message_mrfld() 229 int retval = 0; in process_fw_init() local 236 retval = init->result; in process_fw_init() 241 sst_wake_up_block(sst_drv_ctx, retval, FW_DWNL_ID, 0 , NULL, 0); in process_fw_init()
|
D | sst.c | 60 irqreturn_t retval = IRQ_HANDLED; in intel_sst_interrupt_mrfld() local 80 retval = IRQ_HANDLED; in intel_sst_interrupt_mrfld() 116 retval = IRQ_WAKE_THREAD; in intel_sst_interrupt_mrfld() 118 return retval; in intel_sst_interrupt_mrfld()
|
/sound/aoa/soundbus/ |
D | core.c | 64 int retval = 0; in soundbus_uevent() local 77 retval = add_uevent_var(env, "OF_NAME=%s", of->dev.of_node->name); in soundbus_uevent() 78 if (retval) in soundbus_uevent() 79 return retval; in soundbus_uevent() 81 retval = add_uevent_var(env, "OF_TYPE=%s", of->dev.of_node->type); in soundbus_uevent() 82 if (retval) in soundbus_uevent() 83 return retval; in soundbus_uevent() 92 retval = add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in soundbus_uevent() 93 if (retval) in soundbus_uevent() 94 return retval; in soundbus_uevent() [all …]
|
/sound/soc/intel/atom/ |
D | sst-mfld-platform-compress.c | 106 int retval; in sst_platform_compr_set_params() local 118 retval = sst_fill_stream_params(cstream, ctx, &str_params, true); in sst_platform_compr_set_params() 119 pr_debug("compr_set_params: fill stream params ret_val = 0x%x\n", retval); in sst_platform_compr_set_params() 120 if (retval < 0) in sst_platform_compr_set_params() 121 return retval; in sst_platform_compr_set_params() 167 retval = stream->compr_ops->open(sst->dev, &str_params, &cb); in sst_platform_compr_set_params() 168 if (retval < 0) { in sst_platform_compr_set_params() 169 pr_err("stream allocation failed %d\n", retval); in sst_platform_compr_set_params() 170 return retval; in sst_platform_compr_set_params() 173 stream->id = retval; in sst_platform_compr_set_params()
|
D | sst-mfld-platform-pcm.c | 681 int retval = 0; in sst_pcm_new() local 685 retval = snd_pcm_lib_preallocate_pages_for_all(pcm, in sst_pcm_new() 689 if (retval) { in sst_pcm_new() 691 return retval; in sst_pcm_new() 694 return retval; in sst_pcm_new()
|
/sound/usb/line6/ |
D | driver.c | 98 int retval; in line6_send_raw_message() local 100 retval = usb_interrupt_msg(line6->usbdev, in line6_send_raw_message() 106 if (retval) { in line6_send_raw_message() 108 "usb_interrupt_msg failed (%d)\n", retval); in line6_send_raw_message() 138 int retval; in line6_send_raw_message_async_part() local 149 retval = usb_submit_urb(urb, GFP_ATOMIC); in line6_send_raw_message_async_part() 151 if (retval < 0) { in line6_send_raw_message_async_part() 153 __func__, retval); in line6_send_raw_message_async_part() 156 return retval; in line6_send_raw_message_async_part() 212 int retval; in line6_version_request_async() local [all …]
|
D | midi.c | 112 int retval; in send_midi_async() local 133 retval = usb_submit_urb(urb, GFP_ATOMIC); in send_midi_async() 135 if (retval < 0) { in send_midi_async() 138 return retval; in send_midi_async()
|
/sound/oss/ |
D | soundcard.c | 205 int retval; in sound_open() local 218 retval = -ENXIO; in sound_open() 225 retval = 0; in sound_open() 230 retval = sequencer_open(dev, file); in sound_open() 234 retval = MIDIbuf_open(dev, file); in sound_open() 240 retval = audio_open(dev, file); in sound_open() 245 retval = -ENXIO; in sound_open() 249 return retval; in sound_open()
|
D | sb_mixer.c | 359 int retval; in sb_mixer_set() local 377 retval = smw_mixer_set(devc, dev, left, right); in sb_mixer_set() 380 retval = ess_mixer_set(devc, dev, left, right); in sb_mixer_set() 383 retval = sb_common_mixer_set(devc, dev, left, right); in sb_mixer_set() 385 if (retval >= 0) devc->levels[dev] = retval; in sb_mixer_set() 387 return retval; in sb_mixer_set()
|
D | sb_ess.c | 319 int retval; in ess_calc_div() local 323 retval = revert - divider; in ess_calc_div() 324 if (retval > revert - 1) { in ess_calc_div() 325 retval = revert - 1; in ess_calc_div() 326 divider = revert - retval; in ess_calc_div() 337 return retval; in ess_calc_div() 346 int retval; in ess_calc_best_speed() local 354 retval = 1; in ess_calc_best_speed() 359 retval = 2; in ess_calc_best_speed() 362 return retval; in ess_calc_best_speed()
|
D | dmabuf.c | 282 int retval; in DMAbuf_open() local 292 if ((retval = adev->d->open(dev, mode)) < 0) in DMAbuf_open() 293 return retval; in DMAbuf_open() 300 if ((retval = open_dmap(adev, mode, dmap_out)) < 0) { in DMAbuf_open() 302 return retval; in DMAbuf_open() 308 if ((retval = open_dmap(adev, mode, dmap_in)) < 0) { in DMAbuf_open() 312 return retval; in DMAbuf_open()
|
/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 90 unsigned char retval = AD1816A_FMT_LINEAR_8; in snd_ad1816a_get_format() local 94 retval = AD1816A_FMT_ULAW_8; in snd_ad1816a_get_format() 97 retval = AD1816A_FMT_ALAW_8; in snd_ad1816a_get_format() 100 retval = AD1816A_FMT_LINEAR_16_LIT; in snd_ad1816a_get_format() 103 retval = AD1816A_FMT_LINEAR_16_BIG; in snd_ad1816a_get_format() 105 return (channels > 1) ? (retval | AD1816A_FMT_STEREO) : retval; in snd_ad1816a_get_format()
|
/sound/soc/intel/skylake/ |
D | skl-pcm.c | 895 int retval = 0; in skl_pcm_new() local 904 retval = snd_pcm_lib_preallocate_pages_for_all(pcm, in skl_pcm_new() 908 if (retval) { in skl_pcm_new() 910 return retval; in skl_pcm_new() 914 return retval; in skl_pcm_new()
|
/sound/isa/opti9xx/ |
D | opti92x-ad1848.c | 249 unsigned char retval = 0xff; in snd_opti9xx_read() local 261 retval = inb(chip->mc_base + 9); in snd_opti9xx_read() 267 retval = inb(chip->mc_base + reg); in snd_opti9xx_read() 276 retval = inb(chip->mc_indir_index + 1); in snd_opti9xx_read() 285 return retval; in snd_opti9xx_read()
|
D | miro.c | 824 unsigned char retval = 0xff; in snd_miro_read() local 834 retval = inb(chip->mc_base + 9); in snd_miro_read() 839 retval = inb(chip->mc_base + reg); in snd_miro_read() 847 return retval; in snd_miro_read()
|
/sound/pci/asihpi/ |
D | hpicmn.c | 70 u16 retval = 0; in hpi_add_adapter() local 76 retval = HPI_ERROR_BAD_ADAPTER_NUMBER; in hpi_add_adapter() 92 retval = HPI_ERROR_DUPLICATE_ADAPTER_NUMBER; in hpi_add_adapter() 102 return retval; in hpi_add_adapter()
|
/sound/isa/ |
D | sscape.c | 714 int retval = 0; in detect_sscape() local 794 retval = 1; in detect_sscape() 798 return retval; in detect_sscape()
|