Skip to content

Commit

Permalink
ASoC: samsung: Allow setting OP_CLK of the IIS Multi Audio Interface
Browse files Browse the repository at this point in the history
This patch adds support for setting source clock of the "Core CLK"
of the IIS Multi Audio Interface.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Sylwester Nawrocki authored and Mark Brown committed May 20, 2014
1 parent deeaa68 commit c86d50f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/soc/samsung/i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ static int i2s_set_sysclk(struct snd_soc_dai *dai,
u32 mod = readl(i2s->addr + I2SMOD);

switch (clk_id) {
case SAMSUNG_I2S_OPCLK:
mod &= ~MOD_OPCLK_MASK;
mod |= dir;
break;
case SAMSUNG_I2S_CDCLK:
/* Shouldn't matter in GATING(CLOCK_IN) mode */
if (dir == SND_SOC_CLOCK_IN)
Expand Down
1 change: 1 addition & 0 deletions sound/soc/samsung/i2s.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
#define SAMSUNG_I2S_RCLKSRC_0 0
#define SAMSUNG_I2S_RCLKSRC_1 1
#define SAMSUNG_I2S_CDCLK 2
#define SAMSUNG_I2S_OPCLK 3

#endif /* __SND_SOC_SAMSUNG_I2S_H */

0 comments on commit c86d50f

Please sign in to comment.