/* li_write_ad1843_reg writes the specified value to a 16 bit AD1843 register.  */
static void li_write_ad1843_reg(lithium_t *lith, int reg, int newval)
/* li_write_ad1843_reg writes the specified value to a 16 bit AD1843 register.  */
static void li_write_ad1843_reg(lithium_t *lith, int reg, int newval)
{
	spin_lock(&lith->lock);
	{
		if (li_ad1843_wait(lith) == 0) {
			li_writel(lith, LI_CODEC_DATA, newval);
			li_writel(lith, LI_CODEC_COMMAND, LI_CC_DIR_WR | reg);
		}
	}
	spin_unlock(&lith->lock);
}