]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/pci/hda/patch_analog.c
ALSA: hda - proc - add support for dynamic controls to mixer<->NID mapping
[mirror_ubuntu-bionic-kernel.git] / sound / pci / hda / patch_analog.c
index ef3383912b6ec3bda6b160c61955faf1fe01ef89..2d345606265b22e83270af2ccc77aefc89bc3cad 100644 (file)
@@ -2571,6 +2571,8 @@ static int add_control(struct ad198x_spec *spec, int type, const char *name,
        knew->name = kstrdup(name, GFP_KERNEL);
        if (! knew->name)
                return -ENOMEM;
+       if (get_amp_nid_(val))
+               knew->subdevice = (1<<31)|get_amp_nid_(val);
        knew->private_value = val;
        return 0;
 }