When I first started to fly, I used to have to put effort into trying to make my ears pop. After a few lessons and as my hourage increased, I found i was able to release pressure without even thinking about it, usually by the 'yawning' method. I expect its second nature with airline pilots who are flying all the time though!
Many Thanks
Dan