diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-31 18:16:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-31 18:16:28 -0500 |
commit | e1a9c9872dd004617555dff079b357a6ffd945e9 (patch) | |
tree | c34779e59712ff345f8e4ee97e74086a85b34974 /sound/core/oss/pcm_oss.c | |
parent | fcc3ff4f9d695a80dc6e6058e0d631a3026ed4c3 (diff) | |
parent | 2ecba4ffbbc6c85fce8c3878514be415edace413 (diff) |
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/perex/alsa
* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/perex/alsa: (299 commits)
[ALSA] version 1.0.16rc2
[ALSA] hda: fix Mic in as output
[ALSA] emu10k1 - Another EMU0404 Board ID
[ALSA] emu10k1 - Fix kthread handling at resume
[ALSA] emu10k1: General cleanup, add new locks, fix alsa bug#3501, kernel bug#9304.
[ALSA] emu10k1 - Use enum for emu_model types
[ALSA] emu10k1 - Don't create emu1010 controls for non-emu boards
[ALSA] emu10k1 - 1616(M) cardbus improvements
[ALSA] snd:emu10k1: E-Mu updates. Fixes to firmware loading and support for 0404.
[ALSA] emu10k1: Add comments regarding E-Mu ins and outs.
[ALSA] oxygen: revert SPI clock frequency change for AK4396/WM8785
[ALSA] es1938 - improve capture hw pointer reads
[ALSA] HDA-Intel - Add support for Intel SCH
[ALSA] hda: Add GPIO mute support to STAC9205
[ALSA] hda-codec - Add Dell T3400 support
[ALSA] hda-codec - Add model for HP DV9553EG laptop
[ALSA] hda-codec - Control SPDIF as slave
[ALSA] hda_intel: ALSA HD Audio patch for Intel ICH10 DeviceID's
[ALSA] Fix Oops with PCM OSS sync
[ALSA] hda-codec - Add speaker automute to ALC262 HP models
...
Diffstat (limited to 'sound/core/oss/pcm_oss.c')
-rw-r--r-- | sound/core/oss/pcm_oss.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c index d0c4ceb9f0b4..4c601b192ddf 100644 --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #define OSS_DEBUG | 26 | #define OSS_DEBUG |
27 | #endif | 27 | #endif |
28 | 28 | ||
29 | #include <sound/driver.h> | ||
30 | #include <linux/init.h> | 29 | #include <linux/init.h> |
31 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
32 | #include <linux/time.h> | 31 | #include <linux/time.h> |
@@ -985,10 +984,8 @@ static int snd_pcm_oss_change_params(struct snd_pcm_substream *substream) | |||
985 | sw_params->stop_threshold = runtime->buffer_size; | 984 | sw_params->stop_threshold = runtime->buffer_size; |
986 | sw_params->tstamp_mode = SNDRV_PCM_TSTAMP_NONE; | 985 | sw_params->tstamp_mode = SNDRV_PCM_TSTAMP_NONE; |
987 | sw_params->period_step = 1; | 986 | sw_params->period_step = 1; |
988 | sw_params->sleep_min = 0; | ||
989 | sw_params->avail_min = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? | 987 | sw_params->avail_min = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? |
990 | 1 : runtime->period_size; | 988 | 1 : runtime->period_size; |
991 | sw_params->xfer_align = 1; | ||
992 | if (atomic_read(&substream->mmap_count) || | 989 | if (atomic_read(&substream->mmap_count) || |
993 | substream->oss.setup.nosilence) { | 990 | substream->oss.setup.nosilence) { |
994 | sw_params->silence_threshold = 0; | 991 | sw_params->silence_threshold = 0; |
@@ -1624,6 +1621,7 @@ static int snd_pcm_oss_sync(struct snd_pcm_oss_file *pcm_oss_file) | |||
1624 | snd_pcm_format_set_silence(runtime->format, | 1621 | snd_pcm_format_set_silence(runtime->format, |
1625 | runtime->oss.buffer, | 1622 | runtime->oss.buffer, |
1626 | size1); | 1623 | size1); |
1624 | size1 /= runtime->channels; /* frames */ | ||
1627 | fs = snd_enter_user(); | 1625 | fs = snd_enter_user(); |
1628 | snd_pcm_lib_write(substream, (void __user *)runtime->oss.buffer, size1); | 1626 | snd_pcm_lib_write(substream, (void __user *)runtime->oss.buffer, size1); |
1629 | snd_leave_user(fs); | 1627 | snd_leave_user(fs); |