[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>
This commit is contained in:
Clemens Ladisch 2008-01-28 08:32:58 +01:00 committed by Jaroslav Kysela
parent 4806ef0cf4
commit 236c4920ea
2 changed files with 2 additions and 2 deletions

View 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;

View 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;