aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-05-13 09:26:01 +0200
committerJaroslav Kysela <perex@perex.cz>2008-05-19 13:19:17 +0200
commitca1f30ad6c3f002d1d9b9355a53b8bbf2fe70588 (patch)
treeff77de7ca4a032f725c1e3a9251487b5275f42ed /sound/pci/oxygen
parentd55d7a1cbbd069f8368ec5c67480d319e7b227b9 (diff)
downloadkernel_samsung_smdk4412-ca1f30ad6c3f002d1d9b9355a53b8bbf2fe70588.zip
kernel_samsung_smdk4412-ca1f30ad6c3f002d1d9b9355a53b8bbf2fe70588.tar.gz
kernel_samsung_smdk4412-ca1f30ad6c3f002d1d9b9355a53b8bbf2fe70588.tar.bz2
[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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/oxygen/oxygen_pcm.c b/sound/pci/oxygen/oxygen_pcm.c
index 09a16e4..c4ad65a 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;