Taiwanese chip giant MediaTek is set to snap up its smaller rival MStar after the two agreed a $3.8bn (£2.4bn) deal which they hope will boost their chances in the digital TV and smartphone market and create the world’s fourth largest chip design company.