static void wmc_clear(int reg, unsigned bits) { wmc_write(reg, wmc_regs[reg] & ~bits); }
static void wmc_write_masked(unsigned int reg, unsigned int bits, unsigned int mask) { wmc_write(reg, (wmc_regs[reg] & ~mask) | (bits & mask)); }
void wmc_clear(unsigned int reg, unsigned int bits) { wmc_write(reg, wmc_regs[reg] & ~bits); }
void wmc_set(unsigned int reg, unsigned int bits) { wmc_write(reg, wmc_regs[reg] | bits); }
static void wmc_set(int reg, unsigned bits) { wmc_write(reg, wmc_regs[reg] | bits); }
static void codec_set_active(int active) { /* set active to 0x0 or 0x1 */ wmc_write(ACTIVECTRL, active ? ACTIVECTRL_ACTIVE : 0); }