media: Use cm/caf ifdef

Change-Id: I10e96123b28c302e385b96eb7c94b77068346928