summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-03-13 08:32:53 +0300
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-13 11:08:56 +0000
commit28dbd1611f5701c9b5b8c07924c1bd2ad6f64435 (patch)
tree8e44184948f3b19cdf89fe592d668fbab38fbe6e /sound
parentc300d6de53ae029576b2805f08d8596d2e511b08 (diff)
downloadblackbird-op-linux-28dbd1611f5701c9b5b8c07924c1bd2ad6f64435.tar.gz
blackbird-op-linux-28dbd1611f5701c9b5b8c07924c1bd2ad6f64435.zip
ASoC: tas5086: signedness bug in tas5086_hw_params()
"val" has to be signed for the error handling to work. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tas5086.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tas5086.c b/sound/soc/codecs/tas5086.c
index 40cee844f0cf..d447c4aa1d5e 100644
--- a/sound/soc/codecs/tas5086.c
+++ b/sound/soc/codecs/tas5086.c
@@ -251,7 +251,7 @@ static int tas5086_hw_params(struct snd_pcm_substream *substream,
{
struct snd_soc_codec *codec = dai->codec;
struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec);
- unsigned int val;
+ int val;
int ret;
priv->rate = params_rate(params);
OpenPOWER on IntegriCloud