diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-04-12 11:33:59 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-05-29 04:00:42 -0400 |
commit | 004e65389714721ce0f52a8f0fc22999d3908a2a (patch) | |
tree | 73e154312778436accf56f1325b0891db9699e6a /sound/core | |
parent | bd7bf042e89941d4e693a0ec68c5093a2bb2adb3 (diff) |
[ALSA] Fix capture on OSS emulation
ALSA<-OSS emulation
Fix the noisy capture on some hardwares over OSS emulation.
Change back to avail_min = period_size for capture direction.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/oss/pcm_oss.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c index 1a805020f57a..6c8fdcaf9f4f 100644 --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c | |||
@@ -464,7 +464,8 @@ static int snd_pcm_oss_change_params(snd_pcm_substream_t *substream) | |||
464 | sw_params->tstamp_mode = SNDRV_PCM_TSTAMP_NONE; | 464 | sw_params->tstamp_mode = SNDRV_PCM_TSTAMP_NONE; |
465 | sw_params->period_step = 1; | 465 | sw_params->period_step = 1; |
466 | sw_params->sleep_min = 0; | 466 | sw_params->sleep_min = 0; |
467 | sw_params->avail_min = 1; | 467 | sw_params->avail_min = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? |
468 | 1 : runtime->period_size; | ||
468 | sw_params->xfer_align = 1; | 469 | sw_params->xfer_align = 1; |
469 | if (atomic_read(&runtime->mmap_count) || | 470 | if (atomic_read(&runtime->mmap_count) || |
470 | (substream->oss.setup && substream->oss.setup->nosilence)) { | 471 | (substream->oss.setup && substream->oss.setup->nosilence)) { |