Hi,
eNb decides which pucch format should be used by UE based on time, for example, if harq is about to arrive in a tti and that tti is also the CQI opportunity subframe, then enb knows that it is CQI+HARQ opportunity and therefore pucch format format 2/2a should be used.