2011/9/15 Takashi Iwai tiwai@suse.de:
At Thu, 15 Sep 2011 22:23:12 +0800, Raymond Yau wrote:
BTW, there is some strange behaviour of the non-sticky pcm implementation on ad1988
Refer to commit 0e7adbe263f89ea2ef15b5af5e80a812b2a85025
Disable sticky PCM stream assignment for AD codecs
why hda_codec_cleanup_stream is called twice and this also occur with capture and playback
Isn't it just the power-save? The suspend calls hda_cleanup_all_streams().
That is, the first call is the normal one, and it doesn't clean up the stream actually because of stickiness. The second call is the real cleanup at power-saving.
Takashi
by adding prinkt statement in really cleanup steam() function, really_cleanup_stream is called twice so why is second call if the stream is already really cleanup
ALSA hda_intel.c:1755: azx_pcm_prepare: bufsize=0x10000, format=0x4011 ALSA hda_codec.c:1412: hda_codec_setup_stream: NID=0x4, stream=0x5, channel=0, format=0x4011 ALSA hda_codec.c:1412: hda_codec_setup_stream: NID=0x3, stream=0x5, channel=0, format=0x4011 ALSA hda_codec.c:1412: hda_codec_setup_stream: NID=0x6, stream=0x5, channel=0, format=0x4011 ALSA hda_codec.c:1412: hda_codec_setup_stream: NID=0x5, stream=0x5, channel=0, format=0x4011 ALSA hda_codec.c:1412: hda_codec_setup_stream: NID=0xa, stream=0x5, channel=0, format=0x4011 ALSA hda_codec.c:1475: hda_codec_cleanup_stream: NID=0x4 really cleanup steam ALSA hda_codec.c:1475: hda_codec_cleanup_stream: NID=0x6 really cleanup steam ALSA hda_codec.c:1475: hda_codec_cleanup_stream: NID=0x5 really cleanup steam ALSA hda_codec.c:1475: hda_codec_cleanup_stream: NID=0xa really cleanup steam ALSA hda_codec.c:1475: hda_codec_cleanup_stream: NID=0x3 really cleanup steam ALSA hda_codec.c:1475: hda_codec_cleanup_stream: NID=0x4 really cleanup steam ALSA hda_codec.c:1475: hda_codec_cleanup_stream: NID=0x6 really cleanup steam ALSA hda_codec.c:1475: hda_codec_cleanup_stream: NID=0x5 really cleanup steam ALSA hda_codec.c:1475: hda_codec_cleanup_stream: NID=0xa really cleanup steam ALSA hda_codec.c:1475: hda_codec_cleanup_stream: NID=0x3 really cleanup steam