/* snd_hda_codec_setup_stream - set up the codec for streaming @codec: the CODEC to set up @nid: the NID to set up @stream_tag: stream tag to pass, it's between 0x1 and 0xf. @channel_id: channel id to pass, zero based. @format: stream format.  */
void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, u32 stream_tag, int channel_id, int format)
/* snd_hda_codec_setup_stream - set up the codec for streaming @codec: the CODEC to set up @nid: the NID to set up @stream_tag: stream tag to pass, it's between 0x1 and 0xf. @channel_id: channel id to pass, zero based. @format: stream format.  */
void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid, u32 stream_tag, int channel_id, int format)
{
	if (!nid)
		return;
	snd_printdd("hda_codec_setup_stream: "
		    "NID=0x%x, stream=0x%x, channel=%d, format=0x%x\n",
		    nid, stream_tag, channel_id, format);
	snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_CHANNEL_STREAMID,
			    (stream_tag << 4) | channel_id);
	msleep(1);
	snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_STREAM_FORMAT, format);
}