diff options
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 8c04e0e0f655..fff9de245646 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -2461,7 +2461,8 @@ static int alc_build_controls(struct hda_codec *codec) | |||
2461 | if (!kctl) | 2461 | if (!kctl) |
2462 | return -ENOMEM; | 2462 | return -ENOMEM; |
2463 | kctl->private_value = spec->beep_amp; | 2463 | kctl->private_value = spec->beep_amp; |
2464 | err = snd_hda_ctl_add(codec, kctl); | 2464 | err = snd_hda_ctl_add(codec, |
2465 | get_amp_nid_(spec->beep_amp), kctl); | ||
2465 | if (err < 0) | 2466 | if (err < 0) |
2466 | return err; | 2467 | return err; |
2467 | } | 2468 | } |