diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-11-16 05:25:33 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-16 05:35:23 -0500 |
commit | 9c96fa599fe4f0ccc6e3e606df6652335afe28e8 (patch) | |
tree | 319ab013b3bcba5fe750c51873d9977122bdcd98 /sound/pci/hda/patch_realtek.c | |
parent | 4d02d1b638af580ae3d69367248539a8b3893064 (diff) |
ALSA: hda - Get rid of magic digits for subdev hack
Define a proper const for a magic 31bit flag for subdev / NID setup
with a brief comment.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index c0a98e724a25..eee3143eef75 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -4324,7 +4324,7 @@ static int add_control(struct alc_spec *spec, int type, const char *name, | |||
4324 | if (!knew->name) | 4324 | if (!knew->name) |
4325 | return -ENOMEM; | 4325 | return -ENOMEM; |
4326 | if (get_amp_nid_(val)) | 4326 | if (get_amp_nid_(val)) |
4327 | knew->subdevice = (1<<31)|get_amp_nid_(val); | 4327 | knew->subdevice = HDA_SUBDEV_NID_FLAG | get_amp_nid_(val); |
4328 | knew->private_value = val; | 4328 | knew->private_value = val; |
4329 | return 0; | 4329 | return 0; |
4330 | } | 4330 | } |