Fix A1026 configuration bugs

- in doAudience_A1026_Control(): if setting a new path ID on the A1026
 has failed several times, the A1026 will be reset by a call to
 doA1026_init(). However after a reset, the file descriptor for the
 A1026 configuration will be invalid (-1), so the device needs to
 be reopened for the configuration to be successfully reapplied
 after a reset.
- in setParameters(): after setting the noise suppression param,
 the A1026 file descriptor is closed, and needs to be reset to a
 negative value, as this is used in other places in the code to
 indicate it's closed.
This commit is contained in:
Jean-Michel Trivi 2010-02-08 14:19:46 -08:00
parent 6121b241ad
commit c4938a960f

Diff Content Not Available