提交 862e1418 编写于 作者: E Eliot Blennerhassett 提交者: Takashi Iwai

ALSA: asihpi - Add autofade query.

Signed-off-by: NEliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 50d5f773
...@@ -1347,6 +1347,9 @@ u16 hpi_volume_auto_fade_profile(u32 h_control, ...@@ -1347,6 +1347,9 @@ u16 hpi_volume_auto_fade_profile(u32 h_control,
short an_stop_gain0_01dB[HPI_MAX_CHANNELS], u32 duration_ms, short an_stop_gain0_01dB[HPI_MAX_CHANNELS], u32 duration_ms,
u16 profile); u16 profile);
u16 hpi_volume_query_auto_fade_profile(const u32 h_control, const u32 i,
u16 *profile);
/*****************/ /*****************/
/* Level control */ /* Level control */
/*****************/ /*****************/
......
...@@ -2826,6 +2826,16 @@ u16 hpi_volume_auto_fade(u32 h_control, ...@@ -2826,6 +2826,16 @@ u16 hpi_volume_auto_fade(u32 h_control,
duration_ms, HPI_VOLUME_AUTOFADE_LOG); duration_ms, HPI_VOLUME_AUTOFADE_LOG);
} }
u16 hpi_volume_query_auto_fade_profile(const u32 h_volume, const u32 i,
u16 *profile)
{
u16 e;
u32 u;
e = hpi_control_query(h_volume, HPI_VOLUME_AUTOFADE, i, 0, &u);
*profile = (u16)u;
return e;
}
u16 hpi_vox_set_threshold(u32 h_control, short an_gain0_01dB) u16 hpi_vox_set_threshold(u32 h_control, short an_gain0_01dB)
{ {
struct hpi_message hm; struct hpi_message hm;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册