rom1v / usbaudio

Forward audio from Android devices
MIT License
352 stars 32 forks source link

Audio device gets recreated on every USB connection #9

Open JeDaYoshi opened 5 years ago

JeDaYoshi commented 5 years ago

Even if usbaudio is not running or anything, now an audio device is created on my system everytime I plug in my phone. Audio gets forwarded to here as normal, but I'd expect it to not create the device when not asked, just when using usbaudio. Well, I find some cases where it'd be convenient to just use this, but I also want to know a way to make this not happen.

This happens even after reboots.

rom1v commented 5 years ago

This is not expected.

USBaudio just sends a request to change the mode: https://source.android.com/devices/accessories/aoa2 But then, it should be "reset" on unplug.

What is the result of lsusb for your device?

JeDaYoshi commented 5 years ago

It was just "Google Inc.", which is how it appears when being used as Audio Source.

Well, I had to change it manually from the Developer options, as it wasn't getting reset on unplug/reboot, and I had an issue where it was not making any sound on the speakers even if unplugged, being that the reason.

JeDaYoshi commented 5 years ago

Normally:

Bus 002 Device 052: ID 1bbb:903a T & A Mobile Phones

With Audio Source (it was always getting like that, and I noticed the input in PulseAudio):

Bus 002 Device 053: ID 18d1:2d03 Google Inc.

Just for reference, my phone is an Alcatel CAMEOX (5044R), running Android 7.0.