[alsa-devel] hda- Disable Sticky PCM
Takashi Iwai
tiwai at suse.de
Sun Sep 18 10:54:03 CEST 2011
At Sat, 17 Sep 2011 11:16:28 +0800,
Raymond Yau wrote:
>
> 2011/9/15 Takashi Iwai <tiwai at 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
Well, I can't reproduce it in hda-emu, so I don't know now.
Try to get a stacktrace to see what's calling there actually.
Takashi
>
>
> 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
>
More information about the Alsa-devel
mailing list