/linux-6.3-rc2/sound/soc/intel/boards/ |
A D | sof_maxim_common.c | 50 struct snd_soc_dai *codec_dai; in max_98373_hw_params() local 53 for_each_rtd_codec_dais(rtd, j, codec_dai) { in max_98373_hw_params() 56 snd_soc_dai_set_tdm_slot(codec_dai, 0x03, 3, 8, 32); in max_98373_hw_params() 60 snd_soc_dai_set_tdm_slot(codec_dai, 0x0C, 3, 8, 32); in max_98373_hw_params() 69 struct snd_soc_dai *codec_dai; in max_98373_trigger() local 79 for_each_rtd_codec_dais(rtd, j, codec_dai) { in max_98373_trigger() 85 codec_dai->component->name_prefix); in max_98373_trigger() 228 struct snd_soc_dai *codec_dai; in max_98390_hw_params() local 231 for_each_rtd_codec_dais(rtd, i, codec_dai) { in max_98390_hw_params() 239 snd_soc_dai_set_tdm_slot(codec_dai, 0x01, 3, 4, 32); in max_98390_hw_params() [all …]
|
A D | sof_realtek_common.c | 72 struct snd_soc_dai *codec_dai; in rt1011_hw_params() local 77 for_each_rtd_codec_dais(rtd, i, codec_dai) { in rt1011_hw_params() 82 dev_err(codec_dai->dev, "fail to set pll, ret %d\n", in rt1011_hw_params() 90 dev_err(codec_dai->dev, "fail to set sysclk, ret %d\n", in rt1011_hw_params() 96 dev_err(codec_dai->dev, "invalid codec index %d\n", in rt1011_hw_params() 105 dev_err(codec_dai->dev, "fail to set tdm slot, ret %d\n", in rt1011_hw_params() 269 struct snd_soc_dai *codec_dai; in rt1015_hw_params() local 280 for_each_rtd_codec_dais(rtd, i, codec_dai) { in rt1015_hw_params() 285 dev_err(codec_dai->dev, "fail to set pll, ret %d\n", in rt1015_hw_params() 303 ret = snd_soc_dai_set_tdm_slot(codec_dai, in rt1015_hw_params() [all …]
|
A D | cml_rt1011_rt5682.c | 66 struct snd_soc_dai *codec_dai; member 249 struct snd_soc_dai *codec_dai; in cml_rt1011_hw_params() local 255 for_each_rtd_codec_dais(rtd, i, codec_dai) { in cml_rt1011_hw_params() 265 ret = snd_soc_dai_set_sysclk(codec_dai, in cml_rt1011_hw_params() 285 ret = snd_soc_dai_set_tdm_slot(codec_dai, in cml_rt1011_hw_params() 292 ret = snd_soc_dai_set_tdm_slot(codec_dai, in cml_rt1011_hw_params() 302 ret = snd_soc_dai_set_tdm_slot(codec_dai, in cml_rt1011_hw_params() 319 codec_dai->component->name, ret); in cml_rt1011_hw_params() 345 component = pcm->codec_dai->component; in sof_card_late_probe() 350 component = pcm->codec_dai->component; in sof_card_late_probe() [all …]
|
A D | sof_da7219_max98373.c | 26 struct snd_soc_dai *codec_dai; member 41 struct snd_soc_dai *codec_dai; in platform_clock_control() local 44 codec_dai = snd_soc_card_get_codec_dai(card, DIALOG_CODEC_DAI); in platform_clock_control() 45 if (!codec_dai) { in platform_clock_control() 51 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_MCLK, in platform_clock_control() 153 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in da7219_codec_init() local 154 struct snd_soc_component *component = codec_dai->component; in da7219_codec_init() 203 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x3, 3, 4, 16); in ssp1_hw_params() 211 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xC, 3, 4, 16); in ssp1_hw_params() 248 pcm->codec_dai = dai; in hdmi_init() [all …]
|
A D | sof_cirrus_common.c | 95 struct snd_soc_dai *codec_dai; in cs35l41_hw_params() local 105 for_each_rtd_codec_dais(rtd, i, codec_dai) { in cs35l41_hw_params() 107 ret = snd_soc_dai_set_sysclk(codec_dai, CS35L41_CLKID_SCLK, in cs35l41_hw_params() 110 dev_err(codec_dai->dev, "fail to set sysclk, ret %d\n", in cs35l41_hw_params() 116 ret = snd_soc_component_set_sysclk(codec_dai->component, in cs35l41_hw_params() 120 dev_err(codec_dai->dev, "fail to set component sysclk, ret %d\n", in cs35l41_hw_params() 126 ret = snd_soc_dai_set_channel_map(codec_dai, 0, NULL, in cs35l41_hw_params() 130 dev_err(codec_dai->dev, "fail to set channel map, ret %d\n", in cs35l41_hw_params()
|
A D | kbl_da7219_max98927.c | 42 struct snd_soc_dai *codec_dai; member 68 struct snd_soc_dai *codec_dai; in platform_clock_control() local 72 if (!codec_dai) { in platform_clock_control() 86 ret = snd_soc_dai_set_pll(codec_dai, 0, in platform_clock_control() 191 struct snd_soc_dai *codec_dai; in kabylake_ssp0_hw_params() local 211 ret = snd_soc_dai_set_tdm_slot(codec_dai, in kabylake_ssp0_hw_params() 220 ret = snd_soc_dai_set_tdm_slot(codec_dai, in kabylake_ssp0_hw_params() 236 struct snd_soc_dai *codec_dai; in kabylake_ssp0_trigger() local 253 codec_dai->component->name_prefix); in kabylake_ssp0_trigger() 410 pcm->codec_dai = dai; in kabylake_hdmi_init() [all …]
|
A D | bytcht_da7213.c | 109 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in aif1_hw_params() local 112 ret = snd_soc_dai_set_sysclk(codec_dai, DA7213_CLKSRC_MCLK, in aif1_hw_params() 115 dev_err(codec_dai->dev, "can't set codec sysclk configuration\n"); in aif1_hw_params() 117 ret = snd_soc_dai_set_pll(codec_dai, 0, in aif1_hw_params() 120 dev_err(codec_dai->dev, "failed to start PLL: %d\n", ret); in aif1_hw_params() 130 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in aif1_hw_free() local 133 ret = snd_soc_dai_set_pll(codec_dai, 0, in aif1_hw_free() 136 dev_err(codec_dai->dev, "failed to stop PLL: %d\n", ret); in aif1_hw_free()
|
A D | bytcr_wm5102.c | 52 static int byt_wm5102_prepare_and_enable_pll1(struct snd_soc_dai *codec_dai, int rate) in byt_wm5102_prepare_and_enable_pll1() argument 54 struct snd_soc_component *codec_component = codec_dai->component; in byt_wm5102_prepare_and_enable_pll1() 61 snd_soc_dai_set_pll(codec_dai, WM5102_FLL1_REFCLK, ARIZONA_FLL_SRC_NONE, 0, 0); in byt_wm5102_prepare_and_enable_pll1() 62 snd_soc_dai_set_pll(codec_dai, WM5102_FLL1, ARIZONA_FLL_SRC_NONE, 0, 0); in byt_wm5102_prepare_and_enable_pll1() 65 ret = snd_soc_dai_set_pll(codec_dai, WM5102_FLL1, ARIZONA_CLK_SRC_MCLK1, in byt_wm5102_prepare_and_enable_pll1() 80 ret = snd_soc_dai_set_sysclk(codec_dai, ARIZONA_CLK_SYSCLK, in byt_wm5102_prepare_and_enable_pll1() 95 struct snd_soc_dai *codec_dai; in platform_clock_control() local 99 codec_dai = snd_soc_card_get_codec_dai(card, "wm5102-aif1"); in platform_clock_control() 100 if (!codec_dai) { in platform_clock_control() 111 ret = byt_wm5102_prepare_and_enable_pll1(codec_dai, 48000); in platform_clock_control() [all …]
|
A D | kbl_rt5663_rt5514_max98927.c | 48 struct snd_soc_dai *codec_dai; member 279 pcm->codec_dai = dai; in kabylake_hdmi_init() 411 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in kabylake_rt5663_hw_params() local 415 rt5663_sel_asrc_clk_src(codec_dai->component, in kabylake_rt5663_hw_params() 419 ret = snd_soc_dai_set_sysclk(codec_dai, in kabylake_rt5663_hw_params() 435 struct snd_soc_dai *codec_dai; in kabylake_ssp0_hw_params() local 438 for_each_rtd_codec_dais(rtd, j, codec_dai) { in kabylake_ssp0_hw_params() 440 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xF, 0, 8, 16); in kabylake_ssp0_hw_params() 446 ret = snd_soc_dai_set_sysclk(codec_dai, in kabylake_ssp0_hw_params() 755 component = pcm->codec_dai->component; in kabylake_card_late_probe() [all …]
|
A D | cht_bsw_rt5672.c | 55 struct snd_soc_dai *codec_dai; in platform_clock_control() local 59 codec_dai = snd_soc_card_get_codec_dai(card, CHT_CODEC_DAI); in platform_clock_control() 60 if (!codec_dai) { in platform_clock_control() 76 ret = snd_soc_dai_set_pll(codec_dai, 0, RT5670_PLL1_S_MCLK, in platform_clock_control() 84 ret = snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_PLL1, in platform_clock_control() 96 snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_RCCLK, in platform_clock_control() 159 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in cht_aif1_hw_params() local 163 ret = snd_soc_dai_set_pll(codec_dai, 0, RT5670_PLL1_S_MCLK, in cht_aif1_hw_params() 171 ret = snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_PLL1, in cht_aif1_hw_params() 191 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(runtime, 0); in cht_codec_init() local [all …]
|
/linux-6.3-rc2/sound/soc/samsung/ |
A D | tobermory.c | 22 struct snd_soc_dai *codec_dai; in tobermory_set_bias_level() local 26 codec_dai = asoc_rtd_to_codec(rtd, 0); in tobermory_set_bias_level() 28 if (dapm->dev != codec_dai->dev) in tobermory_set_bias_level() 34 ret = snd_soc_dai_set_pll(codec_dai, WM8962_FLL, in tobermory_set_bias_level() 40 ret = snd_soc_dai_set_sysclk(codec_dai, in tobermory_set_bias_level() 46 snd_soc_dai_set_pll(codec_dai, WM8962_FLL, in tobermory_set_bias_level() 65 struct snd_soc_dai *codec_dai; in tobermory_set_bias_level_post() local 69 codec_dai = asoc_rtd_to_codec(rtd, 0); in tobermory_set_bias_level_post() 71 if (dapm->dev != codec_dai->dev) in tobermory_set_bias_level_post() 180 struct snd_soc_dai *codec_dai; in tobermory_late_probe() local [all …]
|
A D | speyside.c | 24 struct snd_soc_dai *codec_dai; in speyside_set_bias_level() local 28 codec_dai = asoc_rtd_to_codec(rtd, 0); in speyside_set_bias_level() 30 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level() 35 ret = snd_soc_dai_set_sysclk(codec_dai, WM8996_SYSCLK_MCLK2, in speyside_set_bias_level() 40 ret = snd_soc_dai_set_pll(codec_dai, WM8996_FLL_MCLK2, in speyside_set_bias_level() 60 struct snd_soc_dai *codec_dai; in speyside_set_bias_level_post() local 64 codec_dai = asoc_rtd_to_codec(rtd, 0); in speyside_set_bias_level_post() 66 if (dapm->dev != codec_dai->dev) in speyside_set_bias_level_post() 72 ret = snd_soc_dai_set_pll(codec_dai, 0, in speyside_set_bias_level_post() 80 ret = snd_soc_dai_set_sysclk(codec_dai, in speyside_set_bias_level_post()
|
/linux-6.3-rc2/sound/soc/qcom/ |
A D | sdm845.c | 52 struct snd_soc_dai *codec_dai; in sdm845_slim_snd_hw_params() local 59 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sdm845_slim_snd_hw_params() 60 sruntime = snd_soc_dai_get_stream(codec_dai, in sdm845_slim_snd_hw_params() 92 struct snd_soc_dai *codec_dai; in sdm845_tdm_snd_hw_params() local 145 codec_dai, LEFT_SPK_TDM_TX_MASK, in sdm845_tdm_snd_hw_params() 157 codec_dai, RIGHT_SPK_TDM_TX_MASK, in sdm845_tdm_snd_hw_params() 188 codec_dai->component, in sdm845_snd_hw_params() 269 component = codec_dai->component; in sdm845_dai_init() 294 snd_soc_dai_set_sysclk(codec_dai, 0, in sdm845_dai_init() 379 codec_dai, codec_dai_fmt); in sdm845_snd_startup() [all …]
|
A D | sc7280.c | 49 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7280_headset_init() local 51 struct snd_soc_component *component = codec_dai->component; in sc7280_headset_init() 85 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sc7280_headset_init() 104 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7280_hdmi_init() local 105 struct snd_soc_component *component = codec_dai->component; in sc7280_hdmi_init() 127 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7280_rt5682_init() local 138 snd_soc_dai_set_fmt(codec_dai, in sc7280_rt5682_init() 193 struct snd_soc_dai *codec_dai; in sc7280_snd_hw_params() local 209 for_each_rtd_codec_dais(rtd, i, codec_dai) { in sc7280_snd_hw_params() 326 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7280_snd_startup() local [all …]
|
A D | sc7180.c | 49 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7180_headset_init() local 50 struct snd_soc_component *component = codec_dai->component; in sc7180_headset_init() 84 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7180_hdmi_init() local 85 struct snd_soc_component *component = codec_dai->component; in sc7180_hdmi_init() 131 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in sc7180_snd_startup() local 134 if (!strcmp(codec_dai->name, "rt5682-aif1")) { in sc7180_snd_startup() 140 } else if (!strcmp(codec_dai->name, "rt5682s-aif1")) { in sc7180_snd_startup() 157 snd_soc_dai_set_fmt(codec_dai, in sc7180_snd_startup() 163 ret = snd_soc_dai_set_pll(codec_dai, pll_id, pll_source, in sc7180_snd_startup() 171 ret = snd_soc_dai_set_sysclk(codec_dai, clk_id, pll_out, in sc7180_snd_startup() [all …]
|
A D | apq8096.c | 34 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in msm_snd_hw_params() local 40 ret = snd_soc_dai_get_channel_map(codec_dai, in msm_snd_hw_params() 69 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in apq8096_init() local 83 snd_soc_dai_set_channel_map(codec_dai, ARRAY_SIZE(tx_ch), in apq8096_init() 86 snd_soc_dai_set_sysclk(codec_dai, 0, WCD9335_DEFAULT_MCLK_RATE, in apq8096_init()
|
/linux-6.3-rc2/sound/soc/intel/avs/boards/ |
A D | nau8825.c | 27 struct snd_soc_dai *codec_dai; in avs_nau8825_clock_control() local 30 codec_dai = snd_soc_card_get_codec_dai(card, SKL_NUVOTON_CODEC_DAI); in avs_nau8825_clock_control() 31 if (!codec_dai) { in avs_nau8825_clock_control() 142 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtm, 0); in avs_nau8825_trigger() local 149 dev_err(codec_dai->dev, "can't set FS clock %d\n", ret); in avs_nau8825_trigger() 155 dev_err(codec_dai->dev, "can't set FLL: %d\n", ret); in avs_nau8825_trigger() 161 dev_err(codec_dai->dev, "can't set FLL: %d\n", ret); in avs_nau8825_trigger() 254 return snd_soc_component_set_jack(codec_dai->component, NULL, NULL); in avs_card_suspend_pre() 263 if (!codec_dai) { in avs_card_resume_post() 268 if (snd_soc_dai_stream_active(codec_dai, stream) && in avs_card_resume_post() [all …]
|
A D | rt274.c | 31 struct snd_soc_dai *codec_dai; in avs_rt274_clock_control() local 34 codec_dai = snd_soc_card_get_codec_dai(card, RT274_CODEC_DAI); in avs_rt274_clock_control() 35 if (!codec_dai) in avs_rt274_clock_control() 42 dev_err(codec_dai->dev, "set codec sysclk failed: %d\n", ret); in avs_rt274_clock_control() 49 snd_soc_dai_set_bclk_ratio(codec_dai, ratio); in avs_rt274_clock_control() 51 ret = snd_soc_dai_set_pll(codec_dai, 0, RT274_PLL2_S_BCLK, in avs_rt274_clock_control() 54 dev_err(codec_dai->dev, "failed to enable PLL2: %d\n", ret); in avs_rt274_clock_control() 90 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(runtime, 0); in avs_rt274_codec_init() local 91 struct snd_soc_component *component = codec_dai->component; in avs_rt274_codec_init() 111 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xF, 0xF, 4, 24); in avs_rt274_codec_init() [all …]
|
A D | da7219.c | 32 struct snd_soc_dai *codec_dai; in platform_clock_control() local 35 codec_dai = snd_soc_card_get_codec_dai(card, DA7219_DAI_NAME); in platform_clock_control() 36 if (!codec_dai) { in platform_clock_control() 42 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_MCLK, 0, 0); in platform_clock_control() 46 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_PLL_SRM, in platform_clock_control() 75 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(runtime, 0); in avs_da7219_codec_init() local 76 struct snd_soc_component *component = codec_dai->component; in avs_da7219_codec_init() 197 struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, DA7219_DAI_NAME); in avs_card_suspend_pre() local 199 return snd_soc_component_set_jack(codec_dai->component, NULL, NULL); in avs_card_suspend_pre() 204 struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, DA7219_DAI_NAME); in avs_card_resume_post() local [all …]
|
/linux-6.3-rc2/sound/soc/amd/vangogh/ |
A D | acp5x-mach.c | 134 struct snd_soc_dai *codec_dai = in acp5x_nau8821_hw_params() local 139 ret = snd_soc_dai_set_sysclk(codec_dai, NAU8821_CLK_FLL_BLK, 0, in acp5x_nau8821_hw_params() 173 struct snd_soc_dai *codec_dai; in acp5x_cs35l41_hw_params() local 180 codec_dai = asoc_rtd_to_codec(rtd, i); in acp5x_cs35l41_hw_params() 181 if (strcmp(codec_dai->name, "cs35l41-pcm") == 0) { in acp5x_cs35l41_hw_params() 191 ret = snd_soc_component_set_sysclk(codec_dai->component, in acp5x_cs35l41_hw_params() 271 struct snd_soc_dai *codec_dai; in platform_clock_control() local 275 if (!codec_dai) { in platform_clock_control() 281 ret = snd_soc_dai_set_sysclk(codec_dai, NAU8821_CLK_INTERNAL, in platform_clock_control() 291 dev_err(codec_dai->dev, "can't set BLK clock %d\n", ret); in platform_clock_control() [all …]
|
/linux-6.3-rc2/sound/soc/amd/acp/ |
A D | acp-mach-common.c | 95 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in acp_card_rt5682_init() local 96 struct snd_soc_component *component = codec_dai->component; in acp_card_rt5682_init() 137 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in acp_card_hs_startup() local 151 ret = snd_soc_dai_set_fmt(codec_dai, fmt); in acp_card_hs_startup() 207 ret = snd_soc_dai_set_fmt(codec_dai, fmt); in acp_card_rt5682_hw_params() 245 ret = snd_soc_dai_set_bclk_ratio(codec_dai, ch * format); in acp_card_rt5682_hw_params() 351 ret = snd_soc_dai_set_fmt(codec_dai, fmt); in acp_card_rt5682s_hw_params() 471 struct snd_soc_dai *codec_dai; in acp_card_rt1019_hw_params() local 510 for_each_rtd_codec_dais(rtd, i, codec_dai) { in acp_card_rt1019_hw_params() 511 if (strcmp(codec_dai->name, "rt1019-aif")) in acp_card_rt1019_hw_params() [all …]
|
/linux-6.3-rc2/sound/soc/sh/ |
A D | migor.c | 49 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in migor_hw_params() local 53 ret = snd_soc_dai_set_sysclk(codec_dai, WM8978_PLL, 13000000, in migor_hw_params() 58 ret = snd_soc_dai_set_clkdiv(codec_dai, WM8978_OPCLKRATE, rate * 512); in migor_hw_params() 68 dev_dbg(codec_dai->dev, "%s: configure %luHz\n", __func__, codec_freq); in migor_hw_params() 82 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in migor_hw_free() local 88 snd_soc_dai_set_sysclk(codec_dai, WM8978_PLL, 0, in migor_hw_free() 91 dev_dbg(codec_dai->dev, "Unbalanced hw_free!\n"); in migor_hw_free()
|
/linux-6.3-rc2/sound/soc/amd/ |
A D | acp3x-rt5682-max9836.c | 46 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in acp3x_5682_init() local 47 struct snd_soc_component *component = codec_dai->component; in acp3x_5682_init() 49 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); in acp3x_5682_init() 52 ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_I2S in acp3x_5682_init() 70 ret = snd_soc_dai_set_sysclk(codec_dai, RT5682_SCLK_S_PLL2, in acp3x_5682_init() 79 ret = snd_soc_dai_set_bclk_ratio(codec_dai, 64); in acp3x_5682_init() 134 struct snd_soc_dai *codec_dai; in acp3x_1015_hw_params() local 140 for_each_rtd_codec_dais(rtd, i, codec_dai) { in acp3x_1015_hw_params() 141 if (strcmp(codec_dai->name, "rt1015-aif")) in acp3x_1015_hw_params() 144 ret = snd_soc_dai_set_pll(codec_dai, 0, RT1015_PLL_S_BCLK, in acp3x_1015_hw_params() [all …]
|
/linux-6.3-rc2/sound/soc/rockchip/ |
A D | rk3399_gru_sound.c | 87 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in rockchip_sound_rt5514_hw_params() local 100 ret = snd_soc_dai_set_sysclk(codec_dai, RT5514_SCLK_S_MCLK, in rockchip_sound_rt5514_hw_params() 119 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in rockchip_sound_da7219_hw_params() local 146 dev_err(codec_dai->dev, "Can't set cpu clock out %d\n", ret); in rockchip_sound_da7219_hw_params() 150 ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, in rockchip_sound_da7219_hw_params() 153 dev_err(codec_dai->dev, "Can't set codec clock in %d\n", ret); in rockchip_sound_da7219_hw_params() 157 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_MCLK, 0, 0); in rockchip_sound_da7219_hw_params() 159 dev_err(codec_dai->dev, "Can't set pll sysclk mclk %d\n", ret); in rockchip_sound_da7219_hw_params() 188 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in rockchip_sound_da7219_init() local 192 ret = snd_soc_dai_set_sysclk(codec_dai, 0, 12288000, in rockchip_sound_da7219_init() [all …]
|
/linux-6.3-rc2/sound/soc/sof/intel/ |
A D | hda-dai.c | 140 struct snd_soc_dai *codec_dai, in hda_link_dma_cleanup() argument 209 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in hda_link_dma_hw_params() local 241 p_params.link_bps = codec_dai->driver->playback.sig_bits; in hda_link_dma_hw_params() 243 p_params.link_bps = codec_dai->driver->capture.sig_bits; in hda_link_dma_hw_params() 260 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in hda_link_dma_trigger() local 293 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); in hda_link_dma_hw_free() local 458 struct snd_soc_dai *codec_dai; in ipc4_hda_dai_trigger() local 467 codec_dai = asoc_rtd_to_codec(rtd, 0); in ipc4_hda_dai_trigger() 577 struct snd_soc_dai *codec_dai; in hda_dai_suspend() local 581 codec_dai = asoc_rtd_to_codec(rtd, 0); in hda_dai_suspend() [all …]
|