1. 18 3月, 2010 1 次提交
    • M
      ALSA: Add support for key reporting via the jack interface · ebb812cb
      Mark Brown 提交于
      Some devices provide support for detection of a small number of
      buttons on their jacks. One common implementation provides a single
      button, implemented by shorting the microphone to ground and detected
      along with microphone presence detection by detecting varying current
      draws on the microphone bias signal.
      
      Provide support for up to three buttons via the jack interface. These
      default to reporting BTN_n but an API is provided to allow these to
      be remapped to other keys by the machine driver where it knows what
      the keys are. More keys can be added with ease if required.
      
      This is only intended to support simple accessory button designs. If
      the interface is limiting then either creating a child device for the
      accessory or accessing the input device in the jack directly is
      recommended.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      ebb812cb
  2. 14 4月, 2009 1 次提交
  3. 07 1月, 2009 1 次提交
  4. 04 1月, 2009 1 次提交
  5. 10 12月, 2008 1 次提交
  6. 27 10月, 2008 1 次提交
  7. 30 7月, 2008 1 次提交
    • M
      ALSA: Add jack reporting API · e76d8cea
      Mark Brown 提交于
      Currently very few systems provide information about jack status to user
      space, even though many have hardware facilities to do detection. Those
      systems that do use an input device with the existing SW_HEADPHONE_INSERT
      switch type to do so, often independently of ALSA.
      
      This patch introduces a standard method for representing jacks to user
      space into ALSA. It allows drivers to register jacks for a sound card with
      the input subsystem, binding the input device to the card to help user
      space associate the input devices with their sound cards. The created
      input devices are named in the form "card longname jack" where jack is
      provided by the driver when allocating a jack. By default the parent for
      the input device is the sound card but this can be overridden by the
      card driver.
      
      The existing user space API with SW_HEADPHONE_INSERT is preserved.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      e76d8cea