]> git.alsa-project.org Git - alsa-lib.git/commit
modem.conf Off-hook improve behavior
authorDavid Fries <david@fries.net>
Fri, 25 Dec 2009 20:22:38 +0000 (14:22 -0600)
committerTakashi Iwai <tiwai@suse.de>
Fri, 22 Jan 2010 10:45:35 +0000 (11:45 +0100)
commit63acb8732933aa9732e3bf2e3affef925dd9c45b
tree53abfbadfd6c4dec7ca10bc02e808e816791197f
parentd3c6e2b09761960d9eddb147cfee797290f66649
modem.conf Off-hook improve behavior

Only restore the old value if it differs from the requested
value, because if it has changed restoring the old value
overrides the change.  Take for example, a voice modem with
a .conf that sets preserve off-hook.  Start playback (on-hook
to off-hook), start record (off-hook to off-hook), stop
playback (off-hook to restore on-hook), stop record (on-hook
to restore off-hook), Clearly you don't want to leave the
modem "on the phone" now that there isn't any playback or
recording active.

Signed-off-by: David Fries <david@fries.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/control.h
src/control/control.c
src/control/setup.c