This page tells you how to add volume function to your TV application using OSD, Samsung TV’s own volume and mute function. This page also will help you to solve other volume issues you may have.
Implementation of mute functions in applications with custom volume control
Implementation of the built-in TV volume UI elements
Troubleshooting problems with the native Volume OSD on 2012 platform.