Skip to content

Commit

Permalink
ASoC: tas5086: signedness bug in tas5086_hw_params()
Browse files Browse the repository at this point in the history
"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>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Mar 13, 2013
1 parent c300d6d commit 28dbd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/tas5086.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28dbd16

Please sign in to comment.