Lines Matching refs:emu

275 	struct snd_ca0106 *emu = entry->private_data;  in snd_ca0106_proc_iec958()  local
278 value = snd_ca0106_ptr_read(emu, SAMPLE_RATE_TRACKER_STATUS, 0); in snd_ca0106_proc_iec958()
287 value = snd_ca0106_ptr_read(emu, SPDIF_INPUT_STATUS, 0); in snd_ca0106_proc_iec958()
297 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_write32() local
305 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_write32()
306 outl(val, emu->port + (reg & 0xfffffffc)); in snd_ca0106_proc_reg_write32()
307 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_write32()
315 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read32() local
321 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read32()
322 value = inl(emu->port + i); in snd_ca0106_proc_reg_read32()
323 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read32()
331 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read16() local
337 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read16()
338 value = inw(emu->port + i); in snd_ca0106_proc_reg_read16()
339 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read16()
347 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read8() local
353 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read8()
354 value = inb(emu->port + i); in snd_ca0106_proc_reg_read8()
355 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read8()
363 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read1() local
371 value = snd_ca0106_ptr_read(emu, i, j); in snd_ca0106_proc_reg_read1()
381 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read2() local
389 value = snd_ca0106_ptr_read(emu, i, j); in snd_ca0106_proc_reg_read2()
399 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_write() local
406 snd_ca0106_ptr_write(emu, reg, channel_id, val); in snd_ca0106_proc_reg_write()
413 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_i2c_write() local
420 snd_ca0106_i2c_write(emu, reg, val); in snd_ca0106_proc_i2c_write()
425 int snd_ca0106_proc_init(struct snd_ca0106 *emu) in snd_ca0106_proc_init() argument
429 if(! snd_card_proc_new(emu->card, "iec958", &entry)) in snd_ca0106_proc_init()
430 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_iec958); in snd_ca0106_proc_init()
431 if(! snd_card_proc_new(emu->card, "ca0106_reg32", &entry)) { in snd_ca0106_proc_init()
432 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read32); in snd_ca0106_proc_init()
436 if(! snd_card_proc_new(emu->card, "ca0106_reg16", &entry)) in snd_ca0106_proc_init()
437 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read16); in snd_ca0106_proc_init()
438 if(! snd_card_proc_new(emu->card, "ca0106_reg8", &entry)) in snd_ca0106_proc_init()
439 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read8); in snd_ca0106_proc_init()
440 if(! snd_card_proc_new(emu->card, "ca0106_regs1", &entry)) { in snd_ca0106_proc_init()
441 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read1); in snd_ca0106_proc_init()
445 if(! snd_card_proc_new(emu->card, "ca0106_i2c", &entry)) { in snd_ca0106_proc_init()
447 entry->private_data = emu; in snd_ca0106_proc_init()
450 if(! snd_card_proc_new(emu->card, "ca0106_regs2", &entry)) in snd_ca0106_proc_init()
451 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read2); in snd_ca0106_proc_init()