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>
This commit is contained in:
Takashi Iwai
2009-11-16 11:25:33 +01:00
parent 4d02d1b638
commit 9c96fa599f
6 changed files with 17 additions and 8 deletions

View File

@@ -2689,7 +2689,7 @@ stac_control_new(struct sigmatel_spec *spec,
return NULL;
}
if (nid)
knew->subdevice = (1<<31)|nid;
knew->subdevice = HDA_SUBDEV_NID_FLAG | nid;
return knew;
}