Commit 9f9f8a5b authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Mark Brown

ASoC: samsung: i2s: Comments clean up

Spelling error fixes, upper/lower case letter changes.
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c5ba6192
/* sound/soc/samsung/i2s.c /*
*
* ALSA SoC Audio Layer - Samsung I2S Controller driver * ALSA SoC Audio Layer - Samsung I2S Controller driver
* *
* Copyright (c) 2010 Samsung Electronics Co. Ltd. * Copyright (c) 2010 Samsung Electronics Co. Ltd.
...@@ -61,10 +60,10 @@ struct i2s_dai { ...@@ -61,10 +60,10 @@ struct i2s_dai {
/* Platform device for this DAI */ /* Platform device for this DAI */
struct platform_device *pdev; struct platform_device *pdev;
/* Frame Clock */ /* Frame clock */
unsigned frmclk; unsigned frmclk;
/* /*
* Specifically requested RCLK,BCLK by MACHINE Driver. * Specifically requested RCLK, BCLK by machine driver.
* 0 indicates CPU driver is free to choose any value. * 0 indicates CPU driver is free to choose any value.
*/ */
unsigned rfs, bfs; unsigned rfs, bfs;
...@@ -72,8 +71,9 @@ struct i2s_dai { ...@@ -72,8 +71,9 @@ struct i2s_dai {
struct i2s_dai *pri_dai; struct i2s_dai *pri_dai;
/* Pointer to the Secondary_Fifo if it has one, NULL otherwise */ /* Pointer to the Secondary_Fifo if it has one, NULL otherwise */
struct i2s_dai *sec_dai; struct i2s_dai *sec_dai;
#define DAI_OPENED (1 << 0) /* Dai is opened */
#define DAI_MANAGER (1 << 1) /* Dai is the manager */ #define DAI_OPENED (1 << 0) /* DAI is opened */
#define DAI_MANAGER (1 << 1) /* DAI is the manager */
unsigned mode; unsigned mode;
/* Driver for this DAI */ /* Driver for this DAI */
...@@ -98,7 +98,7 @@ struct samsung_i2s_priv { ...@@ -98,7 +98,7 @@ struct samsung_i2s_priv {
/* Spinlock protecting access to the device's registers */ /* Spinlock protecting access to the device's registers */
spinlock_t lock; spinlock_t lock;
/* Lock for cross i/f checks */ /* Lock for cross interface checks */
spinlock_t pcm_lock; spinlock_t pcm_lock;
/* CPU DAIs and their corresponding drivers */ /* CPU DAIs and their corresponding drivers */
...@@ -309,7 +309,7 @@ static inline void set_rfs(struct i2s_dai *i2s, unsigned rfs) ...@@ -309,7 +309,7 @@ static inline void set_rfs(struct i2s_dai *i2s, unsigned rfs)
writel(mod, priv->addr + I2SMOD); writel(mod, priv->addr + I2SMOD);
} }
/* Read Bit-Clock of I2S (in multiples of LRCLK) */ /* Read bit-clock of I2S (in multiples of LRCLK) */
static inline unsigned get_bfs(struct i2s_dai *i2s) static inline unsigned get_bfs(struct i2s_dai *i2s)
{ {
struct samsung_i2s_priv *priv = i2s->priv; struct samsung_i2s_priv *priv = i2s->priv;
...@@ -331,7 +331,7 @@ static inline unsigned get_bfs(struct i2s_dai *i2s) ...@@ -331,7 +331,7 @@ static inline unsigned get_bfs(struct i2s_dai *i2s)
} }
} }
/* Write Bit-Clock of I2S (in multiples of LRCLK) */ /* Write bit-clock of I2S (in multiples of LRCLK) */
static inline void set_bfs(struct i2s_dai *i2s, unsigned bfs) static inline void set_bfs(struct i2s_dai *i2s, unsigned bfs)
{ {
struct samsung_i2s_priv *priv = i2s->priv; struct samsung_i2s_priv *priv = i2s->priv;
...@@ -383,7 +383,7 @@ static inline void set_bfs(struct i2s_dai *i2s, unsigned bfs) ...@@ -383,7 +383,7 @@ static inline void set_bfs(struct i2s_dai *i2s, unsigned bfs)
writel(mod, priv->addr + I2SMOD); writel(mod, priv->addr + I2SMOD);
} }
/* Sample-Size */ /* Sample size */
static inline int get_blc(struct i2s_dai *i2s) static inline int get_blc(struct i2s_dai *i2s)
{ {
int blc = readl(i2s->priv->addr + I2SMOD); int blc = readl(i2s->priv->addr + I2SMOD);
...@@ -397,7 +397,7 @@ static inline int get_blc(struct i2s_dai *i2s) ...@@ -397,7 +397,7 @@ static inline int get_blc(struct i2s_dai *i2s)
} }
} }
/* TX Channel Control */ /* TX channel control */
static void i2s_txctrl(struct i2s_dai *i2s, int on) static void i2s_txctrl(struct i2s_dai *i2s, int on)
{ {
struct samsung_i2s_priv *priv = i2s->priv; struct samsung_i2s_priv *priv = i2s->priv;
...@@ -742,7 +742,7 @@ static int i2s_hw_params(struct snd_pcm_substream *substream, ...@@ -742,7 +742,7 @@ static int i2s_hw_params(struct snd_pcm_substream *substream,
switch (params_channels(params)) { switch (params_channels(params)) {
case 6: case 6:
val |= MOD_DC2_EN; val |= MOD_DC2_EN;
/* fall through */ /* Fall through */
case 4: case 4:
val |= MOD_DC1_EN; val |= MOD_DC1_EN;
break; break;
...@@ -821,7 +821,7 @@ static int i2s_hw_params(struct snd_pcm_substream *substream, ...@@ -821,7 +821,7 @@ static int i2s_hw_params(struct snd_pcm_substream *substream,
return 0; return 0;
} }
/* We set constraints on the substream acc to the version of I2S */ /* We set constraints on the substream according to the version of I2S */
static int i2s_startup(struct snd_pcm_substream *substream, static int i2s_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai) struct snd_soc_dai *dai)
{ {
...@@ -1056,7 +1056,8 @@ static int samsung_i2s_dai_probe(struct snd_soc_dai *dai) ...@@ -1056,7 +1056,8 @@ static int samsung_i2s_dai_probe(struct snd_soc_dai *dai)
pm_runtime_get_sync(dai->dev); pm_runtime_get_sync(dai->dev);
if (is_secondary(i2s)) { /* If this is probe on the secondary DAI */ if (is_secondary(i2s)) {
/* If this is probe on the secondary DAI */
snd_soc_dai_init_dma_data(dai, &i2s->dma_playback, NULL); snd_soc_dai_init_dma_data(dai, &i2s->dma_playback, NULL);
} else { } else {
snd_soc_dai_init_dma_data(dai, &i2s->dma_playback, snd_soc_dai_init_dma_data(dai, &i2s->dma_playback,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment