ALSA: asihpi - Add autofade query.
authorEliot Blennerhassett <eblennerhassett@audioscience.com>
Thu, 22 Dec 2011 00:38:45 +0000 (13:38 +1300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 22 Dec 2011 07:13:07 +0000 (08:13 +0100)
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpi.h
sound/pci/asihpi/hpifunc.c

index 867c144fed3191643662232beaa0ec31d5a9f4fe..f2f1d980102b025be56f99149323a5b9f00d436d 100644 (file)
@@ -1347,6 +1347,9 @@ u16 hpi_volume_auto_fade_profile(u32 h_control,
        short an_stop_gain0_01dB[HPI_MAX_CHANNELS], u32 duration_ms,
        u16 profile);
 
+u16 hpi_volume_query_auto_fade_profile(const u32 h_control, const u32 i,
+       u16 *profile);
+
 /*****************/
 /* Level control */
 /*****************/
index ebb568d695f150c75c364472067664f401692361..510e56cffd31b6b71664c2b381b424e15b93888b 100644 (file)
@@ -2826,6 +2826,16 @@ u16 hpi_volume_auto_fade(u32 h_control,
                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)
 {
        struct hpi_message hm;
This page took 0.029202 seconds and 5 git commands to generate.