diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-07-25 12:41:17 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 09:58:00 -0400 |
commit | b87c464ea2c27005f592aaf351af40989f90f574 (patch) | |
tree | 1ec740dd134d6fcbd0d98c076c353385542578c7 /sound/pci/ca0106/ca0106_main.c | |
parent | 18b5d32f201462ef7ed3c01773a88b4645128158 (diff) |
[ALSA] ca0106: remove extra commands in SPI DAC init sequence
The init sequence set a number of registers more than once to different
values. It's only necessary to set them once to their final values.
It also never actually updated the digital attenuation settings.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/ca0106/ca0106_main.c')
-rw-r--r-- | sound/pci/ca0106/ca0106_main.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 252710e4f5c8..611fc15a0545 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1262,25 +1262,19 @@ static int __devinit snd_ca0106_pcm(struct snd_ca0106 *emu, int device, struct s | |||
1262 | static unsigned int spi_dac_init[] = { | 1262 | static unsigned int spi_dac_init[] = { |
1263 | SPI_REG(SPI_LDA1_REG, SPI_DA_BIT_0dB), /* 0dB dig. attenuation */ | 1263 | SPI_REG(SPI_LDA1_REG, SPI_DA_BIT_0dB), /* 0dB dig. attenuation */ |
1264 | SPI_REG(SPI_RDA1_REG, SPI_DA_BIT_0dB), | 1264 | SPI_REG(SPI_RDA1_REG, SPI_DA_BIT_0dB), |
1265 | SPI_REG(SPI_PL_REG, 0x00), | 1265 | SPI_REG(SPI_PL_REG, SPI_PL_BIT_L_L | SPI_PL_BIT_R_R | SPI_IZD_BIT), |
1266 | SPI_REG(SPI_PL_REG, SPI_PL_BIT_L_L | SPI_PL_BIT_R_R), | 1266 | SPI_REG(SPI_FMT_REG, SPI_FMT_BIT_I2S | SPI_IWL_BIT_24), |
1267 | SPI_REG(SPI_FMT_REG, SPI_FMT_BIT_RJ | SPI_IWL_BIT_24), | ||
1268 | SPI_REG(SPI_LDA2_REG, SPI_DA_BIT_0dB), | 1267 | SPI_REG(SPI_LDA2_REG, SPI_DA_BIT_0dB), |
1269 | SPI_REG(SPI_RDA2_REG, SPI_DA_BIT_0dB), | 1268 | SPI_REG(SPI_RDA2_REG, SPI_DA_BIT_0dB), |
1270 | SPI_REG(SPI_LDA3_REG, SPI_DA_BIT_0dB), | 1269 | SPI_REG(SPI_LDA3_REG, SPI_DA_BIT_0dB), |
1271 | SPI_REG(SPI_RDA3_REG, SPI_DA_BIT_0dB), | 1270 | SPI_REG(SPI_RDA3_REG, SPI_DA_BIT_0dB), |
1272 | SPI_REG(SPI_MASTDA_REG, SPI_DA_BIT_0dB), | 1271 | SPI_REG(SPI_MASTDA_REG, SPI_DA_BIT_0dB), |
1273 | SPI_REG(9, 0x00), | 1272 | SPI_REG(9, 0x00), |
1274 | SPI_REG(SPI_MS_REG, 0x00), | 1273 | SPI_REG(SPI_MS_REG, SPI_DACD0_BIT | SPI_DACD1_BIT | SPI_DACD2_BIT), |
1275 | SPI_REG(SPI_MS_REG, SPI_RATE_BIT_256), | ||
1276 | SPI_REG(12, 0x00), | 1274 | SPI_REG(12, 0x00), |
1277 | SPI_REG(SPI_LDA4_REG, SPI_DA_BIT_0dB), | 1275 | SPI_REG(SPI_LDA4_REG, SPI_DA_BIT_0dB), |
1278 | SPI_REG(SPI_RDA4_REG, SPI_DA_BIT_0dB), | 1276 | SPI_REG(SPI_RDA4_REG, SPI_DA_BIT_0dB | SPI_DA_BIT_UPDATE), |
1279 | SPI_REG(15, 0x00), | 1277 | SPI_REG(SPI_DACD4_REG, 0x00), |
1280 | SPI_REG(SPI_PL_REG, SPI_PL_BIT_L_L | SPI_PL_BIT_R_R | SPI_IZD_BIT), | ||
1281 | SPI_REG(SPI_FMT_REG, SPI_FMT_BIT_I2S), | ||
1282 | SPI_REG(SPI_FMT_REG, SPI_FMT_BIT_I2S | SPI_IWL_BIT_24), | ||
1283 | SPI_REG(SPI_MS_REG, SPI_DACD0_BIT | SPI_DACD1_BIT | SPI_DACD2_BIT), | ||
1284 | }; | 1278 | }; |
1285 | 1279 | ||
1286 | static unsigned int i2c_adc_init[][2] = { | 1280 | static unsigned int i2c_adc_init[][2] = { |