audio: add patch-related utilities

Add the following functions:
  audio_patch_is_valid
  audio_patches_are_equal
  audio_port_configs_are_equal

And helper functions.

Bug: 63901775
Test: systemaudio_tests
Change-Id: I2884e36bd2dc18513afcfb4512559a5231275b5b
1 file changed