summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorZidan Wang <zidan.wang@freescale.com>2015-03-31 21:12:40 +0800
committerJason Liu <r64343@freescale.com>2015-05-08 17:23:57 +0800
commit2bd56e2143356a7341f1b4e28c64d6bc0c877730 (patch)
treee257cd5206c16b38ecf7e3693189c2a59a5c8999 /sound
parentbf687b6fbe42fe85008b4accd89e4a6af76b89cf (diff)
MLK-10519 ASoC: imx-wm8960: change coding style
change coding style for wm8960 machine driver. Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/imx-wm8960.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/fsl/imx-wm8960.c b/sound/soc/fsl/imx-wm8960.c
index 01517966d1f2..8eeeb98585b8 100644
--- a/sound/soc/fsl/imx-wm8960.c
+++ b/sound/soc/fsl/imx-wm8960.c
@@ -35,7 +35,7 @@ struct imx_wm8960_data {
struct clk *codec_clk;
unsigned int clk_frequency;
bool is_codec_master;
- bool stream[2];
+ bool is_stream_in_use[2];
};
struct imx_priv {
@@ -76,9 +76,9 @@ static int imx_hifi_hw_params(struct snd_pcm_substream *substream,
if (params_channels(params) == 1)
bclk *= 2;
- data->stream[tx] = true;
+ data->is_stream_in_use[tx] = true;
- if (data->stream[tx] && data->stream[!tx])
+ if (data->is_stream_in_use[!tx])
return 0;
/* set cpu DAI configuration */
@@ -190,10 +190,10 @@ static int imx_hifi_hw_free(struct snd_pcm_substream *substream)
struct imx_wm8960_data *data = snd_soc_card_get_drvdata(card);
bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
- data->stream[tx] = false;
+ data->is_stream_in_use[tx] = false;
/* Power down PLL to save power*/
- if (data->is_codec_master && !data->stream[tx] && !data->stream[!tx])
+ if (data->is_codec_master && !data->is_stream_in_use[!tx])
snd_soc_dai_set_pll(codec_dai, 0, 0, 0, 0);
return 0;