projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e6f3ce
)
ASoC: es8316: fix warning: 'val' may be used uninitialized
author
Sugar Zhang
<sugar.zhang@rock-chips.com>
Mon, 9 May 2016 06:15:50 +0000
(14:15 +0800)
committer
Sugar Zhang
<sugar.zhang@rock-chips.com>
Mon, 9 May 2016 06:15:50 +0000
(14:15 +0800)
Change-Id: If7bdba3cd7a23879a2cf41202d21fadaef614f23
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
sound/soc/codecs/es8316.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/es8316.c
b/sound/soc/codecs/es8316.c
index 1e082f39e97b3a1d35a3ab482f523d0e2ceb7b12..eab27c1f53c3675ae835350a1a637229ae7d8640 100644
(file)
--- a/
sound/soc/codecs/es8316.c
+++ b/
sound/soc/codecs/es8316.c
@@
-752,7
+752,7
@@
static int es8316_pcm_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{
struct snd_soc_codec *codec = dai->codec;
- int val;
+ int val
= 0
;
switch (params_format(params)) {
case SNDRV_PCM_FORMAT_S16_LE:
@@
-767,6
+767,9
@@
static int es8316_pcm_hw_params(struct snd_pcm_substream *substream,
case SNDRV_PCM_FORMAT_S32_LE:
val = ES8316_DACWL_32;
break;
+ default:
+ val = ES8316_DACWL_16;
+ break;
}
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)