Lines Matching refs:aif_id
159 int wm8994_set_fmt(int aif_id, unsigned int fmt) in wm8994_set_fmt() argument
168 switch (aif_id) { in wm8994_set_fmt()
282 static int wm8994_hw_params(struct wm8994_priv *wm8994, int aif_id, in wm8994_hw_params() argument
294 int id = aif_id - 1; in wm8994_hw_params()
299 switch (aif_id) { in wm8994_hw_params()
506 static int wm8994_set_sysclk(struct wm8994_priv *wm8994, int aif_id, in wm8994_set_sysclk() argument
512 wm8994->sysclk[aif_id - 1] = clk_id; in wm8994_set_sysclk()
517 if (aif_id == 2) { in wm8994_set_sysclk()
561 ret |= configure_aif_clock(wm8994, aif_id); in wm8994_set_sysclk()
654 enum en_audio_interface aif_id) in wm8994_device_init() argument
701 if (aif_id == WM8994_AIF1) { in wm8994_device_init()
717 } else if (aif_id == WM8994_AIF2) { in wm8994_device_init()
752 if (aif_id == WM8994_AIF1) { in wm8994_device_init()
766 } else if (aif_id == WM8994_AIF2) { in wm8994_device_init()
867 int wm8994_init(const void *blob, enum en_audio_interface aif_id, in wm8994_init() argument
892 ret = wm8994_device_init(&g_wm8994_info, aif_id); in wm8994_init()
898 ret = wm8994_set_sysclk(&g_wm8994_info, aif_id, WM8994_SYSCLK_MCLK1, in wm8994_init()
905 ret = wm8994_hw_params(&g_wm8994_info, aif_id, sampling_rate, in wm8994_init()
909 ret = wm8994_set_fmt(aif_id, SND_SOC_DAIFMT_I2S | in wm8994_init()