diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-03-31 21:12:40 +0800 |
---|---|---|
committer | guoyin.chen <guoyin.chen@freescale.com> | 2015-05-08 17:24:58 +0800 |
commit | bf62109c6231268a1045f3479d2269514ebc3fe0 (patch) | |
tree | 0fc9901a32fef3179900d25c0edfea275cd5e09a | |
parent | e0b909fd5c9eb4c6973d3bbb4d81b6894914622b (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>
-rw-r--r-- | sound/soc/fsl/imx-wm8960.c | 10 |
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; |