title: Who selects AUDIO_DEVICE_OUT_SPEAKER constant in android (on what conditions)?
body: <ul>
  <li><p>I am creating new app through which I will send audio data but I wanted some        specific mixer controls to be used for this transfer of data. </p>
  
  <p>So I wanted to add new device constant like AUDIO_DEVICE_OUT_SPEAKER
  (AUDIO_DEVICE_OUT_NEW) and make this device constant to get selected.</p>
  
  <p>(creating above new constant is to differentiate it from other apps)   </p>
  
  <p>So that I will use this variable in HAL and will select new usecase
  created.</p>
  
  <p>For above I need to find out who selects AUDIO_DEVICE_OUT_SPEAKER(or similar constants) and
  based on what conditions this constant gets selected, so that I can
  replicate the same for my newly created constant(AUDIO_DEVICE_OUT_NEW).</p>
  
  <p>I searched in google, but very less information is available.
  Any suggestions/help will be really appreciated.</p>
  
  <p>I am using kitkat source code.</p></li>
  </ul>