diff options
Diffstat (limited to 'sound/pci/asihpi')
-rw-r--r-- | sound/pci/asihpi/hpi.h | 3 | ||||
-rw-r--r-- | sound/pci/asihpi/hpifunc.c | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/sound/pci/asihpi/hpi.h b/sound/pci/asihpi/hpi.h index 867c144fed31..f2f1d980102b 100644 --- a/sound/pci/asihpi/hpi.h +++ b/sound/pci/asihpi/hpi.h | |||
@@ -1347,6 +1347,9 @@ u16 hpi_volume_auto_fade_profile(u32 h_control, | |||
1347 | short an_stop_gain0_01dB[HPI_MAX_CHANNELS], u32 duration_ms, | 1347 | short an_stop_gain0_01dB[HPI_MAX_CHANNELS], u32 duration_ms, |
1348 | u16 profile); | 1348 | u16 profile); |
1349 | 1349 | ||
1350 | u16 hpi_volume_query_auto_fade_profile(const u32 h_control, const u32 i, | ||
1351 | u16 *profile); | ||
1352 | |||
1350 | /*****************/ | 1353 | /*****************/ |
1351 | /* Level control */ | 1354 | /* Level control */ |
1352 | /*****************/ | 1355 | /*****************/ |
diff --git a/sound/pci/asihpi/hpifunc.c b/sound/pci/asihpi/hpifunc.c index ebb568d695f1..510e56cffd31 100644 --- a/sound/pci/asihpi/hpifunc.c +++ b/sound/pci/asihpi/hpifunc.c | |||
@@ -2826,6 +2826,16 @@ u16 hpi_volume_auto_fade(u32 h_control, | |||
2826 | duration_ms, HPI_VOLUME_AUTOFADE_LOG); | 2826 | duration_ms, HPI_VOLUME_AUTOFADE_LOG); |
2827 | } | 2827 | } |
2828 | 2828 | ||
2829 | u16 hpi_volume_query_auto_fade_profile(const u32 h_volume, const u32 i, | ||
2830 | u16 *profile) | ||
2831 | { | ||
2832 | u16 e; | ||
2833 | u32 u; | ||
2834 | e = hpi_control_query(h_volume, HPI_VOLUME_AUTOFADE, i, 0, &u); | ||
2835 | *profile = (u16)u; | ||
2836 | return e; | ||
2837 | } | ||
2838 | |||
2829 | u16 hpi_vox_set_threshold(u32 h_control, short an_gain0_01dB) | 2839 | u16 hpi_vox_set_threshold(u32 h_control, short an_gain0_01dB) |
2830 | { | 2840 | { |
2831 | struct hpi_message hm; | 2841 | struct hpi_message hm; |