lkml.org 
[lkml]   [2018]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Fixed typo on line 733.
On Wed, 27 Jun 2018 20:54:34 +0200,
Guy Chronister wrote:
>
> Signed-off-by: Guy Chronister <guylovesbritt@gmail.com>

The code change itself is good, but the subject is wrong, and there is
no changelog texts. Please describe what it really fixes. It's not
about typo fix, but it fixes a real bug, and this has to be written in
the subject and explained in more details in the changelog.


thanks,

Takashi

> ---
> sound/pci/oxygen/oxygen_mixer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/pci/oxygen/oxygen_mixer.c b/sound/pci/oxygen/oxygen_mixer.c
> index 81af21a..ba87213 100644
> --- a/sound/pci/oxygen/oxygen_mixer.c
> +++ b/sound/pci/oxygen/oxygen_mixer.c
> @@ -730,7 +730,7 @@ static int ac97_fp_rec_volume_put(struct snd_kcontrol *ctl,
> oldreg = oxygen_read_ac97(chip, 1, AC97_REC_GAIN);
> newreg = oldreg & ~0x0707;
> newreg = newreg | (value->value.integer.value[0] & 7);
> - newreg = newreg | ((value->value.integer.value[0] & 7) << 8);
> + newreg = newreg | ((value->value.integer.value[1] & 7) << 8);
> change = newreg != oldreg;
> if (change)
> oxygen_write_ac97(chip, 1, AC97_REC_GAIN, newreg);
> --
> 2.7.4
>
>

\
 
 \ /
  Last update: 2018-06-28 07:40    [W:0.204 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site