Are you positive it's only his ears that seem to be bothering him? Could it be something else? Does he only bark and whine when he hears the sound of a gun? Does he seem to be in pain? Does he seem nervous or anxious? When did he start this behavior and do you know where it started?