summaryrefslogtreecommitdiff
path: root/sound/pci/pcxhr/pcxhr_mix22.h
diff options
context:
space:
mode:
authorMarkus Bollinger <bollinger@digigram.com>2009-01-23 16:45:41 +0300
committerTakashi Iwai <tiwai@suse.de>2009-01-23 16:45:41 +0300
commit55aef4508598d59c2baea7e2a3e6dfed415bbfc0 (patch)
tree933e5b7029b9471bab5c260b58f2293812e9d77c /sound/pci/pcxhr/pcxhr_mix22.h
parent1de9e8e70f5acc441550ca75433563d91b269bbe (diff)
downloadlinux-55aef4508598d59c2baea7e2a3e6dfed415bbfc0.tar.xz
ALSA: pcxhr - add support for gpio ports and minor bug fix
- add support for gpio ports (2 GPI, 2 GPO) of pcxhr stereo cards - minor bugfixes : allow setting clock to internal by the mixer even if there is no stream (but monitoring) Signed-off-by: Markus Bollinger <bollinger@digigram.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/pcxhr/pcxhr_mix22.h')
-rw-r--r--sound/pci/pcxhr/pcxhr_mix22.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/pcxhr/pcxhr_mix22.h b/sound/pci/pcxhr/pcxhr_mix22.h
index 6b318b2f0100..5a37a0007e8f 100644
--- a/sound/pci/pcxhr/pcxhr_mix22.h
+++ b/sound/pci/pcxhr/pcxhr_mix22.h
@@ -32,6 +32,9 @@ int hr222_get_external_clock(struct pcxhr_mgr *mgr,
enum pcxhr_clock_type clock_type,
int *sample_rate);
+int hr222_read_gpio(struct pcxhr_mgr *mgr, int is_gpi, int *value);
+int hr222_write_gpo(struct pcxhr_mgr *mgr, int value);
+
#define HR222_LINE_PLAYBACK_LEVEL_MIN 0 /* -25.5 dB */
#define HR222_LINE_PLAYBACK_ZERO_LEVEL 51 /* 0.0 dB */
#define HR222_LINE_PLAYBACK_LEVEL_MAX 99 /* +24.0 dB */