diff options
author | James Courtier-Dutton <James@superbug.co.uk> | 2005-12-21 09:41:50 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:31:03 -0500 |
commit | 28bcbdddaffcb2ccf08d06db7cecf047ec66057d (patch) | |
tree | 981402d6e7ef6956818e4ff8799c925ea47e9bd2 /sound | |
parent | ccadc3e38b72629fdfd1290343fdb11813dfecc2 (diff) |
[ALSA] snd-emu10k1: Fix whitespace.
Modules: EMU10K1/EMU10K2 driver
Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/emu10k1/io.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sound/pci/emu10k1/io.c b/sound/pci/emu10k1/io.c index 7d0cb9db4280..08a0cb545822 100644 --- a/sound/pci/emu10k1/io.c +++ b/sound/pci/emu10k1/io.c | |||
@@ -130,15 +130,18 @@ int snd_emu10k1_spi_write(struct snd_emu10k1 * emu, | |||
130 | unsigned int reset, set; | 130 | unsigned int reset, set; |
131 | unsigned int reg, tmp; | 131 | unsigned int reg, tmp; |
132 | int n, result; | 132 | int n, result; |
133 | if (emu->card_capabilities->ca0108_chip) { | 133 | if (emu->card_capabilities->ca0108_chip) |
134 | reg=0x3c; /* PTR20, reg 0x3c */ | 134 | reg = 0x3c; /* PTR20, reg 0x3c */ |
135 | } else { | 135 | else { |
136 | return 1; /* For other cards types the SPI register is currently unknown. */ | 136 | /* For other chip types the SPI register |
137 | * is currently unknown. */ | ||
138 | return 1; | ||
137 | } | 139 | } |
138 | if (data > 0xffff) return 1; /* Only 16bit values allowed */ | 140 | if (data > 0xffff) /* Only 16bit values allowed */ |
141 | return 1; | ||
139 | 142 | ||
140 | tmp = snd_emu10k1_ptr20_read(emu, reg, 0); | 143 | tmp = snd_emu10k1_ptr20_read(emu, reg, 0); |
141 | reset = (tmp & ~0x3ffff) | 0x20000; /* Set xxx20000 */ | 144 | reset = (tmp & ~0x3ffff) | 0x20000; /* Set xxx20000 */ |
142 | set = reset | 0x10000; /* Set xxx1xxxx */ | 145 | set = reset | 0x10000; /* Set xxx1xxxx */ |
143 | snd_emu10k1_ptr20_write(emu, reg, 0, reset | data); | 146 | snd_emu10k1_ptr20_write(emu, reg, 0, reset | data); |
144 | tmp = snd_emu10k1_ptr20_read(emu, reg, 0); /* write post */ | 147 | tmp = snd_emu10k1_ptr20_read(emu, reg, 0); /* write post */ |