/sound/soc/samsung/ |
D | tobermory.c | 22 struct snd_soc_dai *codec_dai; in tobermory_set_bias_level() local 26 codec_dai = rtd->codec_dai; 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 = rtd->codec_dai; in tobermory_set_bias_level_post() 71 if (dapm->dev != codec_dai->dev) in tobermory_set_bias_level_post() 76 ret = snd_soc_dai_set_sysclk(codec_dai, WM8962_SYSCLK_MCLK, in tobermory_set_bias_level_post() [all …]
|
D | neo1973_wm8753.c | 29 struct snd_soc_dai *codec_dai = rtd->codec_dai; in neo1973_hifi_hw_params() local 69 ret = snd_soc_dai_set_sysclk(codec_dai, WM8753_MCLK, pll_out, in neo1973_hifi_hw_params() 81 ret = snd_soc_dai_set_clkdiv(codec_dai, WM8753_BCLKDIV, bclk); in neo1973_hifi_hw_params() 92 ret = snd_soc_dai_set_pll(codec_dai, WM8753_PLL1, 0, in neo1973_hifi_hw_params() 103 struct snd_soc_dai *codec_dai = rtd->codec_dai; in neo1973_hifi_hw_free() local 106 return snd_soc_dai_set_pll(codec_dai, WM8753_PLL1, 0, 0, 0); in neo1973_hifi_hw_free() 121 struct snd_soc_dai *codec_dai = rtd->codec_dai; in neo1973_voice_hw_params() local 136 ret = snd_soc_dai_set_sysclk(codec_dai, WM8753_PCMCLK, 12288000, in neo1973_voice_hw_params() 142 ret = snd_soc_dai_set_clkdiv(codec_dai, WM8753_PCMDIV, pcmdiv); in neo1973_voice_hw_params() 147 ret = snd_soc_dai_set_pll(codec_dai, WM8753_PLL2, 0, in neo1973_voice_hw_params() [all …]
|
D | speyside.c | 24 struct snd_soc_dai *codec_dai; in speyside_set_bias_level() local 28 codec_dai = rtd->codec_dai; 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 = rtd->codec_dai; 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() [all …]
|
D | bells.c | 57 struct snd_soc_dai *codec_dai; in bells_set_bias_level() local 63 codec_dai = rtd->codec_dai; in bells_set_bias_level() 64 component = codec_dai->component; in bells_set_bias_level() 66 if (dapm->dev != codec_dai->dev) in bells_set_bias_level() 103 struct snd_soc_dai *codec_dai; in bells_set_bias_level_post() local 109 codec_dai = rtd->codec_dai; in bells_set_bias_level_post() 110 component = codec_dai->component; in bells_set_bias_level_post() 112 if (dapm->dev != codec_dai->dev) in bells_set_bias_level_post() 155 wm0010 = rtd->codec_dai->component; in bells_late_probe() 158 component = rtd->codec_dai->component; in bells_late_probe() [all …]
|
D | littlemill.c | 26 aif1_dai = rtd->codec_dai; in littlemill_set_bias_level() 73 aif1_dai = rtd->codec_dai; in littlemill_set_bias_level_post() 108 struct snd_soc_dai *codec_dai = rtd->codec_dai; in littlemill_hw_params() local 113 ret = snd_soc_dai_set_pll(codec_dai, WM8994_FLL1, in littlemill_hw_params() 121 ret = snd_soc_dai_set_sysclk(codec_dai, in littlemill_hw_params() 267 component = rtd->codec_dai->component; in littlemill_late_probe() 268 aif1_dai = rtd->codec_dai; in littlemill_late_probe()
|
D | smdk_wm8580.c | 26 struct snd_soc_dai *codec_dai = rtd->codec_dai; in smdk_hw_params() local 68 ret = snd_soc_dai_set_clkdiv(codec_dai, WM8580_MCLK, in smdk_hw_params() 73 ret = snd_soc_dai_set_pll(codec_dai, WM8580_PLLA, 0, in smdk_hw_params() 78 ret = snd_soc_dai_set_sysclk(codec_dai, WM8580_CLKSRC_PLLA, in smdk_hw_params()
|
/sound/soc/ |
D | soc-pcm.c | 66 struct snd_soc_dai *codec_dai; in snd_soc_runtime_activate() local 73 for_each_rtd_codec_dai(rtd, i, codec_dai) in snd_soc_runtime_activate() 74 codec_dai->playback_active++; in snd_soc_runtime_activate() 77 for_each_rtd_codec_dai(rtd, i, codec_dai) in snd_soc_runtime_activate() 78 codec_dai->capture_active++; in snd_soc_runtime_activate() 83 for_each_rtd_codec_dai(rtd, i, codec_dai) { in snd_soc_runtime_activate() 84 codec_dai->active++; in snd_soc_runtime_activate() 85 codec_dai->component->active++; in snd_soc_runtime_activate() 102 struct snd_soc_dai *codec_dai; in snd_soc_runtime_deactivate() local 109 for_each_rtd_codec_dai(rtd, i, codec_dai) in snd_soc_runtime_deactivate() [all …]
|
/sound/soc/qcom/ |
D | sdm845.c | 93 struct snd_soc_dai *codec_dai = rtd->codec_dais[j]; in sdm845_tdm_snd_hw_params() local 95 if (!strcmp(codec_dai->component->name_prefix, "Left")) { in sdm845_tdm_snd_hw_params() 97 codec_dai, LEFT_SPK_TDM_TX_MASK, in sdm845_tdm_snd_hw_params() 107 if (!strcmp(codec_dai->component->name_prefix, "Right")) { in sdm845_tdm_snd_hw_params() 109 codec_dai, RIGHT_SPK_TDM_TX_MASK, in sdm845_tdm_snd_hw_params() 129 struct snd_soc_dai *codec_dai = rtd->codec_dai; in sdm845_snd_hw_params() local 140 codec_dai->component, in sdm845_snd_hw_params() 144 codec_dai, RT5663_SCLK_S_MCLK, DEFAULT_MCLK_RATE, in sdm845_snd_hw_params() 172 struct snd_soc_dai *codec_dai = rtd->codec_dai; in sdm845_dai_init() local 203 component = codec_dai->component; in sdm845_dai_init() [all …]
|
D | apq8096.c | 34 struct snd_soc_dai *codec_dai = rtd->codec_dai; 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 = rtd->codec_dai; 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()
|
/sound/soc/sh/ |
D | migor.c | 49 struct snd_soc_dai *codec_dai = rtd->codec_dai; 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 = rtd->codec_dai; 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()
|
/sound/soc/fsl/ |
D | wm1133-ev1.c | 79 struct snd_soc_dai *codec_dai = rtd->codec_dai; in wm1133_ev1_hw_params() local 99 snd_soc_dai_set_pll(codec_dai, 0, 0, 14750000, wm8350_audio[i].sysclk); in wm1133_ev1_hw_params() 114 snd_soc_dai_set_sysclk(codec_dai, WM8350_MCLK_SEL_PLL_MCLK, in wm1133_ev1_hw_params() 118 snd_soc_dai_set_clkdiv(codec_dai, WM8350_BCLK_CLKDIV, in wm1133_ev1_hw_params() 122 snd_soc_dai_set_clkdiv(codec_dai, in wm1133_ev1_hw_params() 124 snd_soc_dai_set_clkdiv(codec_dai, in wm1133_ev1_hw_params() 128 snd_soc_dai_set_clkdiv(codec_dai, in wm1133_ev1_hw_params() 131 snd_soc_dai_set_clkdiv(codec_dai, in wm1133_ev1_hw_params() 199 struct snd_soc_component *component = rtd->codec_dai->component; in wm1133_ev1_init()
|
/sound/soc/intel/boards/ |
D | bytcht_da7213.c | 109 struct snd_soc_dai *codec_dai = rtd->codec_dai; 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 = rtd->codec_dai; 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()
|
D | cht_bsw_rt5672.c | 53 struct snd_soc_dai *codec_dai; in platform_clock_control() local 57 codec_dai = snd_soc_card_get_codec_dai(card, CHT_CODEC_DAI); in platform_clock_control() 58 if (!codec_dai) { in platform_clock_control() 74 ret = snd_soc_dai_set_pll(codec_dai, 0, RT5670_PLL1_S_MCLK, in platform_clock_control() 82 ret = snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_PLL1, in platform_clock_control() 94 snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_RCCLK, in platform_clock_control() 147 struct snd_soc_dai *codec_dai = rtd->codec_dai; in cht_aif1_hw_params() local 151 ret = snd_soc_dai_set_pll(codec_dai, 0, RT5670_PLL1_S_MCLK, in cht_aif1_hw_params() 159 ret = snd_soc_dai_set_sysclk(codec_dai, RT5670_SCLK_S_PLL1, in cht_aif1_hw_params() 179 struct snd_soc_dai *codec_dai = runtime->codec_dai; in cht_codec_init() local [all …]
|
D | skl_nau88l25_max98357a.c | 31 struct snd_soc_dai *codec_dai; member 54 struct snd_soc_dai *codec_dai; in platform_clock_control() local 57 codec_dai = snd_soc_card_get_codec_dai(card, SKL_NUVOTON_CODEC_DAI); in platform_clock_control() 58 if (!codec_dai) { in platform_clock_control() 64 ret = snd_soc_dai_set_sysclk(codec_dai, in platform_clock_control() 71 ret = snd_soc_dai_set_sysclk(codec_dai, in platform_clock_control() 160 struct snd_soc_component *component = rtd->codec_dai->component; in skylake_nau8825_codec_init() 185 struct snd_soc_dai *dai = rtd->codec_dai; in skylake_hdmi1_init() 193 pcm->codec_dai = dai; in skylake_hdmi1_init() 203 struct snd_soc_dai *dai = rtd->codec_dai; in skylake_hdmi2_init() [all …]
|
D | kbl_rt5663_rt5514_max98927.c | 45 struct snd_soc_dai *codec_dai; member 159 struct snd_soc_component *component = rtd->codec_dai->component; in kabylake_rt5663_codec_init() 193 struct snd_soc_dai *dai = rtd->codec_dai; in kabylake_hdmi_init() 201 pcm->codec_dai = dai; in kabylake_hdmi_init() 310 struct snd_soc_dai *codec_dai = rtd->codec_dai; in kabylake_rt5663_hw_params() local 314 rt5663_sel_asrc_clk_src(codec_dai->component, in kabylake_rt5663_hw_params() 318 ret = snd_soc_dai_set_sysclk(codec_dai, in kabylake_rt5663_hw_params() 334 struct snd_soc_dai *codec_dai; in kabylake_ssp0_hw_params() local 337 for_each_rtd_codec_dai(rtd, j, codec_dai) { in kabylake_ssp0_hw_params() 338 if (!strcmp(codec_dai->component->name, RT5514_DEV_NAME)) { in kabylake_ssp0_hw_params() [all …]
|
D | cht_bsw_nau8824.c | 76 struct snd_soc_dai *codec_dai = rtd->codec_dai; in cht_aif1_hw_params() local 79 ret = snd_soc_dai_set_sysclk(codec_dai, NAU8824_CLK_FLL_FS, 0, in cht_aif1_hw_params() 82 dev_err(codec_dai->dev, "can't set FS clock %d\n", ret); in cht_aif1_hw_params() 85 ret = snd_soc_dai_set_pll(codec_dai, 0, 0, params_rate(params), in cht_aif1_hw_params() 88 dev_err(codec_dai->dev, "can't set FLL: %d\n", ret); in cht_aif1_hw_params() 99 struct snd_soc_dai *codec_dai = runtime->codec_dai; in cht_codec_init() local 100 struct snd_soc_component *component = codec_dai->component; in cht_codec_init() 104 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xf, 0x1, 4, 24); in cht_codec_init()
|
D | skl_nau88l25_ssm4567.c | 35 struct snd_soc_dai *codec_dai; member 64 struct snd_soc_dai *codec_dai; in platform_clock_control() local 67 codec_dai = snd_soc_card_get_codec_dai(card, SKL_NUVOTON_CODEC_DAI); in platform_clock_control() 68 if (!codec_dai) { in platform_clock_control() 74 ret = snd_soc_dai_set_sysclk(codec_dai, in platform_clock_control() 81 ret = snd_soc_dai_set_sysclk(codec_dai, in platform_clock_control() 179 struct snd_soc_component *component = rtd->codec_dai->component; in skylake_nau8825_codec_init() 204 struct snd_soc_dai *dai = rtd->codec_dai; in skylake_hdmi1_init() 212 pcm->codec_dai = dai; in skylake_hdmi1_init() 222 struct snd_soc_dai *dai = rtd->codec_dai; in skylake_hdmi2_init() [all …]
|
D | kbl_da7219_max98927.c | 43 struct snd_soc_dai *codec_dai; member 69 struct snd_soc_dai *codec_dai; in platform_clock_control() local 72 codec_dai = snd_soc_card_get_codec_dai(card, KBL_DIALOG_CODEC_DAI); in platform_clock_control() 73 if (!codec_dai) { in platform_clock_control() 79 ret = snd_soc_dai_set_sysclk(codec_dai, DA7219_CLKSRC_MCLK, 24576000, in platform_clock_control() 87 ret = snd_soc_dai_set_pll(codec_dai, 0, in platform_clock_control() 92 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_PLL_SRM, in platform_clock_control() 182 struct snd_soc_dai *codec_dai = runtime->codec_dais[j]; in kabylake_ssp0_hw_params() local 184 if (!strcmp(codec_dai->component->name, MAX98927_DEV0_NAME)) { in kabylake_ssp0_hw_params() 185 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x30, 3, 8, 16); in kabylake_ssp0_hw_params() [all …]
|
D | byt-rt5640.c | 76 struct snd_soc_dai *codec_dai = rtd->codec_dai; in byt_rt5640_hw_params() local 79 ret = snd_soc_dai_set_sysclk(codec_dai, RT5640_SCLK_S_PLL1, in byt_rt5640_hw_params() 83 dev_err(codec_dai->dev, "can't set codec clock %d\n", ret); in byt_rt5640_hw_params() 86 ret = snd_soc_dai_set_pll(codec_dai, 0, RT5640_PLL1_S_BCLK1, in byt_rt5640_hw_params() 90 dev_err(codec_dai->dev, "can't set codec pll: %d\n", ret); in byt_rt5640_hw_params() 126 struct snd_soc_component *component = runtime->codec_dai->component; in byt_rt5640_init()
|
D | kbl_da7219_max98357a.c | 35 struct snd_soc_dai *codec_dai; member 58 struct snd_soc_dai *codec_dai; in platform_clock_control() local 61 codec_dai = snd_soc_card_get_codec_dai(card, KBL_DIALOG_CODEC_DAI); in platform_clock_control() 62 if (!codec_dai) { in platform_clock_control() 68 ret = snd_soc_dai_set_pll(codec_dai, 0, in platform_clock_control() 73 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_PLL_SRM, in platform_clock_control() 162 struct snd_soc_component *component = rtd->codec_dai->component; in kabylake_da7219_codec_init() 163 struct snd_soc_dai *codec_dai = rtd->codec_dai; in kabylake_da7219_codec_init() local 168 ret = snd_soc_dai_set_sysclk(codec_dai, DA7219_CLKSRC_MCLK, 24576000, in kabylake_da7219_codec_init() 206 struct snd_soc_dai *dai = rtd->codec_dai; in kabylake_hdmi_init() [all …]
|
D | cht_bsw_rt5645.c | 72 struct snd_soc_dai *codec_dai; in platform_clock_control() local 76 codec_dai = snd_soc_card_get_codec_dai(card, CHT_CODEC_DAI1); in platform_clock_control() 77 if (!codec_dai) in platform_clock_control() 78 codec_dai = snd_soc_card_get_codec_dai(card, CHT_CODEC_DAI2); in platform_clock_control() 80 if (!codec_dai) { in platform_clock_control() 98 ret = snd_soc_dai_set_sysclk(codec_dai, RT5645_SCLK_S_RCCLK, in platform_clock_control() 211 struct snd_soc_dai *codec_dai = rtd->codec_dai; in cht_aif1_hw_params() local 215 ret = snd_soc_dai_set_pll(codec_dai, 0, RT5645_PLL1_S_MCLK, in cht_aif1_hw_params() 222 ret = snd_soc_dai_set_sysclk(codec_dai, RT5645_SCLK_S_PLL1, in cht_aif1_hw_params() 255 struct snd_soc_component *component = runtime->codec_dai->component; in cht_codec_init() [all …]
|
D | glk_rt5682_max98357a.c | 37 struct snd_soc_dai *codec_dai; member 137 struct snd_soc_component *component = rtd->codec_dai->component; in geminilake_rt5682_codec_init() 138 struct snd_soc_dai *codec_dai = rtd->codec_dai; in geminilake_rt5682_codec_init() local 142 ret = snd_soc_dai_set_pll(codec_dai, 0, RT5682_PLL1_S_MCLK, in geminilake_rt5682_codec_init() 150 ret = snd_soc_dai_set_sysclk(codec_dai, RT5682_SCLK_S_PLL1, in geminilake_rt5682_codec_init() 189 struct snd_soc_dai *codec_dai = rtd->codec_dai; in geminilake_rt5682_hw_params() local 193 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x0, 0x0, 2, 24); in geminilake_rt5682_hw_params() 209 struct snd_soc_dai *dai = rtd->codec_dai; in geminilake_hdmi_init() 217 pcm->codec_dai = dai; in geminilake_hdmi_init() 549 component = pcm->codec_dai->component; in glk_card_late_probe() [all …]
|
D | kbl_rt5660.c | 37 struct snd_soc_dai *codec_dai; member 160 struct snd_soc_component *component = rtd->codec_dai->component; in kabylake_rt5660_codec_init() 213 struct snd_soc_dai *dai = rtd->codec_dai; in kabylake_hdmi_init() 221 pcm->codec_dai = dai; in kabylake_hdmi_init() 247 struct snd_soc_dai *codec_dai = rtd->codec_dai; in kabylake_rt5660_hw_params() local 250 ret = snd_soc_dai_set_sysclk(codec_dai, in kabylake_rt5660_hw_params() 258 ret = snd_soc_dai_set_pll(codec_dai, 0, in kabylake_rt5660_hw_params() 263 dev_err(codec_dai->dev, "can't set codec pll: %d\n", ret); in kabylake_rt5660_hw_params() 471 component = pcm->codec_dai->component; in kabylake_card_late_probe() 481 err = hdac_hdmi_jack_init(pcm->codec_dai, pcm->device, in kabylake_card_late_probe()
|
D | bxt_da7219_max98357a.c | 35 struct snd_soc_dai *codec_dai; member 60 struct snd_soc_dai *codec_dai; in platform_clock_control() local 62 codec_dai = snd_soc_card_get_codec_dai(card, BXT_DIALOG_CODEC_DAI); in platform_clock_control() 63 if (!codec_dai) { in platform_clock_control() 69 ret = snd_soc_dai_set_pll(codec_dai, 0, in platform_clock_control() 74 ret = snd_soc_dai_set_pll(codec_dai, 0, in platform_clock_control() 180 struct snd_soc_dai *codec_dai = rtd->codec_dai; in broxton_da7219_codec_init() local 181 struct snd_soc_component *component = rtd->codec_dai->component; in broxton_da7219_codec_init() 190 ret = snd_soc_dai_set_sysclk(codec_dai, DA7219_CLKSRC_MCLK, clk_freq, in broxton_da7219_codec_init() 227 struct snd_soc_dai *dai = rtd->codec_dai; in broxton_hdmi_init() [all …]
|
/sound/soc/rockchip/ |
D | rk3399_gru_sound.c | 75 struct snd_soc_dai *codec_dai = rtd->codec_dai; in rockchip_sound_rt5514_hw_params() local 88 ret = snd_soc_dai_set_sysclk(codec_dai, RT5514_SCLK_S_MCLK, in rockchip_sound_rt5514_hw_params() 107 struct snd_soc_dai *codec_dai = rtd->codec_dai; in rockchip_sound_da7219_hw_params() local 134 dev_err(codec_dai->dev, "Can't set cpu clock out %d\n", ret); in rockchip_sound_da7219_hw_params() 138 ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, in rockchip_sound_da7219_hw_params() 141 dev_err(codec_dai->dev, "Can't set codec clock in %d\n", ret); in rockchip_sound_da7219_hw_params() 145 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_MCLK, 0, 0); in rockchip_sound_da7219_hw_params() 147 dev_err(codec_dai->dev, "Can't set pll sysclk mclk %d\n", ret); in rockchip_sound_da7219_hw_params() 157 struct snd_soc_dai *codec_dai = rtd->codec_dai; in rockchip_sound_da7219_init() local 161 ret = snd_soc_dai_set_sysclk(codec_dai, 0, 12288000, in rockchip_sound_da7219_init() [all …]
|