Merge changes from topic "ccodec-stop-hal-first" into main

* changes:
  CCodec: stop()/release() HAL before stop using output surface
  aconfig: add a bugfix flag stop_hal_before_surface