ALSA: HDSP: check for io box before uploading firmware
authorTim Blechmann <tim@klingt.org>
Sun, 9 Nov 2008 11:50:52 +0000 (12:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 9 Nov 2008 11:50:52 +0000 (12:50 +0100)
commit00c9ddd1d4cc73aa0077f379279d716cb0ab0ba5
tree485c97fc09900498e96aa429700ea3cccbd5143a
parentfcef7836a31c6432b41a38867d413ed3d6aa8261
ALSA: HDSP: check for io box before uploading firmware

currently the hdsp driver tries to upload the firmware, even if the
io box is not connected. this patch adds a check for the io box
before trying to upload the firmware.
thus instead of messages complaining about the fifo status and firmware
loading failure, the driver gives a message that no multiface or
digiface is connected.

[A minor coding-style fix by tiwai]

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