Lines Matching full:rtd
139 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in rt1011_hw_params() local
145 for_each_rtd_codec_dais(rtd, i, codec_dai) { in rt1011_hw_params()
186 static int rt1011_init(struct snd_soc_pcm_runtime *rtd) in rt1011_init() argument
188 struct snd_soc_card *card = rtd->card; in rt1011_init()
198 dev_err(rtd->dev, "fail to add rt1011 widgets, ret %d\n", in rt1011_init()
206 dev_err(rtd->dev, "fail to add rt1011 kcontrols, ret %d\n", in rt1011_init()
214 dev_err(rtd->dev, "fail to add rt1011 routes, ret %d\n", in rt1011_init()
231 dev_err(rtd->dev, "fail to add rt1011 widgets, ret %d\n", in rt1011_init()
239 dev_err(rtd->dev, "fail to add rt1011 controls, ret %d\n", in rt1011_init()
247 dev_err(rtd->dev, "fail to add rt1011 routes, ret %d\n", in rt1011_init()
253 dev_err(rtd->dev, "rt1011: invalid num_codecs %d\n", num_codecs); in rt1011_init()
344 static int rt1015p_init(struct snd_soc_pcm_runtime *rtd) in rt1015p_init() argument
346 struct snd_soc_card *card = rtd->card; in rt1015p_init()
352 dev_err(rtd->dev, "fail to add rt1015p widgets, ret %d\n", ret); in rt1015p_init()
359 dev_err(rtd->dev, "fail to add rt1015p kcontrols, ret %d\n", ret); in rt1015p_init()
366 dev_err(rtd->dev, "Speaker map addition failed: %d\n", ret); in rt1015p_init()
399 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in rt1015_hw_params() local
400 struct snd_soc_dai_link *dai_link = rtd->dai_link; in rt1015_hw_params()
405 clk_freq = sof_dai_get_bclk(rtd); in rt1015_hw_params()
408 dev_err(rtd->dev, "fail to get bclk freq, ret %d\n", clk_freq); in rt1015_hw_params()
412 for_each_rtd_codec_dais(rtd, i, codec_dai) { in rt1015_hw_params()
481 static int speaker_codec_init_lr(struct snd_soc_pcm_runtime *rtd) in speaker_codec_init_lr() argument
483 struct snd_soc_card *card = rtd->card; in speaker_codec_init_lr()
492 dev_err(rtd->dev, "fail to add rt1015 widgets, ret %d\n", in speaker_codec_init_lr()
500 dev_err(rtd->dev, "fail to add rt1015 kcontrols, ret %d\n", in speaker_codec_init_lr()
505 ret = snd_soc_dapm_add_routes(&rtd->card->dapm, speaker_map_lr, in speaker_codec_init_lr()
508 dev_err(rtd->dev, "fail to add rt1015 routes, ret %d\n", in speaker_codec_init_lr()
514 dev_err(rtd->dev, "rt1015: invalid num_codecs %d\n", num_codecs); in speaker_codec_init_lr()
561 static int rt1308_init(struct snd_soc_pcm_runtime *rtd) in rt1308_init() argument
563 struct snd_soc_card *card = rtd->card; in rt1308_init()
569 dev_err(rtd->dev, "fail to add dapm controls, ret %d\n", ret); in rt1308_init()
576 dev_err(rtd->dev, "fail to add card controls, ret %d\n", ret); in rt1308_init()
584 dev_err(rtd->dev, "fail to add dapm routes, ret %d\n", ret); in rt1308_init()
592 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in rt1308_hw_params() local
593 struct snd_soc_card *card = rtd->card; in rt1308_hw_params()
594 struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); in rt1308_hw_params()
600 clk_freq = sof_dai_get_mclk(rtd); in rt1308_hw_params()
650 static int rt1019p_init(struct snd_soc_pcm_runtime *rtd) in rt1019p_init() argument
652 struct snd_soc_card *card = rtd->card; in rt1019p_init()
658 dev_err(rtd->dev, "fail to add rt1019p widgets, ret %d\n", ret); in rt1019p_init()
665 dev_err(rtd->dev, "fail to add rt1019p kcontrols, ret %d\n", ret); in rt1019p_init()
672 dev_err(rtd->dev, "Speaker map addition failed: %d\n", ret); in rt1019p_init()