Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 510) sorted by relevance

12345678910>>...21

/sound/soc/samsung/
Dlittlemill.c27 int ret; in littlemill_set_bias_level() local
39 ret = snd_soc_dai_set_pll(aif1_dai, WM8994_FLL1, in littlemill_set_bias_level()
42 if (ret < 0) { in littlemill_set_bias_level()
43 pr_err("Failed to start FLL: %d\n", ret); in littlemill_set_bias_level()
44 return ret; in littlemill_set_bias_level()
47 ret = snd_soc_dai_set_sysclk(aif1_dai, in littlemill_set_bias_level()
51 if (ret < 0) { in littlemill_set_bias_level()
52 pr_err("Failed to set SYSCLK: %d\n", ret); in littlemill_set_bias_level()
53 return ret; in littlemill_set_bias_level()
70 int ret; in littlemill_set_bias_level_post() local
[all …]
Dbells.c64 int ret; in bells_set_bias_level() local
74 ret = snd_soc_codec_set_pll(codec, WM5102_FLL1, in bells_set_bias_level()
78 if (ret < 0) in bells_set_bias_level()
79 pr_err("Failed to start FLL: %d\n", ret); in bells_set_bias_level()
82 ret = snd_soc_codec_set_pll(codec, WM5102_FLL2, in bells_set_bias_level()
86 if (ret < 0) in bells_set_bias_level()
87 pr_err("Failed to start FLL: %d\n", ret); in bells_set_bias_level()
105 int ret; in bells_set_bias_level_post() local
112 ret = snd_soc_codec_set_pll(codec, WM5102_FLL1, 0, 0, 0); in bells_set_bias_level_post()
113 if (ret < 0) { in bells_set_bias_level_post()
[all …]
Dsmdk_wm8580pcm.c52 int rfs, ret; in smdk_wm8580_pcm_hw_params() local
66 ret = snd_soc_dai_set_sysclk(codec_dai, WM8580_CLKSRC_MCLK, in smdk_wm8580_pcm_hw_params()
68 if (ret < 0) in smdk_wm8580_pcm_hw_params()
69 return ret; in smdk_wm8580_pcm_hw_params()
71 ret = snd_soc_dai_set_clkdiv(codec_dai, WM8580_MCLK, in smdk_wm8580_pcm_hw_params()
73 if (ret < 0) in smdk_wm8580_pcm_hw_params()
74 return ret; in smdk_wm8580_pcm_hw_params()
76 ret = snd_soc_dai_set_sysclk(codec_dai, WM8580_CLKSRC_PLLA, in smdk_wm8580_pcm_hw_params()
78 if (ret < 0) in smdk_wm8580_pcm_hw_params()
79 return ret; in smdk_wm8580_pcm_hw_params()
[all …]
Dtobermory.c27 int ret; in tobermory_set_bias_level() local
35 ret = snd_soc_dai_set_pll(codec_dai, WM8962_FLL, in tobermory_set_bias_level()
38 if (ret < 0) in tobermory_set_bias_level()
39 pr_err("Failed to start FLL: %d\n", ret); in tobermory_set_bias_level()
41 ret = snd_soc_dai_set_sysclk(codec_dai, in tobermory_set_bias_level()
45 if (ret < 0) { in tobermory_set_bias_level()
46 pr_err("Failed to set SYSCLK: %d\n", ret); in tobermory_set_bias_level()
49 return ret; in tobermory_set_bias_level()
66 int ret; in tobermory_set_bias_level_post() local
73 ret = snd_soc_dai_set_sysclk(codec_dai, WM8962_SYSCLK_MCLK, in tobermory_set_bias_level_post()
[all …]
/sound/soc/codecs/
Dpcm512x.c616 int ret; in pcm512x_set_bias_level() local
624 ret = regmap_update_bits(pcm512x->regmap, PCM512x_POWER, in pcm512x_set_bias_level()
626 if (ret != 0) { in pcm512x_set_bias_level()
628 ret); in pcm512x_set_bias_level()
629 return ret; in pcm512x_set_bias_level()
634 ret = regmap_update_bits(pcm512x->regmap, PCM512x_POWER, in pcm512x_set_bias_level()
636 if (ret != 0) { in pcm512x_set_bias_level()
638 ret); in pcm512x_set_bias_level()
639 return ret; in pcm512x_set_bias_level()
852 int ret; in pcm512x_set_dividers() local
[all …]
Dadau1977.c227 int ret; in adau1977_reset() local
236 ret = regmap_write(adau1977->regmap, ADAU1977_REG_POWER, in adau1977_reset()
239 if (ret) in adau1977_reset()
240 return ret; in adau1977_reset()
242 return ret; in adau1977_reset()
304 int ret; in adau1977_hw_params() local
359 ret = regmap_update_bits(adau1977->regmap, in adau1977_hw_params()
364 if (ret < 0) in adau1977_hw_params()
365 return ret; in adau1977_hw_params()
368 ret = regmap_update_bits(adau1977->regmap, ADAU1977_REG_SAI_CTRL0, in adau1977_hw_params()
[all …]
Dtas5086.c180 int ret; in tas5086_reg_write() local
193 ret = i2c_master_send(client, buf, size + 1); in tas5086_reg_write()
194 if (ret == size + 1) in tas5086_reg_write()
196 else if (ret < 0) in tas5086_reg_write()
197 return ret; in tas5086_reg_write()
210 int ret; in tas5086_reg_read() local
228 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in tas5086_reg_read()
229 if (ret < 0) in tas5086_reg_read()
230 return ret; in tas5086_reg_read()
231 else if (ret != ARRAY_SIZE(msgs)) in tas5086_reg_read()
[all …]
Dak4104.c71 int ret; in ak4104_set_dai_fmt() local
92 ret = regmap_update_bits(ak4104->regmap, AK4104_REG_CONTROL1, in ak4104_set_dai_fmt()
95 if (ret < 0) in ak4104_set_dai_fmt()
96 return ret; in ak4104_set_dai_fmt()
107 int ret, val = 0; in ak4104_hw_params() local
148 ret = regmap_write(ak4104->regmap, AK4104_REG_CHN_STATUS(3), val); in ak4104_hw_params()
149 if (ret < 0) in ak4104_hw_params()
150 return ret; in ak4104_hw_params()
177 int ret; in ak4104_probe() local
179 ret = regulator_enable(ak4104->regulator); in ak4104_probe()
[all …]
Dwm8731.c136 int ret = 0; in wm8731_put_deemph() local
147 ret = 1; in wm8731_put_deemph()
151 return ret; in wm8731_put_deemph()
489 int ret; in wm8731_set_bias_level() local
495 ret = clk_prepare_enable(wm8731->mclk); in wm8731_set_bias_level()
496 if (ret) in wm8731_set_bias_level()
497 return ret; in wm8731_set_bias_level()
504 ret = regulator_bulk_enable(ARRAY_SIZE(wm8731->supplies), in wm8731_set_bias_level()
506 if (ret != 0) in wm8731_set_bias_level()
507 return ret; in wm8731_set_bias_level()
[all …]
Dcs4271.c216 int ret; in cs4271_set_dai_fmt() local
234 ret = regmap_update_bits(cs4271->regmap, CS4271_ADCCTL, in cs4271_set_dai_fmt()
236 if (ret < 0) in cs4271_set_dai_fmt()
237 return ret; in cs4271_set_dai_fmt()
241 ret = regmap_update_bits(cs4271->regmap, CS4271_ADCCTL, in cs4271_set_dai_fmt()
243 if (ret < 0) in cs4271_set_dai_fmt()
244 return ret; in cs4271_set_dai_fmt()
251 ret = regmap_update_bits(cs4271->regmap, CS4271_MODE1, in cs4271_set_dai_fmt()
253 if (ret < 0) in cs4271_set_dai_fmt()
254 return ret; in cs4271_set_dai_fmt()
[all …]
/sound/usb/6fire/
Dfirmware.c165 int ret; in usb6fire_fw_ezusb_write() local
167 ret = usb_control_msg(device, usb_sndctrlpipe(device, 0), type, in usb6fire_fw_ezusb_write()
170 if (ret < 0) in usb6fire_fw_ezusb_write()
171 return ret; in usb6fire_fw_ezusb_write()
172 else if (ret != len) in usb6fire_fw_ezusb_write()
180 int ret = usb_control_msg(device, usb_rcvctrlpipe(device, 0), type, in usb6fire_fw_ezusb_read() local
183 if (ret < 0) in usb6fire_fw_ezusb_read()
184 return ret; in usb6fire_fw_ezusb_read()
185 else if (ret != len) in usb6fire_fw_ezusb_read()
194 int ret; in usb6fire_fw_fpga_write() local
[all …]
/sound/soc/intel/skylake/
Dskl-sst-dsp.c39 int ret; in skl_dsp_core_set_reset_state() local
47 ret = sst_dsp_register_poll(ctx, in skl_dsp_core_set_reset_state()
57 ret = -EIO; in skl_dsp_core_set_reset_state()
60 return ret; in skl_dsp_core_set_reset_state()
65 int ret; in skl_dsp_core_unset_reset_state() local
74 ret = sst_dsp_register_poll(ctx, in skl_dsp_core_unset_reset_state()
84 ret = -EIO; in skl_dsp_core_unset_reset_state()
87 return ret; in skl_dsp_core_unset_reset_state()
119 int ret; in skl_dsp_start_core() local
122 ret = skl_dsp_core_unset_reset_state(ctx); in skl_dsp_start_core()
[all …]
Dskl-sst.c52 int ret = 0; in skl_transfer_firmware() local
54 ret = ctx->cl_dev.ops.cl_copy_to_dmabuf(ctx, basefw, base_fw_size); in skl_transfer_firmware()
55 if (ret < 0) in skl_transfer_firmware()
56 return ret; in skl_transfer_firmware()
58 ret = sst_dsp_register_poll(ctx, in skl_transfer_firmware()
67 return ret; in skl_transfer_firmware()
72 int ret = 0, i; in skl_load_base_firmware() local
80 ret = request_firmware(&ctx->fw, "dsp_fw_release.bin", ctx->dev); in skl_load_base_firmware()
81 if (ret < 0) { in skl_load_base_firmware()
82 dev_err(ctx->dev, "Request firmware failed %d\n", ret); in skl_load_base_firmware()
[all …]
/sound/soc/fsl/
Dimx-audmux.c68 ssize_t ret; in audmux_read_file() local
74 ret = clk_prepare_enable(audmux_clk); in audmux_read_file()
75 if (ret) in audmux_read_file()
76 return ret; in audmux_read_file()
89 ret = scnprintf(buf, PAGE_SIZE, "PDCR: %08x\nPTCR: %08x\n", in audmux_read_file()
93 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
97 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
101 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
105 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file()
108 ret += scnprintf(buf + ret, PAGE_SIZE - ret, "\n"); in audmux_read_file()
[all …]
Dimx-wm8962.c77 int ret; in imx_wm8962_set_bias_level() local
90 ret = snd_soc_dai_set_pll(codec_dai, WM8962_FLL, in imx_wm8962_set_bias_level()
93 if (ret < 0) { in imx_wm8962_set_bias_level()
94 dev_err(dev, "failed to start FLL: %d\n", ret); in imx_wm8962_set_bias_level()
95 return ret; in imx_wm8962_set_bias_level()
98 ret = snd_soc_dai_set_sysclk(codec_dai, in imx_wm8962_set_bias_level()
101 if (ret < 0) { in imx_wm8962_set_bias_level()
102 dev_err(dev, "failed to set SYSCLK: %d\n", ret); in imx_wm8962_set_bias_level()
103 return ret; in imx_wm8962_set_bias_level()
110 ret = snd_soc_dai_set_sysclk(codec_dai, in imx_wm8962_set_bias_level()
[all …]
Dfsl-asoc-card.c134 int ret; in fsl_asoc_card_hw_params() local
150 ret = snd_soc_dai_set_sysclk(rtd->cpu_dai, cpu_priv->sysclk_id[tx], in fsl_asoc_card_hw_params()
153 if (ret) { in fsl_asoc_card_hw_params()
155 return ret; in fsl_asoc_card_hw_params()
159 ret = snd_soc_dai_set_tdm_slot(rtd->cpu_dai, 0x3, 0x3, 2, in fsl_asoc_card_hw_params()
161 if (ret) { in fsl_asoc_card_hw_params()
163 return ret; in fsl_asoc_card_hw_params()
229 int ret; in fsl_asoc_card_set_bias_level() local
244 ret = snd_soc_dai_set_pll(codec_dai, codec_priv->pll_id, in fsl_asoc_card_set_bias_level()
247 if (ret) { in fsl_asoc_card_set_bias_level()
[all …]
/sound/soc/qcom/
Dlpass-platform.c63 int ret; in lpass_platform_pcmops_open() local
69 ret = snd_pcm_hw_constraint_integer(runtime, in lpass_platform_pcmops_open()
71 if (ret < 0) { in lpass_platform_pcmops_open()
73 __func__, ret); in lpass_platform_pcmops_open()
94 int ret, rdma_port = pcm_data->i2s_port + v->rdmactl_audif_start; in lpass_platform_pcmops_hw_params() local
159 ret = regmap_write(drvdata->lpaif_map, in lpass_platform_pcmops_hw_params()
161 if (ret) { in lpass_platform_pcmops_hw_params()
163 __func__, ret); in lpass_platform_pcmops_hw_params()
164 return ret; in lpass_platform_pcmops_hw_params()
177 int ret; in lpass_platform_pcmops_hw_free() local
[all …]
Dlpass-cpu.c34 int ret; in lpass_cpu_daiops_set_sysclk() local
39 ret = clk_set_rate(drvdata->mi2s_osr_clk[dai->driver->id], freq); in lpass_cpu_daiops_set_sysclk()
40 if (ret) in lpass_cpu_daiops_set_sysclk()
42 __func__, freq, ret); in lpass_cpu_daiops_set_sysclk()
44 return ret; in lpass_cpu_daiops_set_sysclk()
51 int ret; in lpass_cpu_daiops_startup() local
54 ret = clk_prepare_enable( in lpass_cpu_daiops_startup()
56 if (ret) { in lpass_cpu_daiops_startup()
58 __func__, ret); in lpass_cpu_daiops_startup()
59 return ret; in lpass_cpu_daiops_startup()
[all …]
/sound/soc/generic/
Dsimple-card.c49 int ret; in asoc_simple_card_startup() local
51 ret = clk_prepare_enable(dai_props->cpu_dai.clk); in asoc_simple_card_startup()
52 if (ret) in asoc_simple_card_startup()
53 return ret; in asoc_simple_card_startup()
55 ret = clk_prepare_enable(dai_props->codec_dai.clk); in asoc_simple_card_startup()
56 if (ret) in asoc_simple_card_startup()
59 return ret; in asoc_simple_card_startup()
84 int ret = 0; in asoc_simple_card_hw_params() local
93 ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, in asoc_simple_card_hw_params()
95 if (ret && ret != -ENOTSUPP) in asoc_simple_card_hw_params()
[all …]
/sound/soc/pxa/
Dmagician.c95 int ret = 0; in magician_playback_hw_params() local
183 ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_MSB | in magician_playback_hw_params()
185 if (ret < 0) in magician_playback_hw_params()
186 return ret; in magician_playback_hw_params()
189 ret = snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_DSP_A | in magician_playback_hw_params()
191 if (ret < 0) in magician_playback_hw_params()
192 return ret; in magician_playback_hw_params()
194 ret = snd_soc_dai_set_tdm_slot(cpu_dai, 1, 0, 1, width); in magician_playback_hw_params()
195 if (ret < 0) in magician_playback_hw_params()
196 return ret; in magician_playback_hw_params()
[all …]
/sound/soc/
Dsoc-io.c31 int ret; in snd_soc_component_read() local
34 ret = regmap_read(component->regmap, reg, val); in snd_soc_component_read()
36 ret = component->read(component, reg, val); in snd_soc_component_read()
38 ret = -EIO; in snd_soc_component_read()
40 return ret; in snd_soc_component_read()
69 int ret; in snd_soc_component_update_bits_legacy() local
76 ret = component->read(component, reg, &old); in snd_soc_component_update_bits_legacy()
77 if (ret < 0) in snd_soc_component_update_bits_legacy()
83 ret = component->write(component, reg, new); in snd_soc_component_update_bits_legacy()
87 return ret; in snd_soc_component_update_bits_legacy()
[all …]
/sound/soc/atmel/
Datmel_wm8904.c32 int ret; in atmel_asoc_wm8904_hw_params() local
34 ret = snd_soc_dai_set_pll(codec_dai, WM8904_FLL_MCLK, WM8904_FLL_MCLK, in atmel_asoc_wm8904_hw_params()
36 if (ret < 0) { in atmel_asoc_wm8904_hw_params()
38 return ret; in atmel_asoc_wm8904_hw_params()
46 ret = snd_soc_dai_set_sysclk(codec_dai, WM8904_CLK_FLL, in atmel_asoc_wm8904_hw_params()
48 if (ret < 0) { in atmel_asoc_wm8904_hw_params()
50 return ret; in atmel_asoc_wm8904_hw_params()
86 int ret; in atmel_asoc_wm8904_dt_init() local
93 ret = snd_soc_of_parse_card_name(card, "atmel,model"); in atmel_asoc_wm8904_dt_init()
94 if (ret) { in atmel_asoc_wm8904_dt_init()
[all …]
/sound/soc/rockchip/
Drockchip_spdif.c70 int ret; in rk_spdif_runtime_resume() local
72 ret = clk_prepare_enable(spdif->mclk); in rk_spdif_runtime_resume()
73 if (ret) { in rk_spdif_runtime_resume()
74 dev_err(spdif->dev, "mclk clock enable failed %d\n", ret); in rk_spdif_runtime_resume()
75 return ret; in rk_spdif_runtime_resume()
78 ret = clk_prepare_enable(spdif->hclk); in rk_spdif_runtime_resume()
79 if (ret) { in rk_spdif_runtime_resume()
80 dev_err(spdif->dev, "hclk clock enable failed %d\n", ret); in rk_spdif_runtime_resume()
81 return ret; in rk_spdif_runtime_resume()
94 int ret; in rk_spdif_hw_params() local
[all …]
/sound/soc/intel/baytrail/
Dsst-baytrail-pcm.c78 int ret, playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in sst_byt_pcm_hw_params() local
82 ret = sst_byt_stream_type(byt, pcm_data->stream, in sst_byt_pcm_hw_params()
84 if (ret < 0) { in sst_byt_pcm_hw_params()
85 dev_err(rtd->dev, "failed to set stream format %d\n", ret); in sst_byt_pcm_hw_params()
86 return ret; in sst_byt_pcm_hw_params()
90 ret = sst_byt_stream_set_rate(byt, pcm_data->stream, rate); in sst_byt_pcm_hw_params()
91 if (ret < 0) { in sst_byt_pcm_hw_params()
93 return ret; in sst_byt_pcm_hw_params()
97 ret = sst_byt_stream_set_bits(byt, pcm_data->stream, bits); in sst_byt_pcm_hw_params()
98 if (ret < 0) { in sst_byt_pcm_hw_params()
[all …]
/sound/soc/omap/
Domap3pandora.c51 int ret; in omap3pandora_hw_params() local
54 ret = snd_soc_dai_set_sysclk(codec_dai, 0, 26000000, in omap3pandora_hw_params()
56 if (ret < 0) { in omap3pandora_hw_params()
58 return ret; in omap3pandora_hw_params()
62 ret = snd_soc_dai_set_sysclk(cpu_dai, OMAP_MCBSP_SYSCLK_CLKS_EXT, in omap3pandora_hw_params()
65 if (ret < 0) { in omap3pandora_hw_params()
67 return ret; in omap3pandora_hw_params()
70 ret = snd_soc_dai_set_clkdiv(cpu_dai, OMAP_MCBSP_CLKGDV, 8); in omap3pandora_hw_params()
71 if (ret < 0) { in omap3pandora_hw_params()
73 return ret; in omap3pandora_hw_params()
[all …]

12345678910>>...21