lkml.org 
[lkml]   [2020]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.7 09/79] ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value.
    Date
    From: Connor McAdams <conmanx360@gmail.com>

    commit a00dc409de455b64e6cb2f6d40cdb8237cdb2e83 upstream.

    When the ZxR headphone gain control was added, the ca0132_switch_get
    function was not updated, which meant that the changes to the control
    state were not saved when entering/exiting alsamixer.

    Signed-off-by: Connor McAdams <conmanx360@gmail.com>
    Cc: <stable@vger.kernel.org>
    Link: https://lore.kernel.org/r/20200803002928.8638-1-conmanx360@gmail.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    sound/pci/hda/patch_ca0132.c | 5 +++++
    1 file changed, 5 insertions(+)

    --- a/sound/pci/hda/patch_ca0132.c
    +++ b/sound/pci/hda/patch_ca0132.c
    @@ -5749,6 +5749,11 @@ static int ca0132_switch_get(struct snd_
    return 0;
    }

    + if (nid == ZXR_HEADPHONE_GAIN) {
    + *valp = spec->zxr_gain_set;
    + return 0;
    + }
    +
    return 0;
    }


    \
     
     \ /
      Last update: 2020-08-10 17:41    [W:2.487 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site