ee43f8a667
In SNDCTL_DSP_SETFRAGMENT, if you specify both read and write channels, the existing code first acts on the read channel, but as a side effect it updates the arguments (maxfrags, fragsz) passed by the caller according to acceptable values for the read channel, and then uses the modified values to act on the write channel. The problem with this approach is that, given a (maxfrags, fragsz) user-specified value, the actual values computed by the read and write channels may differ: e.g. the read channel might want to allocate more fragments than what the user specified because it has no side-effects on the delay and it helps in case of slow readers, whereas the write channel needs to use as few fragments as possible to keep the audio latency low (very important with telephony apps). This patch stores the values computed by the read channel into temproary variables so the write channel will use the actual arguments of the ioctl. This patch is very helpful with telephony apps such as asterisk. Submitted by: luigi Approved by: netchild (mentor) |
||
---|---|---|
.. | ||
ac97_if.m | ||
ac97_patch.c | ||
ac97_patch.h | ||
ac97.c | ||
ac97.h | ||
buffer.c | ||
buffer.h | ||
channel_if.m | ||
channel.c | ||
channel.h | ||
dsp.c | ||
dsp.h | ||
fake.c | ||
feeder_fmt.c | ||
feeder_if.m | ||
feeder_rate.c | ||
feeder_volume.c | ||
feeder.c | ||
feeder.h | ||
mixer_if.m | ||
mixer.c | ||
mixer.h | ||
sndstat.c | ||
sound.c | ||
sound.h | ||
vchan.c | ||
vchan.h |