Lines Matching refs:ret
27 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()
75 if (ret < 0) { in tobermory_set_bias_level_post()
76 pr_err("Failed to switch away from FLL: %d\n", ret); in tobermory_set_bias_level_post()
77 return ret; in tobermory_set_bias_level_post()
80 ret = snd_soc_dai_set_pll(codec_dai, WM8962_FLL, in tobermory_set_bias_level_post()
82 if (ret < 0) { in tobermory_set_bias_level_post()
83 pr_err("Failed to stop FLL: %d\n", ret); in tobermory_set_bias_level_post()
84 return ret; in tobermory_set_bias_level_post()
175 int ret; in tobermory_late_probe() local
177 ret = snd_soc_dai_set_sysclk(codec_dai, WM8962_SYSCLK_MCLK, in tobermory_late_probe()
179 if (ret < 0) in tobermory_late_probe()
180 return ret; in tobermory_late_probe()
182 ret = snd_soc_card_jack_new(card, "Headset", SND_JACK_HEADSET | in tobermory_late_probe()
186 if (ret) in tobermory_late_probe()
187 return ret; in tobermory_late_probe()
217 int ret; in tobermory_probe() local
221 ret = devm_snd_soc_register_card(&pdev->dev, card); in tobermory_probe()
222 if (ret) in tobermory_probe()
224 ret); in tobermory_probe()
226 return ret; in tobermory_probe()