[Fireworks] add a workaround for Audiofire12 (and maybe Audiofire8)
commitc4f0d2bfbfee5e86eb05bd50dbb99a95a60088ad
authormocchi <mocchi@2be59082-3212-0410-8809-b0798e1608f0>
Mon, 28 Oct 2013 04:12:17 +0000 (28 04:12 +0000)
committermocchi <mocchi@2be59082-3212-0410-8809-b0798e1608f0>
Mon, 28 Oct 2013 04:12:17 +0000 (28 04:12 +0000)
tree85224433084a5a51218c812ab09a62cd25662089
parentd9b446abcd7fdcbab219aa67516ead1d51530166
[Fireworks] add a workaround for Audiofire12 (and maybe Audiofire8)

EfcGetClockCmd over FCP is often failed or return invalid data. This commit add retry for doEfcOverFCP().

When the trials are completely failed, for sampling rate operation, a fallback to 'input/output plug signal format' command is executed. This command seems to be supported by all models.

But the driver can't know current clock source via 'plug signal format' command. This commit add 'm_current_clock' member to keep the id. This member is updated by setClock(). When getClock() is faled even if this member is not set, fallback to internal clock.

git-svn-id: svn+ssh://ffado.org/ffado/trunk@2452 2be59082-3212-0410-8809-b0798e1608f0
libffado/src/fireworks/fireworks_device.cpp
libffado/src/fireworks/fireworks_device.h