Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=df86d1149f4b7b77158755b85b85f94e7bade32f
Commit:     df86d1149f4b7b77158755b85b85f94e7bade32f
Parent:     7c7fc2d44b7a660846115e65b67772b6742a14d8
Author:     Heikki Lindholm <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 23 15:37:48 2007 +0100
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 17:29:28 2008 +0100

    [ALSA] add number of periods constraint to snd-aoa
    
    The aoa driver is not specifying constraints on number of periods, and, it
    seems, it might end with a non-integer number, which it cannot deal with.
    Fix by adding a proper constraint.
    
    Signed-off-by: Heikki Lindholm  <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c 
b/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
index c6b42f9..a4b0e1a 100644
--- a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
+++ b/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c
@@ -194,6 +194,12 @@ static int i2sbus_pcm_open(struct i2sbus_dev *i2sdev, int 
in)
        hw->period_bytes_max = 16384;
        hw->periods_min = 3;
        hw->periods_max = MAX_DBDMA_COMMANDS;
+       err = snd_pcm_hw_constraint_integer(pi->substream->runtime,
+                                           SNDRV_PCM_HW_PARAM_PERIODS);
+       if (err < 0) {
+               result = err;
+               goto out_unlock;
+       }
        list_for_each_entry(cii, &sdev->codec_list, list) {
                if (cii->codec->open) {
                        err = cii->codec->open(cii, pi->substream);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to