Skip to content

Commit 528c627

Browse files
larsclausenrkhuangtao
authored andcommitted
UPSTREAM: ASoC: es8328: Remove some unused defines
The es8328 drivers seems to have used the wm8753 driver as a template. Its header file contains a few defines that are copied verbatim from the wm8753 header that do not really apply to this driver and are unused. So remove those defines. This seems safe as they deal with PLL and clock divider settings and the es8328 driver neither implements a set_pll() nor a set_clkdiv() callback. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org> (cherry picked from commit 0f40132) Change-Id: I1c4c93dd3335678942c19693b0844d9152c7197b Signed-off-by: Chris Zhong <zyw@rock-chips.com>
1 parent a47789f commit 528c627

1 file changed

Lines changed: 0 additions & 37 deletions

File tree

sound/soc/codecs/es8328.h

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -278,43 +278,6 @@ int es8328_probe(struct device *dev, struct regmap *regmap);
278278

279279
#define ES8328_REG_MAX 0x35
280280

281-
#define ES8328_PLL1 0
282-
#define ES8328_PLL2 1
283-
284-
/* clock inputs */
285-
#define ES8328_MCLK 0
286-
#define ES8328_PCMCLK 1
287-
288-
/* clock divider id's */
289-
#define ES8328_PCMDIV 0
290-
#define ES8328_BCLKDIV 1
291-
#define ES8328_VXCLKDIV 2
292-
293-
/* PCM clock dividers */
294-
#define ES8328_PCM_DIV_1 (0 << 6)
295-
#define ES8328_PCM_DIV_3 (2 << 6)
296-
#define ES8328_PCM_DIV_5_5 (3 << 6)
297-
#define ES8328_PCM_DIV_2 (4 << 6)
298-
#define ES8328_PCM_DIV_4 (5 << 6)
299-
#define ES8328_PCM_DIV_6 (6 << 6)
300-
#define ES8328_PCM_DIV_8 (7 << 6)
301-
302-
/* BCLK clock dividers */
303-
#define ES8328_BCLK_DIV_1 (0 << 7)
304-
#define ES8328_BCLK_DIV_2 (1 << 7)
305-
#define ES8328_BCLK_DIV_4 (2 << 7)
306-
#define ES8328_BCLK_DIV_8 (3 << 7)
307-
308-
/* VXCLK clock dividers */
309-
#define ES8328_VXCLK_DIV_1 (0 << 6)
310-
#define ES8328_VXCLK_DIV_2 (1 << 6)
311-
#define ES8328_VXCLK_DIV_4 (2 << 6)
312-
#define ES8328_VXCLK_DIV_8 (3 << 6)
313-
#define ES8328_VXCLK_DIV_16 (4 << 6)
314-
315-
#define ES8328_DAI_HIFI 0
316-
#define ES8328_DAI_VOICE 1
317-
318281
#define ES8328_1536FS 1536
319282
#define ES8328_1024FS 1024
320283
#define ES8328_768FS 768

0 commit comments

Comments
 (0)