/* snd_hda_create_spdif_share_sw - create Default PCM switch @codec: the HDA codec @mout: multi-out instance  */
int snd_hda_create_spdif_share_sw(struct hda_codec *codec, struct hda_multi_out *mout)
/* snd_hda_create_spdif_share_sw - create Default PCM switch @codec: the HDA codec @mout: multi-out instance  */
int snd_hda_create_spdif_share_sw(struct hda_codec *codec, struct hda_multi_out *mout)
{
	if (!mout->dig_out_nid)
		return 0;
	return snd_hda_ctl_add(codec, mout->dig_out_nid,
			      snd_ctl_new1(&spdif_share_sw, mout));
}