Lines Matching refs:aif_id
155 static int wm8994_set_fmt(struct wm8994_priv *priv, int aif_id, uint fmt) in wm8994_set_fmt() argument
164 switch (aif_id) { in wm8994_set_fmt()
279 static int wm8994_hw_params(struct wm8994_priv *priv, int aif_id, in wm8994_hw_params() argument
291 int id = aif_id - 1; in wm8994_hw_params()
296 switch (aif_id) { in wm8994_hw_params()
502 static int wm8994_set_sysclk(struct wm8994_priv *priv, int aif_id, int clk_id, in wm8994_set_sysclk() argument
508 priv->sysclk[aif_id - 1] = clk_id; in wm8994_set_sysclk()
513 if (aif_id == 2) { in wm8994_set_sysclk()
558 ret |= configure_aif_clock(priv, aif_id); in wm8994_set_sysclk()
687 enum en_audio_interface aif_id) in wm8994_setup_interface() argument
706 if (aif_id == WM8994_AIF1) { in wm8994_setup_interface()
722 } else if (aif_id == WM8994_AIF2) { in wm8994_setup_interface()
759 if (aif_id == WM8994_AIF1) { in wm8994_setup_interface()
774 } else if (aif_id == WM8994_AIF2) { in wm8994_setup_interface()
814 enum en_audio_interface aif_id, int sampling_rate, in _wm8994_init() argument
820 ret = wm8994_setup_interface(priv, aif_id); in _wm8994_init()
826 ret = wm8994_set_sysclk(priv, aif_id, WM8994_SYSCLK_MCLK1, mclk_freq); in _wm8994_init()
832 ret = wm8994_hw_params(priv, aif_id, sampling_rate, bits_per_sample, in _wm8994_init()
836 ret = wm8994_set_fmt(priv, aif_id, SND_SOC_DAIFMT_I2S | in _wm8994_init()