On a charge against two or more defendants jointly, if the jury cannot agree upon a verdict as to all, they may render a verdict as to the defendant or defendants in regard to whom they do agree, on which a judgment must be entered accordingly, and the case as to the other may be tried again.
Where two or more offenses are charged in any accusatory pleading, if the jury cannot agree upon a verdict as to all of them, they may render a verdict as to the charge or charges upon which they do agree, and the charges on which they do not agree may be tried again.
Ca. Pen. Code § 1160