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:
@@ -443,7 +443,7 @@ static int via_add_control(struct via_spec *spec, int type, const char *name,
|
||||
if (!knew->name)
|
||||
return -ENOMEM;
|
||||
if (get_amp_nid_(val))
|
||||
knew->subdevice = (1<<31)|get_amp_nid_(val);
|
||||
knew->subdevice = HDA_SUBDEV_NID_FLAG | get_amp_nid_(val);
|
||||
knew->private_value = val;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user