summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-core-pcm.c
AgeCommit message (Collapse)AuthorFilesLines
2018-07-11stops the read/write loop when the stream is mutedThierry Bultel1-32/+138
when the stream is muted (due to the configuration, or due to a HAL request), the read/write loop is stopped. The benefit is that muting will work with capture devices that do not implement the mute in their driver. The inconvenient of stopping the read loop is that it has made appear an unexpected side-effect: the poll on capture does not trig for further incoming frames. The workaround is to completely close, then reopen and configure the capture PCM. Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-26Rework the pcm copy loop and save a lot of CPUeelThierry Bultel1-140/+180
- removed the systemd polling usage - uses a while loop for reading - improved the write loop, leveraging the available space at each iteration Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-22pcm core: fixed spurious XRUN issuesThierry Bultel1-87/+241
This fixes the numerous XRUN issues seen on some cards. The trick is to set the buffer_size & period size in hw parameters. These ones are calculated from an expected maximum latency. Also, the writei is done in a loop to be robust to overruns and partial writes. Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-10Cleanup and added return of previous volume when setting new valuefulup1-2/+2
2018-06-07Code cleanup and fixed some typosThierry Bultel1-1/+3
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-06Move PCM write to synchronous write to remove XRUNfulup1-1/+1
2018-06-06Fixed the buffer copy size in read callbackThierry Bultel1-3/+5
Fixes the UNDERRUN issue (seen while playing radio, for instance) Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-06-05Update info command and move HTML5 to new APIfulup1-2/+2
2018-06-04Move to Dynamic Mixer API (work in progress)Fulup Ar Foll1-46/+57
2018-05-18Implements volume rampingFulup Ar Foll1-19/+13
2018-05-13First testable version.Fulup Ar Foll1-17/+12
Mixing with volume and mute per audio role works.
2018-05-13Initial version with softvol,Route,Multi,DmixFulup Ar Foll1-10/+10
2018-05-11Initial version with softvol control and DMIXFulup Ar Foll1-0/+357