Hybrid active and passive noise control of cavities