Lines Matching refs:emu
277 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_iec958() local
280 value = snd_ca0106_ptr_read(emu, SAMPLE_RATE_TRACKER_STATUS, 0); in snd_ca0106_proc_iec958()
289 value = snd_ca0106_ptr_read(emu, SPDIF_INPUT_STATUS, 0); in snd_ca0106_proc_iec958()
299 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_write32() local
307 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_write32()
308 outl(val, emu->port + (reg & 0xfffffffc)); in snd_ca0106_proc_reg_write32()
309 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_write32()
317 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read32() local
323 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read32()
324 value = inl(emu->port + i); in snd_ca0106_proc_reg_read32()
325 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read32()
333 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read16() local
339 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read16()
340 value = inw(emu->port + i); in snd_ca0106_proc_reg_read16()
341 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read16()
349 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read8() local
355 spin_lock_irqsave(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read8()
356 value = inb(emu->port + i); in snd_ca0106_proc_reg_read8()
357 spin_unlock_irqrestore(&emu->emu_lock, flags); in snd_ca0106_proc_reg_read8()
365 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read1() local
373 value = snd_ca0106_ptr_read(emu, i, j); in snd_ca0106_proc_reg_read1()
383 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_read2() local
391 value = snd_ca0106_ptr_read(emu, i, j); in snd_ca0106_proc_reg_read2()
401 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_reg_write() local
408 snd_ca0106_ptr_write(emu, reg, channel_id, val); in snd_ca0106_proc_reg_write()
415 struct snd_ca0106 *emu = entry->private_data; in snd_ca0106_proc_i2c_write() local
422 snd_ca0106_i2c_write(emu, reg, val); in snd_ca0106_proc_i2c_write()
427 int snd_ca0106_proc_init(struct snd_ca0106 *emu) in snd_ca0106_proc_init() argument
431 if(! snd_card_proc_new(emu->card, "iec958", &entry)) in snd_ca0106_proc_init()
432 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_iec958); in snd_ca0106_proc_init()
433 if(! snd_card_proc_new(emu->card, "ca0106_reg32", &entry)) { in snd_ca0106_proc_init()
434 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read32); in snd_ca0106_proc_init()
438 if(! snd_card_proc_new(emu->card, "ca0106_reg16", &entry)) in snd_ca0106_proc_init()
439 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read16); in snd_ca0106_proc_init()
440 if(! snd_card_proc_new(emu->card, "ca0106_reg8", &entry)) in snd_ca0106_proc_init()
441 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read8); in snd_ca0106_proc_init()
442 if(! snd_card_proc_new(emu->card, "ca0106_regs1", &entry)) { in snd_ca0106_proc_init()
443 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read1); in snd_ca0106_proc_init()
447 if(! snd_card_proc_new(emu->card, "ca0106_i2c", &entry)) { in snd_ca0106_proc_init()
449 entry->private_data = emu; in snd_ca0106_proc_init()
452 if(! snd_card_proc_new(emu->card, "ca0106_regs2", &entry)) in snd_ca0106_proc_init()
453 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read2); in snd_ca0106_proc_init()