diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-05-13 03:26:01 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-05-19 07:19:17 -0400 |
commit | ca1f30ad6c3f002d1d9b9355a53b8bbf2fe70588 (patch) | |
tree | ff77de7ca4a032f725c1e3a9251487b5275f42ed /sound/pci/oxygen/oxygen_pcm.c | |
parent | d55d7a1cbbd069f8368ec5c67480d319e7b227b9 (diff) |
[ALSA] virtuoso: restrict period time to less than 10 s
Add a constraint for the period time so that there are less than ten
seconds between interrupts so that ALSA does not assume that the device
is dead.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/oxygen/oxygen_pcm.c')
-rw-r--r-- | sound/pci/oxygen/oxygen_pcm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/oxygen/oxygen_pcm.c b/sound/pci/oxygen/oxygen_pcm.c index 09a16e459de9..c4ad65a3406f 100644 --- a/sound/pci/oxygen/oxygen_pcm.c +++ b/sound/pci/oxygen/oxygen_pcm.c | |||
@@ -165,6 +165,12 @@ static int oxygen_open(struct snd_pcm_substream *substream, | |||
165 | if (err < 0) | 165 | if (err < 0) |
166 | return err; | 166 | return err; |
167 | } | 167 | } |
168 | if (channel == PCM_MULTICH) { | ||
169 | err = snd_pcm_hw_constraint_minmax | ||
170 | (runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 0, 8192000); | ||
171 | if (err < 0) | ||
172 | return err; | ||
173 | } | ||
168 | snd_pcm_set_sync(substream); | 174 | snd_pcm_set_sync(substream); |
169 | chip->streams[channel] = substream; | 175 | chip->streams[channel] = substream; |
170 | 176 | ||