aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/hifier.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-01-30 02:38:30 -0500
committerMercurial server <hg@alsa0.alsa-project.org>2008-01-31 11:30:23 -0500
commit2ea85986dd1fa96ccf0a2f37877d58a57ff6f583 (patch)
tree97d286e5144ee981405ba098f132699cf036a8b5 /sound/pci/oxygen/hifier.c
parent19e2e3c30485ba78a653dc521ed9e1f2b6a8bee1 (diff)
[ALSA] oxygen: revert SPI clock frequency change for AK4396/WM8785
While the AK4396 and WM8785 datasheets say that the SPI clock cycle length must be at least 200 ns, 320 ns seems not to work reliably with the controller, so we better use 160 ns. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/oxygen/hifier.c')
-rw-r--r--sound/pci/oxygen/hifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/oxygen/hifier.c b/sound/pci/oxygen/hifier.c
index 51c4d1ae9d02..3ea1f05228a1 100644
--- a/sound/pci/oxygen/hifier.c
+++ b/sound/pci/oxygen/hifier.c
@@ -56,7 +56,7 @@ static void ak4396_write(struct oxygen *chip, u8 reg, u8 value)
56{ 56{
57 oxygen_write_spi(chip, OXYGEN_SPI_TRIGGER | 57 oxygen_write_spi(chip, OXYGEN_SPI_TRIGGER |
58 OXYGEN_SPI_DATA_LENGTH_2 | 58 OXYGEN_SPI_DATA_LENGTH_2 |
59 OXYGEN_SPI_CLOCK_320 | 59 OXYGEN_SPI_CLOCK_160 |
60 (0 << OXYGEN_SPI_CODEC_SHIFT) | 60 (0 << OXYGEN_SPI_CODEC_SHIFT) |
61 OXYGEN_SPI_CEN_LATCH_CLOCK_HI, 61 OXYGEN_SPI_CEN_LATCH_CLOCK_HI,
62 AK4396_WRITE | (reg << 8) | value); 62 AK4396_WRITE | (reg << 8) | value);