Bug 13890 - Baby & Fab4 ALSA configuration not robust
: Baby & Fab4 ALSA configuration not robust
Status: NEW
Product: SqueezePlay
Classification: Unclassified
Component: Audio
: unspecified
: Other Other
: -- normal with 1 vote (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-06 22:35 UTC by Alan Young
Modified: 2011-04-14 23:33 UTC (History)
1 user (show)

See Also:
Category: Bug


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Young 2009-09-06 22:35:14 UTC
See bug 13884

The configuration of various ALSA PCM parameters in the audio stacks on Baby & Fab4 is very sensitive to the specific details and will fail if other combinations of values are used that should, on the face of it, be acceptable.

Currently we set sample-rate(x), channels(2), periods(2), buffer-time(20ms) and this works across all standard sample rates from 8000-96000. Changing the buffer time to 40ms, for example, or setting period-time instead of buffer-time will cause configuration to fail for one or more sample-rates:

(1) decode_alsa_backend() should be made robust against failues of _pcmopen(), at least for anything other than 44100 samples/s and should return an error -> STMn in such cases;

(2) we need to get to the bottom of why configuration fails in these cases.