I haven´t. I always get confused about what is a mirrored, 90', 180' rotated image...
And my tablet don´t have any orientation, só I had never thought about it.
Are you using linux or Android?
I know capture driver can handle some camera configuration (and obviously camera driver as well).
Open the file
kernel/drivers/media/video/mxc/capture/mxc_v4l2_capture.c
and search for rotate or for function mxc_v4l2_s_param