@@ -187,10 +187,7 @@ static int snd_emu10k1_init(struct snd_emu10k1 *emu, int enable_ir)
187187 } else if (emu -> card_capabilities -> ca0151_chip ) { /* audigy2 */
188188 /* Hacks for Alice3 to work independent of haP16V driver */
189189 /* Setup SRCMulti_I2S SamplingRate */
190- tmp = snd_emu10k1_ptr_read (emu , A_SPDIF_SAMPLERATE , 0 );
191- tmp &= 0xfffff1ff ;
192- tmp |= (0x2 <<9 );
193- snd_emu10k1_ptr_write (emu , A_SPDIF_SAMPLERATE , 0 , tmp );
190+ snd_emu10k1_ptr_write (emu , A_I2S_CAPTURE_RATE , 0 , A_I2S_CAPTURE_96000 );
194191
195192 /* Setup SRCSel (Enable Spdif,I2S SRCMulti) */
196193 snd_emu10k1_ptr20_write (emu , SRCSel , 0 , 0x14 );
@@ -206,25 +203,20 @@ static int snd_emu10k1_init(struct snd_emu10k1 *emu, int enable_ir)
206203 /* Hacks for Alice3 to work independent of haP16V driver */
207204 dev_info (emu -> card -> dev , "Audigy2 value: Special config.\n" );
208205 /* Setup SRCMulti_I2S SamplingRate */
209- tmp = snd_emu10k1_ptr_read (emu , A_SPDIF_SAMPLERATE , 0 );
210- tmp &= 0xfffff1ff ;
211- tmp |= (0x2 <<9 );
212- snd_emu10k1_ptr_write (emu , A_SPDIF_SAMPLERATE , 0 , tmp );
206+ snd_emu10k1_ptr_write (emu , A_I2S_CAPTURE_RATE , 0 , A_I2S_CAPTURE_96000 );
213207
214208 /* Setup SRCSel (Enable Spdif,I2S SRCMulti) */
215- outl (0x600000 , emu -> port + 0x20 );
216- outl (0x14 , emu -> port + 0x24 );
209+ snd_emu10k1_ptr20_write (emu , P17V_SRCSel , 0 , 0x14 );
217210
218211 /* Setup SRCMulti Input Audio Enable */
219- outl (0x7b0000 , emu -> port + 0x20 );
220- outl (0xFF000000 , emu -> port + 0x24 );
212+ snd_emu10k1_ptr20_write (emu , P17V_MIXER_I2S_ENABLE , 0 , 0xFF000000 );
221213
222214 /* Setup SPDIF Out Audio Enable */
223215 /* The Audigy 2 Value has a separate SPDIF out,
224216 * so no need for a mixer switch
225217 */
226- outl ( 0x7a0000 , emu -> port + 0x20 );
227- outl ( 0xFF000000 , emu -> port + 0x24 );
218+ snd_emu10k1_ptr20_write ( emu , P17V_MIXER_SPDIF_ENABLE , 0 , 0xFF000000 );
219+
228220 tmp = inw (emu -> port + A_IOCFG ) & ~0x8 ; /* Clear bit 3 */
229221 outw (tmp , emu -> port + A_IOCFG );
230222 }
0 commit comments