/* snd_hda_multi_out_dig_open - open the digital out in the exclusive mode  */
int snd_hda_multi_out_dig_open(struct hda_codec *codec, struct hda_multi_out *mout)
/* snd_hda_multi_out_dig_open - open the digital out in the exclusive mode  */
int snd_hda_multi_out_dig_open(struct hda_codec *codec, struct hda_multi_out *mout)
{
	mutex_lock(&codec->spdif_mutex);
	if (mout->dig_out_used == HDA_DIG_ANALOG_DUP)
		cleanup_dig_out_stream(codec, mout->dig_out_nid);
	mout->dig_out_used = HDA_DIG_EXCLUSIVE;
	mutex_unlock(&codec->spdif_mutex);
	return 0;
}