/* This function toggles the mute bits in the MUTE register. The CS4270's mute capability is intended for external muting circuitry, so if the board does not have the MUTEA or MUTEB pins connected to such circuitry, then this function will do nothing.  */
static int cs4270_dai_mute(struct snd_soc_dai *dai, int mute)
/* This function toggles the mute bits in the MUTE register. The CS4270's mute capability is intended for external muting circuitry, so if the board does not have the MUTEA or MUTEB pins connected to such circuitry, then this function will do nothing.  */
static int cs4270_dai_mute(struct snd_soc_dai *dai, int mute)
{
	struct snd_soc_codec *codec = dai->codec;
	struct cs4270_private *cs4270 = codec->private_data;
	int reg6;
	reg6 = snd_soc_read(codec, CS4270_MUTE);
	if (mute)
		reg6 |= CS4270_MUTE_DAC_A | CS4270_MUTE_DAC_B;
	else {
		reg6 &= ~(CS4270_MUTE_DAC_A | CS4270_MUTE_DAC_B);
		reg6 |= cs4270->manual_mute;
	}
	return snd_soc_write(codec, CS4270_MUTE, reg6);
}