/* Write data to WM8904 Register. 
Support and FAQ: visit  */
void wm8904_write_register(uint8_t uc_register_address, uint16_t us_data)
/* Write data to WM8904 Register. 
Support and FAQ: visit  */
void wm8904_write_register(uint8_t uc_register_address, uint16_t us_data)
{
	uint8_t uc_temp_data[2];
	twihs_packet_t packet;
	uc_temp_data[0] = (us_data & 0xff00) >> 8;
	uc_temp_data[1] = us_data & 0xff;
	packet.addr[0]     = uc_register_address;
	packet.addr_length = 0x1;
	packet.buffer      = uc_temp_data;
	packet.length      = 0x2;
	packet.chip        = WM8904_SLAVE_ADDRESS;
	twihs_master_write(WM8904_TWIHS, &packet);
}