diff options
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 5c9e578f7f2d..d688f50cdfce 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -418,4 +418,13 @@ int snd_hda_check_amp_list_power(struct hda_codec *codec, | |||
418 | hda_nid_t nid); | 418 | hda_nid_t nid); |
419 | #endif /* CONFIG_SND_HDA_POWER_SAVE */ | 419 | #endif /* CONFIG_SND_HDA_POWER_SAVE */ |
420 | 420 | ||
421 | /* | ||
422 | * AMP control callbacks | ||
423 | */ | ||
424 | /* retrieve parameters from private_value */ | ||
425 | #define get_amp_nid(kc) ((kc)->private_value & 0xffff) | ||
426 | #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) | ||
427 | #define get_amp_direction(kc) (((kc)->private_value >> 18) & 0x1) | ||
428 | #define get_amp_index(kc) (((kc)->private_value >> 19) & 0xf) | ||
429 | |||
421 | #endif /* __SOUND_HDA_LOCAL_H */ | 430 | #endif /* __SOUND_HDA_LOCAL_H */ |