Skip to content

Commit f4b1e98

Browse files
cladischtiwai
authored andcommitted
ALSA: firewire-speakers, oxygen, ua101: allow > 10 s periods
Since commit f2b3614 (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: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 030aba5 commit f4b1e98

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎sound/firewire/speakers.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static int fwspk_open(struct snd_pcm_substream *substream)
171171

172172
err = snd_pcm_hw_constraint_minmax(runtime,
173173
SNDRV_PCM_HW_PARAM_PERIOD_TIME,
174-
5000, 8192000);
174+
5000, UINT_MAX);
175175
if (err < 0)
176176
return err;
177177

‎sound/pci/oxygen/oxygen_pcm.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,6 @@ static int oxygen_open(struct snd_pcm_substream *substream,
168168
if (err < 0)
169169
return err;
170170
}
171-
if (channel == PCM_MULTICH) {
172-
err = snd_pcm_hw_constraint_minmax
173-
(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 0, 8192000);
174-
if (err < 0)
175-
return err;
176-
}
177171
snd_pcm_set_sync(substream);
178172
chip->streams[channel] = substream;
179173

‎sound/usb/misc/ua101.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ static int set_stream_hw(struct ua101 *ua, struct snd_pcm_substream *substream,
645645
err = snd_pcm_hw_constraint_minmax(substream->runtime,
646646
SNDRV_PCM_HW_PARAM_PERIOD_TIME,
647647
1500000 / ua->packets_per_second,
648-
8192000);
648+
UINT_MAX);
649649
if (err < 0)
650650
return err;
651651
err = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24);

0 commit comments

Comments
 (0)