Commit f4b1e98a authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Takashi Iwai

ALSA: firewire-speakers, oxygen, ua101: allow > 10 s periods

Since commit f2b3614c (Don't check DMA time-out too shortly),
drivers need no longer restrict their PCM period length to be shorter
than 10 seconds.
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 030aba53
...@@ -171,7 +171,7 @@ static int fwspk_open(struct snd_pcm_substream *substream) ...@@ -171,7 +171,7 @@ static int fwspk_open(struct snd_pcm_substream *substream)
err = snd_pcm_hw_constraint_minmax(runtime, err = snd_pcm_hw_constraint_minmax(runtime,
SNDRV_PCM_HW_PARAM_PERIOD_TIME, SNDRV_PCM_HW_PARAM_PERIOD_TIME,
5000, 8192000); 5000, UINT_MAX);
if (err < 0) if (err < 0)
return err; return err;
......
...@@ -168,12 +168,6 @@ static int oxygen_open(struct snd_pcm_substream *substream, ...@@ -168,12 +168,6 @@ static int oxygen_open(struct snd_pcm_substream *substream,
if (err < 0) if (err < 0)
return err; 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); snd_pcm_set_sync(substream);
chip->streams[channel] = substream; chip->streams[channel] = substream;
......
...@@ -645,7 +645,7 @@ static int set_stream_hw(struct ua101 *ua, struct snd_pcm_substream *substream, ...@@ -645,7 +645,7 @@ static int set_stream_hw(struct ua101 *ua, struct snd_pcm_substream *substream,
err = snd_pcm_hw_constraint_minmax(substream->runtime, err = snd_pcm_hw_constraint_minmax(substream->runtime,
SNDRV_PCM_HW_PARAM_PERIOD_TIME, SNDRV_PCM_HW_PARAM_PERIOD_TIME,
1500000 / ua->packets_per_second, 1500000 / ua->packets_per_second,
8192000); UINT_MAX);
if (err < 0) if (err < 0)
return err; return err;
err = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24); err = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment