From: Clemens Ladisch Date: Mon, 28 Jan 2008 07:32:58 +0000 (+0100) Subject: [ALSA] oxygen: fix AK4396 double rate upper limit X-Git-Tag: v2.6.25-rc1~1127^2~31 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=236c4920ea825acbffa7bbba24c182ec6a9a8245;p=linux-2.6 [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 Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/oxygen/hifier.c b/sound/pci/oxygen/hifier.c index 05ea2b6584..51c4d1ae9d 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, 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; diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c index a0457a5709..840e4a66ea 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;