aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/oxygen_lib.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-01-16 08:28:54 +0100
committerJaroslav Kysela <perex@perex.cz>2008-01-31 17:29:59 +0100
commit84aa6b7ba746e6f637444d0e14a9b75c0b49a612 (patch)
tree39cfa1399116aa6ecf67d458b315b624f6c48825 /sound/pci/oxygen/oxygen_lib.c
parent31c77643a06313b3a26f4c38c75ceec2a89ad31a (diff)
downloadmrst-s0i3-test-84aa6b7ba746e6f637444d0e14a9b75c0b49a612.tar.gz
mrst-s0i3-test-84aa6b7ba746e6f637444d0e14a9b75c0b49a612.tar.xz
mrst-s0i3-test-84aa6b7ba746e6f637444d0e14a9b75c0b49a612.zip
[ALSA] oxygen: make SPI configuration configurable
Add a field to the model structure so that it is possible to have a card where the SPI outputs 4 and 5 are used for an EEPROM. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/oxygen/oxygen_lib.c')
-rw-r--r--sound/pci/oxygen/oxygen_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c
index ba2bb4995d1..4edf40b65ae 100644
--- a/sound/pci/oxygen/oxygen_lib.c
+++ b/sound/pci/oxygen/oxygen_lib.c
@@ -202,7 +202,7 @@ static void __devinit oxygen_init(struct oxygen *chip)
oxygen_set_bits8(chip, OXYGEN_FUNCTION,
OXYGEN_FUNCTION_RESET_CODEC |
- OXYGEN_FUNCTION_ENABLE_SPI_4_5);
+ chip->model->function_flags);
oxygen_write16(chip, OXYGEN_I2S_MULTICH_FORMAT, 0x010a);
oxygen_write16(chip, OXYGEN_I2S_A_FORMAT, 0x010a);
oxygen_write16(chip, OXYGEN_I2S_B_FORMAT, 0x010a);