fireworks: Improve a workaround for AudioFire12 with recent firmwares
commit54f6e3268c2c1f383b7f496241b4b9002befd69e
authormocchi <mocchi@2be59082-3212-0410-8809-b0798e1608f0>
Tue, 6 May 2014 04:17:05 +0000 (6 04:17 +0000)
committermocchi <mocchi@2be59082-3212-0410-8809-b0798e1608f0>
Tue, 6 May 2014 04:17:05 +0000 (6 04:17 +0000)
treedfb769c600dd8fedded63cfe7ba31bd80f559d65
parent9856275284cfaf39eeac6e4cf22046f8dd7aa6e3
fireworks: Improve a workaround for AudioFire12 with recent firmwares

Firmware version 5.0 or later for AudioFire12 has quirks. One of the quirks is
to return invalid values in content of response against command of polled
values.

Acording to ticket #360, this causes assertion which prevents from
buffer-over-run:
http://subversion.ffado.org/ticket/360

Revision 2451 removes this assertion and adds a prevention of buffer-over-run.
http://subversion.ffado.org/changeset/2451

But this is not enough as a workaround because it returns false.

This commit allows to continue process after compensating these values.

git-svn-id: svn+ssh://ffado.org/ffado/trunk@2514 2be59082-3212-0410-8809-b0798e1608f0
libffado/src/fireworks/efc/efc_cmds_hardware.cpp