Skip to contentSkip to conversation

: alsactl does not report error status when it can't restore levels for all cards

ALSA - utils 0000843 [email protected] 1 participant 1 message Jan 23, 2005

lore
Share & tools
lore
#0 lore raw

The following issue has been SUBMITTED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=843>
======================================================================
Reported By: jdthood
Assigned To:
======================================================================

Project:                    ALSA - utils
Issue ID:                   843
Category:                   alsactl
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             01-23-2005 11:23 CET
Last Modified:              01-23-2005 11:23 CET

======================================================================
Summary: alsactl does not report error status when it can't
restore levels for all cards
Description:

# modprobe snd-dummy
# alsactl restore Dummy
No state is present for card Dummy
# echo $?
0

It would be helpful if alsactl returned a nonzero status in the event that it is unable to restore settings for the specified card (or, in case it's just "alsactl restore", for one of the cards).

It would be especially helpful if this status were other than 1 so that "No state is present" could be distinguished from "No such device".

# alsactl restore 2
alsactl: set_controls:1119: snd_ctl_open error: No such device
# echo $?
1
======================================================================

Issue History
Date Modified Username Field Change
======================================================================
01-23-05 11:23 jdthood New Issue
======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl