[media] az6007: code cleanups and fixes