aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-11-16 05:25:33 -0500
committerTakashi Iwai <tiwai@suse.de>2009-11-16 05:35:23 -0500
commit9c96fa599fe4f0ccc6e3e606df6652335afe28e8 (patch)
tree319ab013b3bcba5fe750c51873d9977122bdcd98 /sound/pci/hda/hda_codec.c
parent4d02d1b638af580ae3d69367248539a8b3893064 (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/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index d71e651046eb..5e21b35207ab 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1523,7 +1523,7 @@ int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid,
1523 int err; 1523 int err;
1524 struct hda_nid_item *item; 1524 struct hda_nid_item *item;
1525 1525
1526 if (kctl->id.subdevice & (1<<31)) { 1526 if (kctl->id.subdevice & HDA_SUBDEV_NID_FLAG) {
1527 if (nid == 0) 1527 if (nid == 0)
1528 nid = kctl->id.subdevice & 0xffff; 1528 nid = kctl->id.subdevice & 0xffff;
1529 kctl->id.subdevice = 0; 1529 kctl->id.subdevice = 0;