Changeset 479 for GPL/trunk/alsa-kernel/pci/emu10k1
- Timestamp:
- May 1, 2010, 9:49:10 PM (16 years ago)
- Location:
- GPL/trunk/alsa-kernel/pci/emu10k1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/pci/emu10k1/emufx.c
r426 r479 40 40 #include <sound/tlv.h> 41 41 #include <sound/emu10k1.h> 42 #include <proto.h> 42 43 43 44 #if 0 /* for testing purposes - digital out -> capture */ … … 53 54 /* 54 55 * Tables 55 */ 56 */ 56 57 57 58 static char *fxbuses[16] = { … … 304 305 /* 305 306 */ 306 307 307 308 static inline mm_segment_t snd_enter_user(void) 308 309 { … … 1256 1257 snd_emu10k1_init_stereo_control(&controls[nctl++], "Synth Capture Volume", gpr, 0); 1257 1258 gpr += 2; 1258 1259 1259 1260 /* 1260 1261 * inputs … … 1332 1333 gpr, 0); 1333 1334 gpr += 2; 1334 1335 1335 1336 /* Philips ADC Playback Volume */ 1336 1337 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_ADC_L); … … 1530 1531 } 1531 1532 1532 /* IEC958 Optical Raw Playback Switch */ 1533 /* IEC958 Optical Raw Playback Switch */ 1533 1534 gpr_map[gpr++] = 0; 1534 1535 gpr_map[gpr++] = 0x1008; … … 1570 1571 snd_printk(KERN_INFO "EMU2 inputs on\n"); 1571 1572 for (z = 0; z < 0x10; z++) { 1572 snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, 1573 snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, 1573 1574 bit_shifter16, 1574 1575 A3_EMU32IN(z), … … 2295 2296 * and EXTOUT_ALFE, so we can't connect inputs to them for multitrack recording. 2296 2297 * 2297 * Since only 14 of the 16 EXTINs are used, this is not a big problem. 2298 * We route AC97L and R to FX capture 14 and 15, SPDIF CD in to FX capture 2299 * 0 and 3, then the rest of the EXTINs to the corresponding FX capture 2300 * channel. Multitrack recorders will still see the center/lfe output signal 2298 * Since only 14 of the 16 EXTINs are used, this is not a big problem. 2299 * We route AC97L and R to FX capture 14 and 15, SPDIF CD in to FX capture 2300 * 0 and 3, then the rest of the EXTINs to the corresponding FX capture 2301 * channel. Multitrack recorders will still see the center/lfe output signal 2301 2302 * on the second and third channels. 2302 2303 */ … … 2311 2312 OP(icode, &ptr, iACC3, FXBUS2(z), C_00000000, C_00000000, EXTIN(z)); 2312 2313 } 2313 2314 2314 2315 2315 2316 if (gpr > tmp) { -
GPL/trunk/alsa-kernel/pci/emu10k1/io.c
r426 r479 102 102 EXPORT_SYMBOL(snd_emu10k1_ptr_write); 103 103 104 unsigned int snd_emu10k1_ptr20_read(struct snd_emu10k1 * emu, 105 unsigned int reg, 104 unsigned int snd_emu10k1_ptr20_read(struct snd_emu10k1 * emu, 105 unsigned int reg, 106 106 unsigned int chn) 107 107 { 108 108 unsigned long flags; 109 109 unsigned int regptr, val; 110 110 111 111 regptr = (reg << 16) | chn; 112 112 … … 118 118 } 119 119 120 void snd_emu10k1_ptr20_write(struct snd_emu10k1 *emu, 121 unsigned int reg, 122 unsigned int chn, 120 void snd_emu10k1_ptr20_write(struct snd_emu10k1 *emu, 121 unsigned int reg, 122 unsigned int chn, 123 123 unsigned int data) 124 124 { … … 245 245 err = -EINVAL; 246 246 } 247 247 248 248 spin_unlock(&emu->i2c_lock); 249 249 return err; … … 257 257 return 1; 258 258 reg += 0x40; /* 0x40 upwards are registers. */ 259 if (value < 0 || value> 0x3f) /* 0 to 0x3f are values */259 if (value > 0x3f) /* 0 to 0x3f are values */ 260 260 return 1; 261 261 spin_lock_irqsave(&emu->emu_lock, flags);
Note:
See TracChangeset
for help on using the changeset viewer.
