diff options
author | Eliot Blennerhassett <eblennerhassett@audioscience.com> | 2011-02-09 23:26:11 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-02-10 12:49:32 -0500 |
commit | fc3a399019a5a54258095c9bb0e17d4be5d51e67 (patch) | |
tree | e097f648fe07054328300a51ff51870cba87eb60 /sound/pci/asihpi/hpifunc.c | |
parent | 1225367a481ae751738630158c7ca96aa1c7bac8 (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/hpifunc.c')
-rw-r--r-- | sound/pci/asihpi/hpifunc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/pci/asihpi/hpifunc.c b/sound/pci/asihpi/hpifunc.c index 53924e494161..b79eba1ee0f5 100644 --- a/sound/pci/asihpi/hpifunc.c +++ b/sound/pci/asihpi/hpifunc.c | |||
@@ -2888,6 +2888,16 @@ u16 hpi_volume_get_gain(u32 h_control, short an_log_gain[HPI_MAX_CHANNELS] | |||
2888 | &an_log_gain[0], &an_log_gain[1]); | 2888 | &an_log_gain[0], &an_log_gain[1]); |
2889 | } | 2889 | } |
2890 | 2890 | ||
2891 | u16 hpi_volume_set_mute(u32 h_control, u32 mute) | ||
2892 | { | ||
2893 | return hpi_control_param_set(h_control, HPI_VOLUME_MUTE, mute, 0); | ||
2894 | } | ||
2895 | |||
2896 | u16 hpi_volume_get_mute(u32 h_control, u32 *mute) | ||
2897 | { | ||
2898 | return hpi_control_param1_get(h_control, HPI_VOLUME_MUTE, mute); | ||
2899 | } | ||
2900 | |||
2891 | u16 hpi_volume_query_range(u32 h_control, short *min_gain_01dB, | 2901 | u16 hpi_volume_query_range(u32 h_control, short *min_gain_01dB, |
2892 | short *max_gain_01dB, short *step_gain_01dB) | 2902 | short *max_gain_01dB, short *step_gain_01dB) |
2893 | { | 2903 | { |