Commit 236c4920 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Jaroslav Kysela

[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: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 4806ef0c
...@@ -90,7 +90,7 @@ static void set_ak4396_params(struct oxygen *chip, ...@@ -90,7 +90,7 @@ static void set_ak4396_params(struct oxygen *chip,
value = data->ak4396_ctl2 & ~AK4396_DFS_MASK; value = data->ak4396_ctl2 & ~AK4396_DFS_MASK;
if (params_rate(params) <= 54000) if (params_rate(params) <= 54000)
value |= AK4396_DFS_NORMAL; value |= AK4396_DFS_NORMAL;
else if (params_rate(params) < 120000) else if (params_rate(params) <= 108000)
value |= AK4396_DFS_DOUBLE; value |= AK4396_DFS_DOUBLE;
else else
value |= AK4396_DFS_QUAD; value |= AK4396_DFS_QUAD;
......
...@@ -206,7 +206,7 @@ static void set_ak4396_params(struct oxygen *chip, ...@@ -206,7 +206,7 @@ static void set_ak4396_params(struct oxygen *chip,
value = data->ak4396_ctl2 & ~AK4396_DFS_MASK; value = data->ak4396_ctl2 & ~AK4396_DFS_MASK;
if (params_rate(params) <= 54000) if (params_rate(params) <= 54000)
value |= AK4396_DFS_NORMAL; value |= AK4396_DFS_NORMAL;
else if (params_rate(params) < 120000) else if (params_rate(params) <= 108000)
value |= AK4396_DFS_DOUBLE; value |= AK4396_DFS_DOUBLE;
else else
value |= AK4396_DFS_QUAD; value |= AK4396_DFS_QUAD;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment