ALSA: hdsp: check for iobox and upload firmware during ioctl
authorTim Blechmann <tim@klingt.org>
Sat, 8 Nov 2008 13:42:18 +0000 (14:42 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 9 Nov 2008 11:55:18 +0000 (12:55 +0100)
commit3ae7e2e22900b90bbe1d19454405950893c110be
tree2c9917715ee10a4d3997a2ba1b6552a951e3f200
parent00c9ddd1d4cc73aa0077f379279d716cb0ab0ba5
ALSA: hdsp: check for iobox and upload firmware during ioctl

currently, the error message when trying to run hdspmixer or hdspconf
if the breakout box is not connected is somehow misleading, since it
asks the user to upload the firmware.

this patch adds a test, whether the breakout box is connected and
tries to upload the firmware in the case, that it is not present, e.g.
because of power failures of the breakout box.

[Minor coding-style fixes by tiwai]

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme9652/hdsp.c