static int wm5110_set_fll(struct snd_soc_codec *codec, int fll_id, int source, unsigned int Fref, unsigned int Fout) { struct wm5110_priv *wm5110 = snd_soc_codec_get_drvdata(codec); switch (fll_id) { case WM5110_FLL1: return arizona_set_fll(&wm5110->fll[0], source, Fref, Fout); case WM5110_FLL2: return arizona_set_fll(&wm5110->fll[1], source, Fref, Fout); default: return -EINVAL; } }
static int wm8997_set_fll(struct snd_soc_codec *codec, int fll_id, int source, unsigned int Fref, unsigned int Fout) { struct wm8997_priv *wm8997 = snd_soc_codec_get_drvdata(codec); switch (fll_id) { case WM8997_FLL1: return arizona_set_fll(&wm8997->fll[0], source, Fref, Fout); case WM8997_FLL2: return arizona_set_fll(&wm8997->fll[1], source, Fref, Fout); case WM8997_FLL1_REFCLK: return arizona_set_fll_refclk(&wm8997->fll[0], source, Fref, Fout); case WM8997_FLL2_REFCLK: return arizona_set_fll_refclk(&wm8997->fll[1], source, Fref, Fout); default: return -EINVAL; } }