My first thought would be a possible ear or tooth issue, too. But is it a whine like he is hurting or a whine like, ohhhh that feels sooo good. I've had dogs that sometimes when they scratch they'll sort of whine/sigh/groan because it apparently feels good to just scratch.