You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@plbossart It seems we didn't use hdac stream control APIs. I think that's why we don't use snd_hdac_ext_stop_streams(). And hda_dsp_stream_free() do things similar to snd_hdac_stream_free_all() + snd_hdac_bus_free_stream_pages()
@plbossart I just checked snd_hdac_ext_stream_decouple(). I believe that we need to call snd_hdac_ext_stream_decouple(false) in hda_dsp_stream_free(). I didn't get SNDRV_PCM_TRIGGER_SUSPEND cmd even when the system is suspended. And hdac_ext_link_stream_assign() will call snd_hdac_ext_stream_decouple(true) when system boots up.
I will send a PR for it tomorrow.
Activity
bardliao commentedon Nov 27, 2018
@plbossart It seems we didn't use hdac stream control APIs. I think that's why we don't use snd_hdac_ext_stop_streams(). And hda_dsp_stream_free() do things similar to snd_hdac_stream_free_all() + snd_hdac_bus_free_stream_pages()
The only thing we missed here is snd_hdac_ext_stream_decouple(). But I don't know if we need to do it or it is done in somewhere else.
snd_hdac_ext_bus_exit() and snd_hdac_link_free_all() are add in #311
plbossart commentedon Nov 27, 2018
snd_hdac_ext_stream_decouple() is used in hda-dai.c
linux/sound/soc/sof/intel/hda-dai.c
Line 138 in f585396
I have absolutely no idea why it's only called on TRIGGER_SUSPEND, makes no sense to me.
bardliao commentedon Dec 3, 2018
@plbossart I just checked snd_hdac_ext_stream_decouple(). I believe that we need to call snd_hdac_ext_stream_decouple(false) in hda_dsp_stream_free(). I didn't get SNDRV_PCM_TRIGGER_SUSPEND cmd even when the system is suspended. And hdac_ext_link_stream_assign() will call snd_hdac_ext_stream_decouple(true) when system boots up.
I will send a PR for it tomorrow.
tracing: Fix wild-memory-access in register_synth_event()
mm: fix kernel BUG when userfaultfd_move encounters swapcache