Lines Matching defs:snd_ca0106_ptr_write
300 void snd_ca0106_ptr_write(struct snd_ca0106 *emu,
328 snd_ca0106_ptr_write(emu, reg, 0, reset | data);
330 snd_ca0106_ptr_write(emu, reg, 0, set | data);
343 snd_ca0106_ptr_write(emu, reg, 0, reset | data);
365 /* snd_ca0106_ptr_write(emu, I2C_D0, 0, tmp); */
368 snd_ca0106_ptr_write(emu, I2C_D1, 0, tmp);
376 snd_ca0106_ptr_write(emu, I2C_A, 0, tmp);
660 snd_ca0106_ptr_write(emu, 0x40, 0, reg40);
663 snd_ca0106_ptr_write(emu, 0x71, 0, reg71);
670 snd_ca0106_ptr_write(emu, PLAYBACK_LIST_ADDR, channel, emu->buffer.addr+(8*16*channel));
671 snd_ca0106_ptr_write(emu, PLAYBACK_LIST_SIZE, channel, (runtime->periods - 1) << 19);
672 snd_ca0106_ptr_write(emu, PLAYBACK_LIST_PTR, channel, 0);
673 snd_ca0106_ptr_write(emu, PLAYBACK_DMA_ADDR, channel, runtime->dma_addr);
674 snd_ca0106_ptr_write(emu, PLAYBACK_PERIOD_SIZE, channel, frames_to_bytes(runtime, runtime->period_size)<<16); // buffer size in bytes
675 snd_ca0106_ptr_write(emu, PLAYBACK_PERIOD_SIZE, channel, 0); // buffer size in bytes
676 snd_ca0106_ptr_write(emu, PLAYBACK_POINTER, channel, 0);
677 snd_ca0106_ptr_write(emu, 0x07, channel, 0x0);
678 snd_ca0106_ptr_write(emu, 0x08, channel, 0);
679 snd_ca0106_ptr_write(emu, PLAYBACK_MUTE, 0x0, 0x0); /* Unmute output */
739 snd_ca0106_ptr_write(emu, 0x71, 0, reg71);
746 snd_ca0106_ptr_write(emu, 0x13, channel, 0);
747 snd_ca0106_ptr_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr);
748 snd_ca0106_ptr_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_size)<<16); // buffer size in bytes
749 snd_ca0106_ptr_write(emu, CAPTURE_POINTER, channel, 0);
791 snd_ca0106_ptr_write(emu, EXTENDED_INT_MASK, 0, snd_ca0106_ptr_read(emu, EXTENDED_INT_MASK, 0) | (extended));
792 snd_ca0106_ptr_write(emu, BASIC_INTERRUPT, 0, snd_ca0106_ptr_read(emu, BASIC_INTERRUPT, 0)|(basic));
795 snd_ca0106_ptr_write(emu, BASIC_INTERRUPT, 0, snd_ca0106_ptr_read(emu, BASIC_INTERRUPT, 0) & ~(basic));
796 snd_ca0106_ptr_write(emu, EXTENDED_INT_MASK, 0, snd_ca0106_ptr_read(emu, EXTENDED_INT_MASK, 0) & ~(extended));
817 snd_ca0106_ptr_write(emu, EXTENDED_INT_MASK, 0, snd_ca0106_ptr_read(emu, EXTENDED_INT_MASK, 0) | (0x110000<<channel));
818 snd_ca0106_ptr_write(emu, BASIC_INTERRUPT, 0, snd_ca0106_ptr_read(emu, BASIC_INTERRUPT, 0)|(0x100<<channel));
822 snd_ca0106_ptr_write(emu, BASIC_INTERRUPT, 0, snd_ca0106_ptr_read(emu, BASIC_INTERRUPT, 0) & ~(0x100<<channel));
823 snd_ca0106_ptr_write(emu, EXTENDED_INT_MASK, 0, snd_ca0106_ptr_read(emu, EXTENDED_INT_MASK, 0) & ~(0x110000<<channel));
1023 snd_ca0106_ptr_write(chip, BASIC_INTERRUPT, 0, 0);
1025 snd_ca0106_ptr_write(chip, EXTENDED_INT_MASK, 0, 0);
1096 snd_ca0106_ptr_write(chip, EXTENDED_INT, 0, stat76);
1314 snd_ca0106_ptr_write(chip, SPCS0, 0,
1321 snd_ca0106_ptr_write(chip, SPCS1, 0,
1327 snd_ca0106_ptr_write(chip, SPCS2, 0,
1333 snd_ca0106_ptr_write(chip, SPCS3, 0,
1340 snd_ca0106_ptr_write(chip, PLAYBACK_MUTE, 0, 0x00fc0000);
1341 snd_ca0106_ptr_write(chip, CAPTURE_MUTE, 0, 0x00fc0000);
1347 //snd_ca0106_ptr_write(chip, SPDIF_SELECT2, 0, 0xf0f003f); /* OSS drivers set this. */
1349 snd_ca0106_ptr_write(chip, SPDIF_SELECT1, 0, 0xf);
1350 snd_ca0106_ptr_write(chip, SPDIF_SELECT2, 0, 0x000f0000); /* 0x0b000000 for digital, 0x000b0000 for analog, from win2000 drivers. Use 0x000f0000 for surround71 */
1352 //snd_ca0106_ptr_write(chip, 0x45, 0, 0); /* Analogue out */
1353 //snd_ca0106_ptr_write(chip, 0x45, 0, 0xf00); /* Digital out */
1355 snd_ca0106_ptr_write(chip, CAPTURE_CONTROL, 0, 0x40c81000); /* goes to 0x40c80000 when doing SPDIF IN/OUT */
1356 snd_ca0106_ptr_write(chip, CAPTURE_CONTROL, 1, 0xffffffff); /* (Mute) CAPTURE feedback into PLAYBACK volume. Only lower 16 bits matter. */
1357 snd_ca0106_ptr_write(chip, CAPTURE_CONTROL, 2, 0x30300000); /* SPDIF IN Volume */
1358 snd_ca0106_ptr_write(chip, CAPTURE_CONTROL, 3, 0x00700000); /* SPDIF IN Volume, 0x70 = (vol & 0x3f) | 0x40 */
1359 snd_ca0106_ptr_write(chip, PLAYBACK_ROUTING1, 0, 0x32765410);
1360 snd_ca0106_ptr_write(chip, PLAYBACK_ROUTING2, 0, 0x76767676);
1361 snd_ca0106_ptr_write(chip, CAPTURE_ROUTING1, 0, 0x32765410);
1362 snd_ca0106_ptr_write(chip, CAPTURE_ROUTING2, 0, 0x76767676);
1364 snd_ca0106_ptr_write(chip, CAPTURE_VOLUME1, ch, 0x30303030); /* Only high 16 bits matter */
1365 snd_ca0106_ptr_write(chip, CAPTURE_VOLUME2, ch, 0x30303030);
1366 //snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME1, ch, 0x40404040); /* Mute */
1367 //snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME2, ch, 0x40404040); /* Mute */
1368 snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME1, ch, 0xffffffff); /* Mute */
1369 snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME2, ch, 0xffffffff); /* Mute */
1373 snd_ca0106_ptr_write(chip, CAPTURE_SOURCE, 0x0, 0x333300e4);
1378 snd_ca0106_ptr_write(chip, CAPTURE_SOURCE, 0x0, 0x444400e4);
1383 snd_ca0106_ptr_write(chip, CAPTURE_SOURCE, 0x0, 0x333300e4);
1459 snd_ca0106_ptr_write((struct snd_ca0106 *)(midi->dev_id), midi->port + idx, 0, data);