/sound/core/seq/oss/ |
D | seq_oss_init.c | 65 int rc; in snd_seq_oss_create_client() local 71 rc = -ENOMEM; in snd_seq_oss_create_client() 76 rc = snd_seq_create_kernel_client(NULL, SNDRV_SEQ_CLIENT_OSS, in snd_seq_oss_create_client() 78 if (rc < 0) in snd_seq_oss_create_client() 81 system_client = rc; in snd_seq_oss_create_client() 108 rc = 0; in snd_seq_oss_create_client() 115 return rc; in snd_seq_oss_create_client() 174 int i, rc; in snd_seq_oss_open() local 193 rc = -ENOMEM; in snd_seq_oss_open() 203 rc = -ENODEV; in snd_seq_oss_open() [all …]
|
D | seq_oss.c | 68 int rc; in alsa_seq_oss_init() local 70 if ((rc = register_device()) < 0) in alsa_seq_oss_init() 72 if ((rc = register_proc()) < 0) { in alsa_seq_oss_init() 76 if ((rc = snd_seq_oss_create_client()) < 0) { in alsa_seq_oss_init() 82 rc = snd_seq_driver_register(&seq_oss_synth_driver); in alsa_seq_oss_init() 83 if (rc < 0) { in alsa_seq_oss_init() 94 return rc; in alsa_seq_oss_init() 117 int level, rc; in odev_open() local 125 rc = snd_seq_oss_open(file, level); in odev_open() 128 return rc; in odev_open() [all …]
|
D | seq_oss_synth.c | 446 int rc; in snd_seq_oss_synth_load_patch() local 458 rc = -ENXIO; in snd_seq_oss_synth_load_patch() 460 rc = rec->oper.load_patch(&info->arg, fmt, buf, p, c); in snd_seq_oss_synth_load_patch() 462 return rc; in snd_seq_oss_synth_load_patch() 567 int rc; in snd_seq_oss_synth_ioctl() local 575 rc = -ENXIO; in snd_seq_oss_synth_ioctl() 577 rc = rec->oper.ioctl(&info->arg, cmd, addr); in snd_seq_oss_synth_ioctl() 579 return rc; in snd_seq_oss_synth_ioctl()
|
D | seq_oss_rw.c | 153 int rc = 0; in insert_queue() local 173 rc = snd_seq_kernel_client_enqueue(dp->cseq, &event, opt, in insert_queue() 175 return rc; in insert_queue()
|
/sound/soc/qcom/qdsp6/ |
D | q6asm.c | 295 int rc; in q6asm_apr_send_session_pkt() local 300 rc = apr_send_pkt(a->adev, pkt); in q6asm_apr_send_session_pkt() 301 if (rc < 0) in q6asm_apr_send_session_pkt() 305 rc = wait_event_timeout(a->mem_wait, in q6asm_apr_send_session_pkt() 310 rc = wait_event_timeout(a->mem_wait, in q6asm_apr_send_session_pkt() 314 if (!rc) { in q6asm_apr_send_session_pkt() 316 rc = -ETIMEDOUT; in q6asm_apr_send_session_pkt() 320 rc = -EINVAL; in q6asm_apr_send_session_pkt() 325 return rc; in q6asm_apr_send_session_pkt() 334 int rc, pkt_size; in __q6asm_memory_unmap() local [all …]
|
D | q6core.c | 155 int rc; in q6core_get_fwk_versions() local 162 rc = apr_send_pkt(adev, &pkt); in q6core_get_fwk_versions() 163 if (rc < 0) in q6core_get_fwk_versions() 164 return rc; in q6core_get_fwk_versions() 166 rc = wait_event_timeout(core->wait, (core->resp_received), in q6core_get_fwk_versions() 168 if (rc > 0 && core->resp_received) { in q6core_get_fwk_versions() 178 return rc; in q6core_get_fwk_versions() 185 int rc; in q6core_get_svc_versions() local 192 rc = apr_send_pkt(adev, &pkt); in q6core_get_svc_versions() 193 if (rc < 0) in q6core_get_svc_versions() [all …]
|
D | q6afe-dai.c | 230 int rc = 0; in q6tdm_set_tdm_slot() local 272 return rc; in q6tdm_set_tdm_slot() 282 int rc = 0; in q6tdm_set_channel_map() local 333 return rc; in q6tdm_set_channel_map() 361 int rc = 0; in q6dma_set_channel_map() local 420 return rc; in q6dma_set_channel_map() 440 int rc; in q6afe_dai_shutdown() local 445 rc = q6afe_port_stop(dai_data->port[dai->id]); in q6afe_dai_shutdown() 446 if (rc < 0) in q6afe_dai_shutdown() 447 dev_err(dai->dev, "fail to close AFE port (%d)\n", rc); in q6afe_dai_shutdown() [all …]
|
/sound/pci/ |
D | sis7019.c | 685 int rc; in sis_capture_hw_params() local 687 rc = snd_ac97_set_rate(sis->ac97[0], AC97_PCM_LR_ADC_RATE, in sis_capture_hw_params() 689 if (rc) in sis_capture_hw_params() 692 rc = sis_alloc_timing_voice(substream, hw_params); in sis_capture_hw_params() 695 return rc; in sis_capture_hw_params() 866 int rc; in sis_pcm_create() local 871 rc = snd_pcm_new(sis->card, "SiS7019", 0, 64, 1, &pcm); in sis_pcm_create() 872 if (rc) in sis_pcm_create() 873 return rc; in sis_pcm_create() 990 int rc; in sis_mixer_create() local [all …]
|
/sound/pci/hda/ |
D | hda_tegra.c | 123 int rc; in hda_tegra_suspend() local 125 rc = pm_runtime_force_suspend(dev); in hda_tegra_suspend() 126 if (rc < 0) in hda_tegra_suspend() 127 return rc; in hda_tegra_suspend() 136 int rc; in hda_tegra_resume() local 138 rc = pm_runtime_force_resume(dev); in hda_tegra_resume() 139 if (rc < 0) in hda_tegra_resume() 140 return rc; in hda_tegra_resume() 170 int rc; in hda_tegra_runtime_resume() local 173 rc = reset_control_assert(hda->reset); in hda_tegra_runtime_resume() [all …]
|
/sound/pci/korg1212/ |
D | korg1212.c | 515 int rc = K1212_CMDRET_Success; in snd_korg1212_Send1212Command() local 537 rc = K1212_CMDRET_Success; in snd_korg1212_Send1212Command() 551 rc = K1212_CMDRET_Success; in snd_korg1212_Send1212Command() 560 rc = K1212_CMDRET_NoAckFromCard; in snd_korg1212_Send1212Command() 563 return rc; in snd_korg1212_Send1212Command() 620 int rc; in snd_korg1212_TurnOnIdleMonitor() local 625 rc = snd_korg1212_Send1212Command(korg1212, K1212_DB_SelectPlayMode, in snd_korg1212_TurnOnIdleMonitor() 628 return rc; in snd_korg1212_TurnOnIdleMonitor() 670 int rc = snd_korg1212_Send1212Command(korg1212, K1212_DB_SelectPlayMode, in snd_korg1212_CloseCard() local 672 if (rc) in snd_korg1212_CloseCard() [all …]
|
/sound/soc/fsl/ |
D | mpc5200_psc_ac97.c | 278 int rc; in psc_ac97_of_probe() local 281 rc = mpc5200_audio_dma_create(op); in psc_ac97_of_probe() 282 if (rc != 0) in psc_ac97_of_probe() 283 return rc; in psc_ac97_of_probe() 285 rc = snd_soc_set_ac97_ops(&psc_ac97_ops); in psc_ac97_of_probe() 286 if (rc != 0) { in psc_ac97_of_probe() 287 dev_err(&op->dev, "Failed to set AC'97 ops: %d\n", rc); in psc_ac97_of_probe() 288 return rc; in psc_ac97_of_probe() 291 rc = snd_soc_register_component(&op->dev, &psc_ac97_component, in psc_ac97_of_probe() 293 if (rc != 0) { in psc_ac97_of_probe() [all …]
|
D | mpc5200_dma.c | 225 int rc; in psc_dma_open() local 236 rc = snd_pcm_hw_constraint_integer(runtime, in psc_dma_open() 238 if (rc < 0) { in psc_dma_open() 240 return rc; in psc_dma_open() 307 int rc; in psc_dma_new() local 312 rc = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32)); in psc_dma_new() 313 if (rc) in psc_dma_new() 314 return rc; in psc_dma_new() 317 rc = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->card->dev, in psc_dma_new() 319 if (rc) in psc_dma_new() [all …]
|
D | mpc5200_psc_i2s.c | 161 int rc; in psc_i2s_of_probe() local 165 rc = mpc5200_audio_dma_create(op); in psc_i2s_of_probe() 166 if (rc != 0) in psc_i2s_of_probe() 167 return rc; in psc_i2s_of_probe() 169 rc = snd_soc_register_component(&op->dev, &psc_i2s_component, in psc_i2s_of_probe() 171 if (rc != 0) { in psc_i2s_of_probe() 173 return rc; in psc_i2s_of_probe()
|
D | efika-audio-fabric.c | 67 int rc; in efika_fabric_init() local 80 rc = platform_device_add(pdev); in efika_fabric_init() 81 if (rc) { in efika_fabric_init()
|
/sound/aoa/core/ |
D | gpio-pmf.c | 17 int rc; \ 20 rc = pmf_call_function(rt->node, #name "-mute", &args); \ 21 if (rc && rc != -ENODEV) \ 23 " failed, rc: %d\n", rc); \ 40 int rc; in pmf_gpio_set_hw_reset() local 43 rc = pmf_call_function(rt->node, "hw-reset", &args); in pmf_gpio_set_hw_reset() 44 if (rc) in pmf_gpio_set_hw_reset() 46 " failed, rc: %d\n", rc); in pmf_gpio_set_hw_reset()
|
/sound/soc/codecs/ |
D | pcm3060.c | 314 int rc; in pcm3060_probe() local 318 rc = regmap_update_bits(priv->regmap, PCM3060_REG64, in pcm3060_probe() 320 if (rc) { in pcm3060_probe() 321 dev_err(dev, "failed to reset component, rc=%d\n", rc); in pcm3060_probe() 322 return rc; in pcm3060_probe() 332 rc = devm_snd_soc_register_component(dev, &pcm3060_soc_comp_driver, in pcm3060_probe() 335 if (rc) { in pcm3060_probe() 336 dev_err(dev, "failed to register component, rc=%d\n", rc); in pcm3060_probe() 337 return rc; in pcm3060_probe()
|
/sound/oss/dmasound/ |
D | dmasound_core.c | 710 int rc = 0; in sq_open2() local 715 rc = -EBUSY; in sq_open2() 717 return rc; in sq_open2() 718 rc = -EINTR; in sq_open2() 720 return rc; in sq_open2() 721 rc = 0; in sq_open2() 736 if (( rc = sq_allocate_buffers(sq, numbufs, bufsize))) { in sq_open2() 742 return rc; in sq_open2() 747 return rc; in sq_open2() 760 int rc; in sq_open() local [all …]
|
/sound/synth/emux/ |
D | soundfont.c | 121 int rc; in snd_soundfont_load() local 150 rc = open_patch(sflist, data, count, client); in snd_soundfont_load() 152 return rc; in snd_soundfont_load() 164 rc = -EINVAL; in snd_soundfont_load() 167 rc = load_info(sflist, data, count); in snd_soundfont_load() 170 rc = load_data(sflist, data, count); in snd_soundfont_load() 173 rc = close_patch(sflist); in snd_soundfont_load() 179 rc = load_map(sflist, data, count); in snd_soundfont_load() 182 rc = probe_data(sflist, patch.optarg); in snd_soundfont_load() 189 rc = -EINVAL; in snd_soundfont_load() [all …]
|
D | emux_oss.c | 195 int rc; in snd_emux_load_patch_seq_oss() local 208 rc = snd_soundfont_load_guspatch(emu->sflist, buf, count, in snd_emux_load_patch_seq_oss() 218 rc = snd_soundfont_load(emu->sflist, buf, count, SF_CLIENT_NO(p->chset.port)); in snd_emux_load_patch_seq_oss() 221 rc = emu->ops.load_fx(emu, patch.type, patch.optarg, buf, count); in snd_emux_load_patch_seq_oss() 223 rc = -EINVAL; in snd_emux_load_patch_seq_oss() 226 rc = 0; in snd_emux_load_patch_seq_oss() 227 return rc; in snd_emux_load_patch_seq_oss()
|
/sound/pci/au88x0/ |
D | au88x0.c | 50 int rc; in vortex_fix_latency() local 51 if (!(rc = pci_write_config_byte(vortex, 0x40, 0xff))) { in vortex_fix_latency() 55 "could not set vortex latency: pci error 0x%x\n", rc); in vortex_fix_latency() 61 int rc; in vortex_fix_agp_bridge() local 70 if (!(rc = pci_read_config_byte(via, 0x42, &value)) in vortex_fix_agp_bridge() 72 || !(rc = pci_write_config_byte(via, 0x42, value | 0x10)))) { in vortex_fix_agp_bridge() 76 "could not set vortex latency: pci error 0x%x\n", rc); in vortex_fix_agp_bridge()
|
/sound/soc/pxa/ |
D | mioa701_wm9713.c | 173 int rc; in mioa701_wm9713_probe() local 179 rc = devm_snd_soc_register_card(&pdev->dev, &mioa701); in mioa701_wm9713_probe() 180 if (!rc) in mioa701_wm9713_probe() 184 return rc; in mioa701_wm9713_probe()
|
/sound/arm/ |
D | pxa2xx-ac97.c | 134 int rc; in pxa2xx_ac97_do_resume() local 136 rc = pxa2xx_ac97_hw_resume(); in pxa2xx_ac97_do_resume() 137 if (rc) in pxa2xx_ac97_do_resume() 138 return rc; in pxa2xx_ac97_do_resume()
|
/sound/soc/bcm/ |
D | cygnus-pcm.c | 833 int rc = 0; in cygnus_soc_platform_register() local 837 rc = devm_request_irq(dev, cygaud->irq_num, cygnus_dma_irq, in cygnus_soc_platform_register() 839 if (rc) { in cygnus_soc_platform_register() 840 dev_err(dev, "%s request_irq error %d\n", __func__, rc); in cygnus_soc_platform_register() 841 return rc; in cygnus_soc_platform_register() 844 rc = devm_snd_soc_register_component(dev, &cygnus_soc_platform, in cygnus_soc_platform_register() 846 if (rc) { in cygnus_soc_platform_register() 848 return rc; in cygnus_soc_platform_register()
|
/sound/ |
D | sound_core.c | 42 int rc; in init_soundcore() local 44 rc = init_oss_soundcore(); in init_soundcore() 45 if (rc) in init_soundcore() 46 return rc; in init_soundcore()
|
/sound/aoa/soundbus/i2sbus/ |
D | core.c | 118 int pindex, rc = -ENXIO; in i2sbus_get_and_fixup_rsrc() local 135 rc = of_address_to_resource(parent, pindex, res); in i2sbus_get_and_fixup_rsrc() 136 if (rc) in i2sbus_get_and_fixup_rsrc() 140 rc = -ENXIO; in i2sbus_get_and_fixup_rsrc() 147 return rc; in i2sbus_get_and_fixup_rsrc()
|