Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c86d50f9 authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Mark Brown
Browse files

ASoC: samsung: Allow setting OP_CLK of the IIS Multi Audio Interface



This patch adds support for setting source clock of the "Core CLK"
of the IIS Multi Audio Interface.

Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent deeaa686
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -451,6 +451,10 @@ static int i2s_set_sysclk(struct snd_soc_dai *dai,
	u32 mod = readl(i2s->addr + I2SMOD);
	u32 mod = readl(i2s->addr + I2SMOD);


	switch (clk_id) {
	switch (clk_id) {
	case SAMSUNG_I2S_OPCLK:
		mod &= ~MOD_OPCLK_MASK;
		mod |= dir;
		break;
	case SAMSUNG_I2S_CDCLK:
	case SAMSUNG_I2S_CDCLK:
		/* Shouldn't matter in GATING(CLOCK_IN) mode */
		/* Shouldn't matter in GATING(CLOCK_IN) mode */
		if (dir == SND_SOC_CLOCK_IN)
		if (dir == SND_SOC_CLOCK_IN)
+1 −0
Original line number Original line Diff line number Diff line
@@ -18,5 +18,6 @@
#define SAMSUNG_I2S_RCLKSRC_0	0
#define SAMSUNG_I2S_RCLKSRC_0	0
#define SAMSUNG_I2S_RCLKSRC_1	1
#define SAMSUNG_I2S_RCLKSRC_1	1
#define SAMSUNG_I2S_CDCLK		2
#define SAMSUNG_I2S_CDCLK		2
#define SAMSUNG_I2S_OPCLK		3


#endif /* __SND_SOC_SAMSUNG_I2S_H */
#endif /* __SND_SOC_SAMSUNG_I2S_H */