]> git.alsa-project.org Git - alsa-utils.git/commit
alsa-info: Skip reading empty SoundWire device info HEAD master
authorTakashi Iwai <tiwai@suse.de>
Wed, 16 Sep 2026 13:05:58 +0000 (15:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Sep 2026 13:19:58 +0000 (15:19 +0200)
commitf3537ede21d0bc5b34835988752523b08459c532
tree9c56bcabc9b2af468a5f547691d2baf817eea425
parentcd6c92333b735ec93dea45731671d263601bc464
alsa-info: Skip reading empty SoundWire device info

The SoundWire device status information is gathered from ACPI adr
sysfs files, but since we take only the entries for the known vendors,
this list can be empty, resulting in no $TEMPDIR/sdwstatus.tmp file
created.  This will end up with the unexpected (non-fatal) errors for
alsa-info.sh.

For addressing it, add the check of the existence of tmp file before
reading it.

Link: https://bugzilla.suse.com/show_bug.cgi?id=1279431
Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsa-info/alsa-info.sh