title: Android link headphone volume to master volume
body: <p>I have an android TV (Philips 49PUS6401)
  I want to connect a surround sound system to it which is much better quality than the built in speakers even when only being used in stereo.</p>
  
  <p>however this TV separates the volume control for the master output and the headphone output, the result being that even with the in TV speakers turned off, the volume keys on the remote do not adjust the headphone volume (which i'm using as a line out)  </p>
  
  <p>I am planning to write a simple app to adjust the headphone volume whenever the mast volume is changed, but i can't seem to figure out how to get or set the headphone volume, as the audio manager deals with streams rather than outputs, so the only value i can get from it is the master.</p>
  
  <p>How do I go about finding a way to get/set the headphone volume?
  I have got shell access through adb, but i cannot get root.</p>
  
  <p>for reference the tv is running the latest firmware, which is android 5.1.1</p>