Lines Matching full:rtd
116 static int acp_card_rt5682_init(struct snd_soc_pcm_runtime *rtd) in acp_card_rt5682_init() argument
118 struct snd_soc_card *card = rtd->card; in acp_card_rt5682_init()
120 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_rt5682_init()
124 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp_card_rt5682_init()
135 dev_err(rtd->dev, "unable to add widget dapm controls, ret %d\n", ret); in acp_card_rt5682_init()
142 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); in acp_card_rt5682_init()
165 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); in acp_card_rt5682_init()
169 return snd_soc_dapm_add_routes(&rtd->card->dapm, rt5682_map, ARRAY_SIZE(rt5682_map)); in acp_card_rt5682_init()
175 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in acp_card_hs_startup() local
176 struct snd_soc_card *card = rtd->card; in acp_card_hs_startup()
178 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_hs_startup()
194 dev_err(rtd->card->dev, "Failed to set dai fmt: %d\n", ret); in acp_card_hs_startup()
209 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in acp_card_shutdown() local
210 struct snd_soc_card *card = rtd->card; in acp_card_shutdown()
220 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in acp_card_rt5682_hw_params() local
221 struct snd_soc_card *card = rtd->card; in acp_card_rt5682_hw_params()
223 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_rt5682_hw_params()
224 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in acp_card_rt5682_hw_params()
244 dev_err(rtd->dev, "Failed to set dai fmt: %d\n", ret); in acp_card_rt5682_hw_params()
250 dev_err(rtd->card->dev, "Failed to set dai fmt: %d\n", ret); in acp_card_rt5682_hw_params()
260 dev_err(rtd->dev, "set TDM slot err: %d\n", ret); in acp_card_rt5682_hw_params()
266 dev_warn(rtd->dev, "set TDM slot err:%d\n", ret); in acp_card_rt5682_hw_params()
274 dev_err(rtd->dev, "Failed to set codec PLL: %d\n", ret); in acp_card_rt5682_hw_params()
281 dev_err(rtd->dev, "Failed to set codec SYSCLK: %d\n", ret); in acp_card_rt5682_hw_params()
289 dev_err(rtd->dev, "Failed to set codec PLL: %d\n", ret); in acp_card_rt5682_hw_params()
296 dev_err(rtd->dev, "Failed to set codec SYSCLK: %d\n", ret); in acp_card_rt5682_hw_params()
304 dev_err(rtd->dev, "Failed to set rt5682 tdm bclk ratio: %d\n", ret); in acp_card_rt5682_hw_params()
311 dev_err(rtd->card->dev, "Failed to enable HS clk: %d\n", ret); in acp_card_rt5682_hw_params()
357 static int acp_card_rt5682s_init(struct snd_soc_pcm_runtime *rtd) in acp_card_rt5682s_init() argument
359 struct snd_soc_card *card = rtd->card; in acp_card_rt5682s_init()
361 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_rt5682s_init()
365 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp_card_rt5682s_init()
378 dev_err(rtd->dev, "unable to add widget dapm controls, ret %d\n", ret); in acp_card_rt5682s_init()
385 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); in acp_card_rt5682s_init()
408 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); in acp_card_rt5682s_init()
412 return snd_soc_dapm_add_routes(&rtd->card->dapm, rt5682s_map, ARRAY_SIZE(rt5682s_map)); in acp_card_rt5682s_init()
418 struct snd_soc_pcm_runtime *rtd = substream->private_data; in acp_card_rt5682s_hw_params() local
419 struct snd_soc_card *card = rtd->card; in acp_card_rt5682s_hw_params()
421 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_rt5682s_hw_params()
422 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in acp_card_rt5682s_hw_params()
442 dev_err(rtd->dev, "Failed to set dai fmt: %d\n", ret); in acp_card_rt5682s_hw_params()
448 dev_err(rtd->card->dev, "Failed to set dai fmt: %d\n", ret); in acp_card_rt5682s_hw_params()
458 dev_err(rtd->dev, "set TDM slot err: %d\n", ret); in acp_card_rt5682s_hw_params()
464 dev_warn(rtd->dev, "set TDM slot err:%d\n", ret); in acp_card_rt5682s_hw_params()
472 dev_err(rtd->dev, "Failed to set codec PLL: %d\n", ret); in acp_card_rt5682s_hw_params()
479 dev_err(rtd->dev, "Failed to set codec SYSCLK: %d\n", ret); in acp_card_rt5682s_hw_params()
487 dev_err(rtd->dev, "Failed to set codec PLL: %d\n", ret); in acp_card_rt5682s_hw_params()
494 dev_err(rtd->dev, "Failed to set codec SYSCLK: %d\n", ret); in acp_card_rt5682s_hw_params()
502 dev_err(rtd->dev, "Failed to set rt5682 tdm bclk ratio: %d\n", ret); in acp_card_rt5682s_hw_params()
511 dev_err(rtd->card->dev, "Failed to enable HS clk: %d\n", ret); in acp_card_rt5682s_hw_params()
581 static int acp_card_rt1019_init(struct snd_soc_pcm_runtime *rtd) in acp_card_rt1019_init() argument
583 struct snd_soc_card *card = rtd->card; in acp_card_rt1019_init()
593 dev_err(rtd->dev, "unable to add widget dapm controls, ret %d\n", ret); in acp_card_rt1019_init()
600 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); in acp_card_rt1019_init()
604 return snd_soc_dapm_add_routes(&rtd->card->dapm, rt1019_map_lr, in acp_card_rt1019_init()
611 struct snd_soc_pcm_runtime *rtd = substream->private_data; in acp_card_rt1019_hw_params() local
612 struct snd_soc_card *card = rtd->card; in acp_card_rt1019_hw_params()
615 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in acp_card_rt1019_hw_params()
638 dev_err(rtd->dev, "Failed to set dai fmt: %d\n", ret); in acp_card_rt1019_hw_params()
648 dev_err(rtd->dev, "set TDM slot err: %d\n", ret); in acp_card_rt1019_hw_params()
653 for_each_rtd_codec_dais(rtd, i, codec_dai) { in acp_card_rt1019_hw_params()
676 dev_err(rtd->card->dev, "Failed to set dai fmt: %d\n", ret); in acp_card_rt1019_hw_params()
703 dev_err(rtd->card->dev, "Failed to enable AMP clk: %d\n", ret); in acp_card_rt1019_hw_params()
746 static int acp_card_maxim_init(struct snd_soc_pcm_runtime *rtd) in acp_card_maxim_init() argument
748 struct snd_soc_card *card = rtd->card; in acp_card_maxim_init()
758 dev_err(rtd->dev, "unable to add widget dapm controls, ret %d\n", ret); in acp_card_maxim_init()
765 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); in acp_card_maxim_init()
769 return snd_soc_dapm_add_routes(&rtd->card->dapm, max98360a_map, in acp_card_maxim_init()
776 struct snd_soc_pcm_runtime *rtd = substream->private_data; in acp_card_maxim_hw_params() local
777 struct snd_soc_card *card = rtd->card; in acp_card_maxim_hw_params()
779 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in acp_card_maxim_hw_params()
799 dev_err(rtd->dev, "Failed to set dai fmt: %d\n", ret); in acp_card_maxim_hw_params()
809 dev_err(rtd->dev, "set TDM slot err: %d\n", ret); in acp_card_maxim_hw_params()
817 dev_err(rtd->card->dev, "Failed to enable AMP clk: %d\n", ret); in acp_card_maxim_hw_params()
882 static int acp_card_max98388_init(struct snd_soc_pcm_runtime *rtd) in acp_card_max98388_init() argument
884 struct snd_soc_card *card = rtd->card; in acp_card_max98388_init()
895 dev_err(rtd->dev, "unable to add widget dapm controls, ret %d\n", ret); in acp_card_max98388_init()
903 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); in acp_card_max98388_init()
907 return snd_soc_dapm_add_routes(&rtd->card->dapm, max98388_map, in acp_card_max98388_init()
914 struct snd_soc_pcm_runtime *rtd = substream->private_data; in acp_max98388_hw_params() local
915 struct snd_soc_card *card = rtd->card; in acp_max98388_hw_params()
966 static int acp_card_nau8825_init(struct snd_soc_pcm_runtime *rtd) in acp_card_nau8825_init() argument
968 struct snd_soc_card *card = rtd->card; in acp_card_nau8825_init()
970 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_card_nau8825_init()
974 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp_card_nau8825_init()
982 dev_err(rtd->dev, "unable to add widget dapm controls, ret %d\n", ret); in acp_card_nau8825_init()
989 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); in acp_card_nau8825_init()
1012 dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); in acp_card_nau8825_init()
1016 return snd_soc_dapm_add_routes(&rtd->card->dapm, nau8825_map, ARRAY_SIZE(nau8825_map)); in acp_card_nau8825_init()
1022 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in acp_nau8825_hw_params() local
1023 struct snd_soc_card *card = rtd->card; in acp_nau8825_hw_params()
1025 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_nau8825_hw_params()
1026 struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); in acp_nau8825_hw_params()
1033 dev_err(rtd->dev, "snd_soc_dai_set_sysclk err = %d\n", ret); in acp_nau8825_hw_params()
1038 dev_err(rtd->dev, "can't set FLL: %d\n", ret); in acp_nau8825_hw_params()
1054 dev_err(rtd->dev, "Failed to set dai fmt: %d\n", ret); in acp_nau8825_hw_params()
1060 dev_err(rtd->card->dev, "Failed to set dai fmt: %d\n", ret); in acp_nau8825_hw_params()
1070 dev_err(rtd->dev, "set TDM slot err: %d\n", ret); in acp_nau8825_hw_params()
1076 dev_warn(rtd->dev, "set TDM slot err:%d\n", ret); in acp_nau8825_hw_params()
1181 static int acp_8821_init(struct snd_soc_pcm_runtime *rtd) in acp_8821_init() argument
1183 struct snd_soc_card *card = rtd->card; in acp_8821_init()
1184 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_8821_init()
1188 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp_8821_init()
1193 dev_err(rtd->dev, "unable to add widget dapm controls, ret %d\n", ret); in acp_8821_init()
1201 dev_err(rtd->dev, "unable to add card controls, ret %d\n", ret); in acp_8821_init()
1213 dev_err(rtd->dev, "Headset Jack creation failed %d\n", ret); in acp_8821_init()
1224 return snd_soc_dapm_add_routes(&rtd->card->dapm, nau8821_audio_route, in acp_8821_init()
1246 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in acp_nau8821_hw_params() local
1247 struct snd_soc_card *card = rtd->card; in acp_nau8821_hw_params()
1249 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in acp_nau8821_hw_params()
1260 dev_err(rtd->card->dev, "Failed to set dai fmt: %d\n", ret); in acp_nau8821_hw_params()