freebsd-dev/sys/dev/sound/pcm
Ariff Abdullah ee43f8a667 From luigi:
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)
2005-11-14 18:20:47 +00:00
..
ac97_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
ac97_patch.c The cmi9739_patch function which is referenced by ac97.c (rev. 1.56) now... 2005-10-02 15:50:22 +00:00
ac97_patch.h The cmi9739_patch function which is referenced by ac97.c (rev. 1.56) now... 2005-10-02 15:50:22 +00:00
ac97.c ac97.c: 2005-11-14 18:19:33 +00:00
ac97.h sys/dev/sound/pcm/ac97.c: 2005-10-02 15:37:40 +00:00
buffer.c Whats New: 2005-07-31 16:16:22 +00:00
buffer.h Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
channel_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
channel.c sys/dev/sound/pcm/ac97.c: 2005-10-02 15:37:40 +00:00
channel.h - channel.h 2005-09-10 18:10:31 +00:00
dsp.c From luigi: 2005-11-14 18:20:47 +00:00
dsp.h Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
fake.c - fake.c 2005-09-10 17:47:39 +00:00
feeder_fmt.c - fake.c 2005-09-10 17:47:39 +00:00
feeder_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
feeder_rate.c Added missing comma. This fixes compilation if we need to enable 2005-10-18 21:18:47 +00:00
feeder_volume.c Soft volume implementation for audio devices without pcm mixer controller. 2005-10-02 15:31:03 +00:00
feeder.c - fake.c 2005-09-10 17:47:39 +00:00
feeder.h Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
mixer_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
mixer.c ac97.c: 2005-11-14 18:19:33 +00:00
mixer.h Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
sndstat.c sys/dev/sound/pcm/sndstat.c: 2005-10-02 15:43:57 +00:00
sound.c sys/dev/sound/pcm/sndstat.c: 2005-10-02 15:43:57 +00:00
sound.h sys/dev/sound/pcm/sndstat.c: 2005-10-02 15:43:57 +00:00
vchan.c Fix vchan speed for hardware with discrete (non-continuous) 2005-10-18 21:33:51 +00:00
vchan.h Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00