diff options
author | Jaroslav Kysela <perex@perex.cz> | 2009-12-10 07:57:01 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2009-12-15 03:33:32 -0500 |
commit | 5e26dfd0615868872cb44842f1e1428c7b414ab0 (patch) | |
tree | 75472db826d948edde152969045a819653ac54b3 /sound/pci/hda/patch_via.c | |
parent | 9e3fd8719f624a43575b56a4777b1552399a8be8 (diff) |
ALSA: hda - simplify usage of HDA_SUBDEV_AMP_FLAG
The HDA_SUBDEV_NID_FLAG is duplicate for amplifier control elements. Move
get_amp_nid_() call to the snd_hda_ctl_add() function.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/hda/patch_via.c')
-rw-r--r-- | sound/pci/hda/patch_via.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index b94cdee5eb53..de4839e46762 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
@@ -458,9 +458,7 @@ static int via_add_control(struct via_spec *spec, int type, const char *name, | |||
458 | if (!knew->name) | 458 | if (!knew->name) |
459 | return -ENOMEM; | 459 | return -ENOMEM; |
460 | if (get_amp_nid_(val)) | 460 | if (get_amp_nid_(val)) |
461 | knew->subdevice = HDA_SUBDEV_NID_FLAG | | 461 | knew->subdevice = HDA_SUBDEV_AMP_FLAG; |
462 | HDA_SUBDEV_AMP_FLAG | | ||
463 | get_amp_nid_(val); | ||
464 | knew->private_value = val; | 462 | knew->private_value = val; |
465 | return 0; | 463 | return 0; |
466 | } | 464 | } |