audiofire: correct reporting of sample rate for device firmware 5.8. Patch (and...
commit95299aa409a12895f5955569270674fe4a211d5e
authorjwoithe <jwoithe@2be59082-3212-0410-8809-b0798e1608f0>
Sat, 14 Sep 2013 08:01:38 +0000 (14 08:01 +0000)
committerjwoithe <jwoithe@2be59082-3212-0410-8809-b0798e1608f0>
Sat, 14 Sep 2013 08:01:38 +0000 (14 08:01 +0000)
tree6c8a71607dbd74531439e942e1a6e9acb4ffc4d4
parentbc07d7ca6d395234615054225cabfd3dc2f35692
audiofire: correct reporting of sample rate for device firmware 5.8.  Patch (and the notes below) are from Takashi Sakamoto.

This is a patch for an issue which is not reported. I confirmed this issue with AudioFirePre8 and AudioFire4.

With firmware version 5.8, FFADO mixer fails to set sampling rate and clock source. This is related to the behaviour against EfcGetClock command just after EfcSetClock command.

With previous firmware version, the device can return the actual value with EfcGetClock command just after EfcSetClock. But with this version, there needs to be approximately 100msec. During this period, EfcGetClock return the PREVIOUS state of both of sampling rate and clock source.

This patch adds sleep during 150msec after deserializing response of EfcSetClock.

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