Samsung TVs are notoriously picky when it comes to controlling other devices with CEC (which Samsung call Anynet).
If you use the forum search and look for “Samsung CEC” or “Anynet” or combinations of those you will find quite a few threads with solutions you can try.