summaryrefslogtreecommitdiffstats
path: root/src/modules/oss-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-23 21:03:24 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-23 21:03:24 +0000
commit77ed60ce4cd02cb4b383ab4d6e9b51701fb03a07 (patch)
treea7bcdc5c493c1a1180bbd4d29a404ab25081c2c8 /src/modules/oss-util.h
parentfc00eaf1d4b854c4dd25edaf25bdb5a800f7827a (diff)
instead of using the mixer ioctl()s on the dsp fd, open a seperate fd for the mixer. This allows us the keep the mixer fd open while closing the dsp device while suspending.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1893 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules/oss-util.h')
-rw-r--r--src/modules/oss-util.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/oss-util.h b/src/modules/oss-util.h
index 087e0d22..259a622a 100644
--- a/src/modules/oss-util.h
+++ b/src/modules/oss-util.h
@@ -33,12 +33,11 @@ int pa_oss_auto_format(int fd, pa_sample_spec *ss);
int pa_oss_set_fragments(int fd, int frags, int frag_size);
-int pa_oss_get_pcm_volume(int fd, const pa_sample_spec *ss, pa_cvolume *volume);
-int pa_oss_set_pcm_volume(int fd, const pa_sample_spec *ss, const pa_cvolume *volume);
-
-int pa_oss_get_input_volume(int fd, const pa_sample_spec *ss, pa_cvolume *volume);
-int pa_oss_set_input_volume(int fd, const pa_sample_spec *ss, const pa_cvolume *volume);
+int pa_oss_set_volume(int fd, long mixer, const pa_sample_spec *ss, const pa_cvolume *volume);
+int pa_oss_get_volume(int fd, int mixer, const pa_sample_spec *ss, pa_cvolume *volume);
int pa_oss_get_hw_description(const char *dev, char *name, size_t l);
+int pa_oss_open_mixer_for_device(const char *device);
+
#endif