Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92141
b: refs/heads/master
c: f5e09ef
h: refs/heads/master
i:
  92139: 547c308
v: v3
  • Loading branch information
Atsushi Nemoto authored and Takashi Iwai committed Apr 24, 2008
1 parent 26032cc commit 53ed3c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b32300a4ce78b4df92f33c455ffe644b36f0ff1a
refs/heads/master: f5e09ef0985ff01af6b4a12954840467f153a41c
6 changes: 6 additions & 0 deletions trunk/sound/spi/at73c213.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,13 @@ static int snd_at73c213_pcm_open(struct snd_pcm_substream *substream)
{
struct snd_at73c213 *chip = snd_pcm_substream_chip(substream);
struct snd_pcm_runtime *runtime = substream->runtime;
int err;

/* ensure buffer_size is a multiple of period_size */
err = snd_pcm_hw_constraint_integer(runtime,
SNDRV_PCM_HW_PARAM_PERIODS);
if (err < 0)
return err;
snd_at73c213_playback_hw.rate_min = chip->bitrate;
snd_at73c213_playback_hw.rate_max = chip->bitrate;
runtime->hw = snd_at73c213_playback_hw;
Expand Down

0 comments on commit 53ed3c4

Please sign in to comment.