Lines Matching refs:rtd
71 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in rt1011_hw_params() local
77 for_each_rtd_codec_dais(rtd, i, codec_dai) { in rt1011_hw_params()
118 static int rt1011_init(struct snd_soc_pcm_runtime *rtd) in rt1011_init() argument
120 struct snd_soc_card *card = rtd->card; in rt1011_init()
126 dev_err(rtd->dev, "Speaker map addition failed: %d\n", ret); in rt1011_init()
217 static int rt1015p_init(struct snd_soc_pcm_runtime *rtd) in rt1015p_init() argument
219 struct snd_soc_card *card = rtd->card; in rt1015p_init()
229 dev_err(rtd->dev, "Speaker map addition failed: %d\n", ret); in rt1015p_init()
267 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in rt1015_hw_params() local
268 struct snd_soc_dai_link *dai_link = rtd->dai_link; in rt1015_hw_params()
272 clk_freq = sof_dai_get_bclk(rtd); in rt1015_hw_params()
275 dev_err(rtd->dev, "fail to get bclk freq, ret %d\n", clk_freq); in rt1015_hw_params()
279 for_each_rtd_codec_dais(rtd, i, codec_dai) { in rt1015_hw_params()
348 static int speaker_codec_init_lr(struct snd_soc_pcm_runtime *rtd) in speaker_codec_init_lr() argument
350 return snd_soc_dapm_add_routes(&rtd->card->dapm, speaker_map_lr, in speaker_codec_init_lr()
394 static int rt1308_init(struct snd_soc_pcm_runtime *rtd) in rt1308_init() argument
396 struct snd_soc_card *card = rtd->card; in rt1308_init()
402 dev_err(rtd->dev, "fail to add dapm controls, ret %d\n", ret); in rt1308_init()
409 dev_err(rtd->dev, "fail to add card controls, ret %d\n", ret); in rt1308_init()
417 dev_err(rtd->dev, "fail to add dapm routes, ret %d\n", ret); in rt1308_init()
425 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in rt1308_hw_params() local
426 struct snd_soc_card *card = rtd->card; in rt1308_hw_params()
427 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in rt1308_hw_params()
433 clk_freq = sof_dai_get_mclk(rtd); in rt1308_hw_params()
483 static int rt1019p_init(struct snd_soc_pcm_runtime *rtd) in rt1019p_init() argument
485 struct snd_soc_card *card = rtd->card; in rt1019p_init()
491 dev_err(rtd->dev, "Speaker map addition failed: %d\n", ret); in rt1019p_init()