aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/oxygen_lib.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-01-16 02:28:54 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:59 -0500
commit84aa6b7ba746e6f637444d0e14a9b75c0b49a612 (patch)
tree39cfa1399116aa6ecf67d458b315b624f6c48825 /sound/pci/oxygen/oxygen_lib.c
parent31c77643a06313b3a26f4c38c75ceec2a89ad31a (diff)
[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 ba2bb4995d1e..4edf40b65ae1 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)
202 202
203 oxygen_set_bits8(chip, OXYGEN_FUNCTION, 203 oxygen_set_bits8(chip, OXYGEN_FUNCTION,
204 OXYGEN_FUNCTION_RESET_CODEC | 204 OXYGEN_FUNCTION_RESET_CODEC |
205 OXYGEN_FUNCTION_ENABLE_SPI_4_5); 205 chip->model->function_flags);
206 oxygen_write16(chip, OXYGEN_I2S_MULTICH_FORMAT, 0x010a); 206 oxygen_write16(chip, OXYGEN_I2S_MULTICH_FORMAT, 0x010a);
207 oxygen_write16(chip, OXYGEN_I2S_A_FORMAT, 0x010a); 207 oxygen_write16(chip, OXYGEN_I2S_A_FORMAT, 0x010a);
208 oxygen_write16(chip, OXYGEN_I2S_B_FORMAT, 0x010a); 208 oxygen_write16(chip, OXYGEN_I2S_B_FORMAT, 0x010a);