OBS User unknown 2008-10-23 20:24:06 +00:00 committed by Git OBS Bridge
parent 47e483ffcc
commit 4da4c4e3fe
4 changed files with 34 additions and 3 deletions

View File

@ -1,3 +1,26 @@
diff --git a/include/pcm.h b/include/pcm.h
index e655aa6..15e9cb2 100644
--- a/include/pcm.h
+++ b/include/pcm.h
@@ -440,7 +440,9 @@ int snd_pcm_hwsync(snd_pcm_t *pcm);
int snd_pcm_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp);
int snd_pcm_resume(snd_pcm_t *pcm);
int snd_pcm_htimestamp(snd_pcm_t *pcm, snd_pcm_uframes_t *avail, snd_htimestamp_t *tstamp);
+snd_pcm_sframes_t snd_pcm_avail(snd_pcm_t *pcm);
snd_pcm_sframes_t snd_pcm_avail_update(snd_pcm_t *pcm);
+int snd_pcm_avail_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *availp, snd_pcm_sframes_t *delayp);
snd_pcm_sframes_t snd_pcm_rewindable(snd_pcm_t *pcm);
snd_pcm_sframes_t snd_pcm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
snd_pcm_sframes_t snd_pcm_forwardable(snd_pcm_t *pcm);
@@ -454,6 +456,8 @@ int snd_pcm_wait(snd_pcm_t *pcm, int timeout);
int snd_pcm_link(snd_pcm_t *pcm1, snd_pcm_t *pcm2);
int snd_pcm_unlink(snd_pcm_t *pcm);
+//int snd_pcm_mixer_element(snd_pcm_t *pcm, snd_mixer_t *mixer, snd_mixer_elem_t **elem);
+
/*
* application helpers - these functions are implemented on top
* of the basic API
diff --git a/include/sound/asound.h b/include/sound/asound.h
index e5fbea4..977b2d6 100644
--- a/include/sound/asound.h

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Oct 23 16:27:36 CEST 2008 - tiwai@suse.de
- add missing declarations of new API functions in pcm.h.
- check /proc/modules instead of lsmod in alsasound script.
-------------------------------------------------------------------
Mon Oct 20 11:29:49 CEST 2008 - tiwai@suse.de

View File

@ -29,7 +29,7 @@ PreReq: %insserv_prereq %fillup_prereq
AutoReqProv: on
Summary: Advanced Linux Sound Architecture
Version: 1.0.18
Release: 4
Release: 5
Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{package_version}.tar.bz2
Source8: 40-alsa.rules
Source11: alsasound
@ -239,6 +239,9 @@ exit 0
%{_datadir}/alsa
%changelog
* Thu Oct 23 2008 tiwai@suse.de
- add missing declarations of new API functions in pcm.h.
- check /proc/modules instead of lsmod in alsasound script.
* Mon Oct 20 2008 tiwai@suse.de
- add missing iec958 PCM definition for PS3 (bnc#436845)
- fix the bug in device listing (don't show non-existing devices)

View File

@ -60,7 +60,6 @@ rc_reset
alsactl=/usr/sbin/alsactl
asoundcfg=/etc/asound.state
aconnect=/usr/bin/aconnect
lsmod=/bin/lsmod
#
# insert sequencer modules
@ -159,7 +158,7 @@ unmute_system() {
#
unload_modules() {
unmute_system
$lsmod | grep -E "^(snd|ac97_bus)" | while read m s; do
grep -E "^(snd|ac97_bus)" /proc/modules | while read m s; do
/sbin/rmmod $m
done
}