]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[ALSA] oxygen: fix AK4396 double rate upper limit
authorClemens Ladisch <clemens@ladisch.de>
Mon, 28 Jan 2008 07:32:58 +0000 (08:32 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:30:16 +0000 (17:30 +0100)
Fix the upper sample rate limit for the double rate mode of the AK4396
to the value from the datasheet.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/oxygen/hifier.c
sound/pci/oxygen/oxygen.c

index 05ea2b65843e7d16aaa1a5d5f279d9fcb145d0ef..51c4d1ae9d023e6466d4860ac514f489551e4b69 100644 (file)
@@ -90,7 +90,7 @@ static void set_ak4396_params(struct oxygen *chip,
        value = data->ak4396_ctl2 & ~AK4396_DFS_MASK;
        if (params_rate(params) <= 54000)
                value |= AK4396_DFS_NORMAL;
-       else if (params_rate(params) < 120000)
+       else if (params_rate(params) <= 108000)
                value |= AK4396_DFS_DOUBLE;
        else
                value |= AK4396_DFS_QUAD;
index a0457a570946c917b4e7d3a269b993c82a02c877..840e4a66eacdfeaba0f8cd040934a88caa305102 100644 (file)
@@ -206,7 +206,7 @@ static void set_ak4396_params(struct oxygen *chip,
        value = data->ak4396_ctl2 & ~AK4396_DFS_MASK;
        if (params_rate(params) <= 54000)
                value |= AK4396_DFS_NORMAL;
-       else if (params_rate(params) < 120000)
+       else if (params_rate(params) <= 108000)
                value |= AK4396_DFS_DOUBLE;
        else
                value |= AK4396_DFS_QUAD;