summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorRobert Wu <robertwu@google.com>2021-09-09 23:22:18 +0000
committerRobert Wu <robertwu@google.com>2021-09-28 16:49:51 +0000
commitce8791c18e278f31abc343292d9bba6059efa9ec (patch)
treef1ef71a36fd478d7d268a5873bfc78168e506b8e /core/java/android/inputmethodservice/InputMethodService.java
parent4cffc46ad134bf27b45499f8ad1029f7c6d531d7 (diff)
Use USB API to get # of i/o ports for MIDI with USB.
Currently, the number of MIDI devices is determined using an ALSA ioctl. This method is flaky on devices that don't simply have one input port and one output port. This change allows us to query the number of MIDI devices through USB instead of through an ALSA ioctl. USB MIDI should now function correctly even with varying number of ports. Bug: 28269065 Test: MIDI apps work for Alesis Recital and on M-Audio KeyStudio. Android device also works as a peripheral to another Android device. Change-Id: Id19748fbe1c8aa4913cf4925e0fec9316617409e
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions