Have you had the dog checked for ear mites? If that is not it , try to put some sweet oil in them, only a few drops and massage around ear. You can find it at most drug stores.
My doctor gave me a sample of calmoseptine for my dogs ears and it helped reduce her itching. That was before I took her to the vet. She had mites.
Well, if your dog's ears are red and has a little wax in it , the, take him/her to the vet. The doctor might subscribe a ear medication. Maybe even two ear medications like my dog. Like and anti-inflammatory and a cleanser. So, you should get it checked out. And, it also can be worse than that so go right away... Thank You. Good Luck