Petersson inner products