mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 02:52:56 +00:00
136ff2a272
The WM8994 FLL can be clocked from one of four inputs, the two MCLKs and the LRCLK and BCLK of the AIF associated with the FLL. Allow all four inputs to be used rather than defaulting to MCLK1. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
35 lines
880 B
C
35 lines
880 B
C
/*
|
|
* wm8994.h -- WM8994 Soc Audio driver
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef _WM8994_H
|
|
#define _WM8994_H
|
|
|
|
#include <sound/soc.h>
|
|
|
|
extern struct snd_soc_codec_device soc_codec_dev_wm8994;
|
|
extern struct snd_soc_dai wm8994_dai[];
|
|
|
|
/* Sources for AIF1/2 SYSCLK - use with set_dai_sysclk() */
|
|
#define WM8994_SYSCLK_MCLK1 1
|
|
#define WM8994_SYSCLK_MCLK2 2
|
|
#define WM8994_SYSCLK_FLL1 3
|
|
#define WM8994_SYSCLK_FLL2 4
|
|
|
|
#define WM8994_FLL1 1
|
|
#define WM8994_FLL2 2
|
|
|
|
#define WM8994_FLL_SRC_MCLK1 1
|
|
#define WM8994_FLL_SRC_MCLK2 2
|
|
#define WM8994_FLL_SRC_LRCLK 3
|
|
#define WM8994_FLL_SRC_BCLK 4
|
|
|
|
int wm8994_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack,
|
|
int micbias, int det, int shrt);
|
|
|
|
#endif
|