The OP says this, so perhaps not.Could it be a specific airplay issue?
I really don't know anything about how airplay works.
"I do stop iTunes and shut off airplay but still no cd playback when Optical is selected."
@Padspawsclaws,
However,
If your CD player has a line out, you may want to test it. You can't solve the Optical issue, but if the line-in switching works, at least you know that AirPlay is not the cause.