| Summary: | audio/alsa: avoid configuring hardware parameters with only a single period | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Anthony Pesch <inolen> |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | HG 2.1 | Keywords: | target-2.0.10 |
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | patch | ||
|
Description
Anthony Pesch
2019-07-06 03:37:07 UTC
This sounds good, and may help fix the audio dropouts with Steam Link on Raspberry Pi. Ryan, can you verify? I'm testing this in a few hours, but it looks good to me at first glance. --ryan. Okay, I'll go ahead and test it now on Raspberry Pi. This has been committed for testing: https://hg.libsdl.org/SDL/rev/3c4a4b1077cd Ryan, can you make sure this doesn't regress on desktop Linux? Are these calls available in older ALSA implementations? (In reply to Sam Lantinga from comment #4) > Ryan, can you make sure this doesn't regress on desktop Linux? Are these > calls available in older ALSA implementations? These APIs showed up in February 2001, so I think we're good. :) https://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff;h=a7561a9c7eaf4f0a5daa48f049c3d1e9a503380b I'll still test this later today, regardless. --ryan. (In reply to Sam Lantinga from comment #4) > make sure this doesn't regress on desktop Linux? Seems to run fine on my CentOS-6.10. . Running quakespasm with SDL_AUDIODRIVER set to alsa, I get: SDL audio spec : 44100 Hz, 1024 samples, 2 channels SDL audio driver: alsa - HDA Intel, VT1708B 8-Ch Analog, 65536 bytes buffer .. and the sound is OK. > Are these calls available in older ALSA implementations? AFAIK, they are available since alsa-lib-0.9.0 (In reply to Ozkan Sezer from comment #6) > .. and the sound is OK. Confirmed working on Ubuntu 16.04, too. I think we're solid here. Resolving this bug, thanks Anthony (and everyone else, too)! --ryan. |