1. 29 Jul, 2016 1 commit
    • vivek mehta's avatar
      tinyalsa: pcm: open pcm driver in non blocking mode · 51f47ff3
      vivek mehta authored
      - in current implementation pcm open call is blocking hence if pcm_open
        is done on same driver twice second pcm open will get blocked till
        first instance of the PCM driver is not released.
        In times this will result in deadlock.
      
      - fix this issue by making PCM open in non-blocking mode.
      
      - after pcm open is successful, in non-blocking mode, change the device
        mode to blocking again to make sure rest of the operation on the
        driver, like read / write calls, are always called in blocking mode.
      
      Also fix jump to wrong label in case of failure before mmap().
      
      Bug: 29865791
      Bug: 30388410
      Change-Id: I95c0ad8456e6c2bb3bfb48813e1db75cdef387f8
      51f47ff3
  2. 25 Apr, 2016 5 commits
  3. 23 Apr, 2016 1 commit
  4. 21 Apr, 2016 4 commits
  5. 16 Mar, 2016 1 commit
  6. 23 Feb, 2016 1 commit
  7. 08 Feb, 2016 1 commit
  8. 07 Oct, 2015 3 commits
  9. 05 Oct, 2015 1 commit
  10. 23 Sep, 2015 2 commits
  11. 10 Sep, 2015 2 commits
    • Dylan Reid's avatar
      Add pcm_get_poll_fd · cefba1e3
      Dylan Reid authored
      
      Similar to ALSA snd_pcm_get_poll_fd, this will allow a user to wait for
      a sound device to have data in a poll(2) call.  The hotword thread will
      use this to wait for a message on its socket or for audio data to become
      ready.
      
      Change-Id: Ia9f5ffc67d458cd9466dc4f090a5be85d9738d1f
      Signed-off-by: default avatarDylan Reid <dgreid@chromium.org>
      cefba1e3
    • Dylan Reid's avatar
      Export pcm_mmap_avail · 9074cfc4
      Dylan Reid authored
      
      This is useful for timer based wakeups and for checking how much data
      has been captured by a hotwording device.
      
      Change-Id: I409201a5c9ce73abc807a9dd767beb3a32810f06
      Signed-off-by: default avatarDylan Reid <dgreid@chromium.org>
      9074cfc4
  12. 09 Sep, 2015 2 commits
    • Dylan Reid's avatar
      Add pcm_get_poll_fd · b42510d5
      Dylan Reid authored
      
      Similar to ALSA snd_pcm_get_poll_fd, this will allow a user to wait for
      a sound device to have data in a poll(2) call.  The hotword thread will
      use this to wait for a message on its socket or for audio data to become
      ready.
      
      Change-Id: I61375a73d7a842b00362fc707c12f99aa18e0bdf
      Signed-off-by: default avatarDylan Reid <dgreid@chromium.org>
      b42510d5
    • Dylan Reid's avatar
      Export pcm_mmap_avail · 6188c412
      Dylan Reid authored
      
      This is useful for timer based wakeups and for checking how much data
      has been captured by a hotwording device.
      
      Change-Id: Iffe85dd8e69498f0af6e3265971f26daf6f65608
      Signed-off-by: default avatarDylan Reid <dgreid@chromium.org>
      6188c412
  13. 02 Sep, 2015 1 commit
  14. 04 Aug, 2015 1 commit
  15. 22 Jun, 2015 1 commit
    • Maneet Singh's avatar
      pcm: add support to set silence_size · e25fe0b5
      Maneet Singh authored
      Tinyalsa always set silence_size to zero. Add support to set this
      pcm software parameter as required.
      
      Bug: 20226809
      Bug: 20300203
      Change-Id: I25de43623dc04bf5a3ad4c6573bc2b8dad1eec5e
      e25fe0b5
  16. 16 Dec, 2014 3 commits
  17. 27 Oct, 2014 1 commit
  18. 15 Jul, 2014 1 commit
  19. 10 Jul, 2014 1 commit
  20. 01 Apr, 2014 1 commit
  21. 31 Mar, 2014 1 commit
  22. 27 Mar, 2014 2 commits
  23. 25 Mar, 2014 2 commits
  24. 22 Mar, 2014 1 commit