aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-01-28 02:32:58 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:30:16 -0500
commit236c4920ea825acbffa7bbba24c182ec6a9a8245 (patch)
tree0004024e67b675c68dadce7d7be96e94e8a2d777 /sound
parent4806ef0cf481a4e41f5046aaf1032a7601049ab6 (diff)
[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')
-rw-r--r--sound/pci/oxygen/hifier.c2
-rw-r--r--sound/pci/oxygen/oxygen.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/oxygen/hifier.c b/sound/pci/oxygen/hifier.c
index 05ea2b65843e..51c4d1ae9d02 100644
--- a/sound/pci/oxygen/hifier.c
+++ b/sound/pci/oxygen/hifier.c
@@ -90,7 +90,7 @@ static void set_ak4396_params(struct oxygen *chip,
90 value = data->ak4396_ctl2 & ~AK4396_DFS_MASK; 90 value = data->ak4396_ctl2 & ~AK4396_DFS_MASK;
91 if (params_rate(params) <= 54000) 91 if (params_rate(params) <= 54000)
92 value |= AK4396_DFS_NORMAL; 92 value |= AK4396_DFS_NORMAL;
93 else if (params_rate(params) < 120000) 93 else if (params_rate(params) <= 108000)
94 value |= AK4396_DFS_DOUBLE; 94 value |= AK4396_DFS_DOUBLE;
95 else 95 else
96 value |= AK4396_DFS_QUAD; 96 value |= AK4396_DFS_QUAD;
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,
206 value = data->ak4396_ctl2 & ~AK4396_DFS_MASK; 206 value = data->ak4396_ctl2 & ~AK4396_DFS_MASK;
207 if (params_rate(params) <= 54000) 207 if (params_rate(params) <= 54000)
208 value |= AK4396_DFS_NORMAL; 208 value |= AK4396_DFS_NORMAL;
209 else if (params_rate(params) < 120000) 209 else if (params_rate(params) <= 108000)
210 value |= AK4396_DFS_DOUBLE; 210 value |= AK4396_DFS_DOUBLE;
211 else 211 else
212 value |= AK4396_DFS_QUAD; 212 value |= AK4396_DFS_QUAD;