| changeset 6163: | ffa0f78de1f7 |
|---|---|
| parent 6162: | f263fcce8cef |
| child 6164: | 80d172bed576 |
| author: | cladisch |
| date: | Tue May 13 09:26:01 2008 +0200 (4 years ago) |
| files: | pci/oxygen/oxygen_pcm.c |
| description: | 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. |
--- a/pci/oxygen/oxygen_pcm.c Tue May 13 09:25:39 2008 +0200 +++ b/pci/oxygen/oxygen_pcm.c Tue May 13 09:26:01 2008 +0200 @@ -162,6 +162,12 @@ static int oxygen_open(struct snd_pcm_su err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, 2); + 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; }