diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-05-13 09:26:01 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-05-19 13:19:17 +0200 |
commit | ca1f30ad6c3f002d1d9b9355a53b8bbf2fe70588 (patch) | |
tree | ff77de7ca4a032f725c1e3a9251487b5275f42ed /sound/pci/oxygen | |
parent | d55d7a1cbbd069f8368ec5c67480d319e7b227b9 (diff) | |
download | linux-ca1f30ad6c3f002d1d9b9355a53b8bbf2fe70588.tar.gz linux-ca1f30ad6c3f002d1d9b9355a53b8bbf2fe70588.tar.bz2 linux-ca1f30ad6c3f002d1d9b9355a53b8bbf2fe70588.zip |
[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')
-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, if (err < 0) return err; } + if (channel == PCM_MULTICH) { + err = snd_pcm_hw_constraint_minmax + (runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 0, 8192000); + if (err < 0) + return err; + } snd_pcm_set_sync(substream); chip->streams[channel] = substream; |