aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi/hpi.h
diff options
context:
space:
mode:
authorEliot Blennerhassett <eblennerhassett@audioscience.com>2011-02-09 23:26:11 -0500
committerTakashi Iwai <tiwai@suse.de>2011-02-10 12:49:32 -0500
commitfc3a399019a5a54258095c9bb0e17d4be5d51e67 (patch)
treee097f648fe07054328300a51ff51870cba87eb60 /sound/pci/asihpi/hpi.h
parent1225367a481ae751738630158c7ca96aa1c7bac8 (diff)
ALSA: asihpi - Add volume mute control.
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi/hpi.h')
-rw-r--r--sound/pci/asihpi/hpi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/asihpi/hpi.h b/sound/pci/asihpi/hpi.h
index bef90d44361..5ac978d0774 100644
--- a/sound/pci/asihpi/hpi.h
+++ b/sound/pci/asihpi/hpi.h
@@ -645,6 +645,11 @@ enum HPI_SWITCH_STATES {
645*/ 645*/
646#define HPI_GAIN_OFF (-100 * HPI_UNITS_PER_dB) 646#define HPI_GAIN_OFF (-100 * HPI_UNITS_PER_dB)
647 647
648/** channel mask specifying all channels
649\ingroup volume
650*/
651#define HPI_BITMASK_ALL_CHANNELS (0xFFFFFFFF)
652
648/** value returned for no signal 653/** value returned for no signal
649\ingroup meter 654\ingroup meter
650*/ 655*/
@@ -1312,6 +1317,10 @@ u16 hpi_volume_get_gain(u32 h_control,
1312 short an_gain0_01dB_out[HPI_MAX_CHANNELS] 1317 short an_gain0_01dB_out[HPI_MAX_CHANNELS]
1313 ); 1318 );
1314 1319
1320u16 hpi_volume_set_mute(u32 h_control, u32 mute);
1321
1322u16 hpi_volume_get_mute(u32 h_control, u32 *mute);
1323
1315#define hpi_volume_get_range hpi_volume_query_range 1324#define hpi_volume_get_range hpi_volume_query_range
1316u16 hpi_volume_query_range(u32 h_control, short *min_gain_01dB, 1325u16 hpi_volume_query_range(u32 h_control, short *min_gain_01dB,
1317 short *max_gain_01dB, short *step_gain_01dB); 1326 short *max_gain_01dB, short *step_gain_01dB);