aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/oxygen.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-01-28 08:32:58 +0100
committerJaroslav Kysela <perex@perex.cz>2008-01-31 17:30:16 +0100
commit236c4920ea825acbffa7bbba24c182ec6a9a8245 (patch)
tree0004024e67b675c68dadce7d7be96e94e8a2d777 /sound/pci/oxygen/oxygen.c
parent[ALSA] hda-codec - Add SPDIF controls as slave on AD codecs (diff)
downloadlinux-dev-236c4920ea825acbffa7bbba24c182ec6a9a8245.tar.xz
linux-dev-236c4920ea825acbffa7bbba24c182ec6a9a8245.zip
[ALSA] oxygen: fix AK4396 double rate upper limit
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>
Diffstat (limited to 'sound/pci/oxygen/oxygen.c')
-rw-r--r--sound/pci/oxygen/oxygen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c
index a0457a570946..840e4a66eacd 100644
--- a/sound/pci/oxygen/oxygen.c
+++ b/sound/pci/oxygen/oxygen.c
@@ -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;