fireworks: Fix a bug of fallback mechanism for clock information
commit784082f4ec956ebaf4f38bd97650678b0d281cda
authormocchi <mocchi@2be59082-3212-0410-8809-b0798e1608f0>
Tue, 6 May 2014 10:56:12 +0000 (6 10:56 +0000)
committermocchi <mocchi@2be59082-3212-0410-8809-b0798e1608f0>
Tue, 6 May 2014 10:56:12 +0000 (6 10:56 +0000)
tree783db627e917e6440e8c0705871ec5bdf7dc6468
parent18c61c3608e0c154211442e5752d273dc7d91a94
fireworks: Fix a bug of fallback mechanism for clock information

I'm working with wrong understanding about #360.

The log means some commands are successful but they includes wrong values.
In my previous work, I just tested a case that these commands are failed.
So this issue is not still resolved.

This commit adds Fireworks::Device::getClock() with fallback mechanism and
all of methods which get clock information call this method. This fallback
mechanism checks values in contents of response and correct the values if
they're invalid.

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