Git Product home page Git Product logo

usbaudio's Introduction

USBaudio

This tool forwards audio from an Android device to the computer over USB. It works on Linux with PulseAudio.

The purpose is to enable audio forwarding while mirroring with scrcpy. However, it can be used independently, and does not require USB debugging enabled.

Note that AOA audio, the feature used by USBaudio, is deprecated since Android 8.0. For Android 10, use sndcpy instead.

Build

Install the following packages (on Debian):

sudo apt install gcc git meson vlc libpulse-dev libusb-1.0-0-dev

Then build:

git clone https://github.com/rom1v/usbaudio
cd usbaudio
meson x --buildtype=release
cd x
ninja

To install it:

sudo ninja install

Run

Plug an Android device.

If USB debugging is enabled, just execute:

usbaudio

You can specify a device by serial or by vendor id and product id:

# the serial can be found via "adb device" or "lsusb -v"
usbaudio -s 0123456789abcdef

# the vid:pid is printed by "lsusb"
usbaudio -d 18d1:4ee2

To stop playing, press Ctrl+C.

To stop forwarding, unplug the device (and maybe restart your current audio application).

To only enable audio accessory without playing, use:

usbaudio -n

Blog post

usbaudio's People

Contributors

rom1v avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

usbaudio's Issues

Not working (Pipe error)

$ usbaudio
[INFO] Device: [2833:0083] XXXXXXXXXXXX
[ERROR] Pipe error
[ERROR] Could not get AOA protocol version
[ERROR] Could not forward audio

My setup:
Kubuntu 19.04 x86_64

Tried running before and after running scrcpy, but I get the same error. scrcpy runs fine.
Also tried as root, but same error.

Any help? Thanks!

EDIT: forgot to say that I'm using a Oculus Quest

[ERROR] Could not initialize AOA

  • I am using Debian from Microsoft Store.
  • Followed the steps on the guide completely.
  • As i execute "usbaudio" it shows the error

[ERROR] Could not initialize AOA

I have this error in ubuntu with PulseAudio maybe you can help me with this. Thanks.

systems@Systems:~$ adb devices
List of devices attached
0123456789ABCDEF device

systems@Systems:$ usbaudio
[INFO] Device: [19d2:ffb0] 0123456789ABCDEF
[INFO] Audio forwarding enabled
[INFO] Waiting for input source...
[ERROR] Could not find matching PulseAudio input source
systems@Systems:
$

systems@Systems:$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 8087:0a2a Intel Corp.
Bus 001 Device 004: ID 0b05:1837 ASUSTek Computer, Inc.
Bus 001 Device 037: ID 19d2:ffb0 ZTE WCDMA Technologies MSM
Bus 001 Device 002: ID 13d3:5666 IMC Networks
Bus 001 Device 006: ID 1038:1702 SteelSeries ApS
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
systems@Systems:
$

systems@Systems:~$ lsusb -vd 19d2:ffb0 # audio forwarding disabled

Bus 001 Device 037: ID 19d2:ffb0 ZTE WCDMA Technologies MSM
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x19d2 ZTE WCDMA Technologies MSM
idProduct 0xffb0
bcdDevice 4.14
iManufacturer 1 nubia
iProduct 2 SM8150-MTP _SN:0BB309FF
iSerial 3 0123456789ABCDEF
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 127
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 4 dsma
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 48
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x000a 1x 10 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 5 Mass Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 66
bInterfaceProtocol 1
iInterface 7 ADB Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
systems@Systems:~$

systems@Systems:~$ lsusb -vd 19d2:ffb0 # audio forwarding enabled

Bus 001 Device 037: ID 19d2:ffb0 ZTE WCDMA Technologies MSM
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x19d2 ZTE WCDMA Technologies MSM
idProduct 0xffb0
bcdDevice 4.14
iManufacturer 1 nubia
iProduct 2 SM8150-MTP _SN:0BB309FF
iSerial 3 0123456789ABCDEF
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 127
bNumInterfaces 4
bConfigurationValue 1
iConfiguration 4 dsma
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 48
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
** UNRECOGNIZED: 05 24 00 10 01
** UNRECOGNIZED: 05 24 01 00 00
** UNRECOGNIZED: 04 24 02 02
** UNRECOGNIZED: 05 24 06 00 00
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x000a 1x 10 bytes
bInterval 9
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 5 Mass Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 66
bInterfaceProtocol 1
iInterface 7 ADB Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
systems@Systems:~$

Audio getting chuncky, delayed and VLC throws delay errors

max@[~/usbaudio/x]$ ./usbaudio --live-caching 20
[INFO] Device: [18d1:2d03] 4200d117e4f0547d
[INFO] Audio forwarding enabled
[INFO] Matching PulseAudio input source found: 2 (18d1:2d03) SAMSUNG_SAMSUNG_Android_4200d117e4f0547d
[INFO] Playing pulse://2
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[000055c71da8e4a0] dummy interface: using the dummy interface module...
[00007f3ea4000c40] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 20 ms)
[00007f3ea4000c40] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 73 ms)
[00007f3ea4000c40] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 134 ms)
[00007f3ea4000c40] main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 144 ms)
...

Tried to scale --live-caching from 20 to 80 and no result. Using without scrcpy. Maybe it's my Alsa/Pulse issue...

Uninstall usbaudio

Hello!
What is the correct way to uninstall usbaudio? Just by deleting the folder?
Thank you!

Setting adb executable path

I'm on Ubuntu 18.04 LTS, using the adb from android sdk's (from android studio) for scrcyp lauching setting the adb variable to my custom path but that doesn't work with usbauio:

ADB="/home/matheus/bin/adb" usbaudio
[ERROR] Could not find device

Thats the only message I get... even thought I have it:

adb devices
List of devices attached
192.168.0.113:5555 device

And scrcpy is working. That should be a feature or maybe I didn't just found it out yet..

Not working, need some help

I want to record my mobile gamplay with sound using scrcpy and usbaudio, the video is okay but there is no sound.
The terminal output of usbaudio is like this.
Can u help me pls.
image

Error while installing (libusb-1.0-0)

I am using Linux Mint 19.3 and I have cloned the repo. When I try meson x --buildtype=release, it comes up with the following:

kurdtpage@mint:~/usbaudio$ meson x --buildtype=release
The Meson build system
Version: 0.51.1
Source dir: /home/kurdtpage/usbaudio
Build dir: /home/kurdtpage/usbaudio/x
Build type: native build
Project name: usbaudio
Project version: 1.0
C compiler for the build machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency libpulse found: YES 11.1
Found CMake: /usr/bin/cmake (3.10.2)
Run-time dependency libusb-1.0 found: NO (tried pkgconfig and cmake)

meson.build:11:0: ERROR: Dependency "libusb-1.0" not found, tried pkgconfig and cmake

A full log can be found at /home/kurdtpage/usbaudio/x/meson-logs/meson-log.txt

meson-log.txt
Then when I try to install libusb:

kurdtpage@mint:~/usbaudio$ sudo apt-get install libusb-1.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libusb-1.0-0' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-doc' for regex 'libusb-1.0'
libusb-1.0-0 is already the newest version (2:1.0.23-2build1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libusb-1.0-0-dev : Depends: libusb-1.0-0 (= 2:1.0.21-2) but 2:1.0.23-2build1 is to be installed
E: Unable to correct problems, you have held broken packages.

How can I resolve this?

How to install it in Fedora32?

Recently I have shifted from ubuntu to Fedora. Please either tell me how to use usbaudio in fedora or provide an alternative.

Errors out with Pixel 3 XL on Q preview 4

[parker@stealth x]$ usbaudio 
[INFO] Device: [18d1:4ee7] 8BEY0Y2HC
[INFO] Audio forwarding enabled
[INFO] Waiting for input source...
[ERROR] Could not find matching PulseAudio input source
[parker@stealth x]$ usbaudio 
[ERROR] Could not read device serial
[ERROR] Could not find device
[parker@stealth x]$ usbaudio 
[ERROR] Could not find device

audio is not playing on linux

I am using ASUS zenfone max pro M2 stock Android P.
It doesn't show any error

[INFO] Device: [18d1:2d05] JBAAGF081424RH5
[INFO] Audio forwarding enabled
[INFO] Matching PulseAudio input source found: 2 (18d1:2d05) asus_SDM660-QRD__SN:42204D05_JBAAGF081424RH5
[INFO] Playing pulse://2
VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
[000056178eb6c230] dummy interface: using the dummy interface module...

it starts with this.
But doesn't play audio on my ubuntu. IDK why? it seems everything fine
And I run without scrcpy.

How compile without pulseaudio ?

Hi there, i am trying to compile usbaudio becauase the "sndcpy" needs Android 10.

cd /tmp
git clone https://github.com/rom1v/usbaudio

Clonando en 'usbaudio'...
remote: Enumerating objects: 21, done.
remote: Total 21 (delta 0), reused 0 (delta 0), pack-reused 21
Desempaquetando objetos: 100% (21/21), listo.

cd usbaudio
meson x --buildtype=release

The Meson build system
Version: 0.57.1
Source dir: /tmp/usbaudio
Build dir: /tmp/usbaudio/x
Build type: native build
Project name: usbaudio
Project version: 1.0
C compiler for the host machine: ccache cc (gcc 5.5.0 "cc (GCC) 5.5.0")
C linker for the host machine: cc ld.bfd 2.26.20160125
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Found CMake: /usr/bin/cmake (3.19.6)
Run-time dependency libpulse found: NO (tried pkgconfig and cmake)

meson.build:11:0: ERROR: Dependency "libpulse" not found, tried pkgconfig and cmake

A full log can be found at /tmp/usbaudio/x/meson-logs/meson-log.txt

I need instructions for compile without PulseAudio because that is an optional component and i don't use it.

Couldn't use usbaudio with scrcpy

scrcpy connection will be terminated soon after executing usbaudio. Tried reconnect scrcpy will give this error:

adb: error: failed to get feature set: insufficient permissions for device
See [http://developer.android.com/tools/device.html] for more information
ERROR: "adb push" returned with value 1

Android 7.1.2 with Fedora 30

android device as sink

can it send audio from linux to android?
use case here is to send playing music on pc to android and have Shazam identify the song.

[ERROR] Required keyword argument "input" not defined.

How to solve this? I am using ubuntu 16.04( Windows Subsystem for Linux).

fstream@fstream:~/audi/usbaudio$ meson x --buildtype release
The Meson build system
Version: 0.29.0
Source dir: /home/fstream/audi/usbaudio
Build dir: /home/fstream/audi/usbaudio/x
Build type: native build
Build machine cpu family: x86_64
Build machine cpu: x86_64
Project name: usbaudio
Native c compiler: cc (gcc 5.4.0-6ubuntu1)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency libpulse found: YES 8.0
Native dependency libusb-1.0 found: YES 1.0.20

Meson encountered an error in file meson.build, line 21, column 0:
Required keyword argument "input" not defined.

[ERROR] Could not find device

Lenovo:~$ adb devices
List of devices attached
********************* device

Lenovo:~$ usbaudio
[ERROR] Could not find device

Any idea what I could do to debug this?

[ERROR] Could not find matching PulseAudio input source

I don't know how to fix it.

taufik@taufik-HP-Notebook:/etc/bluetooth$ usbaudio
[INFO] Device: [2717:ff88] d4f59a3f7d24
[INFO] Audio forwarding enabled
[INFO] Waiting for input source...
[ERROR] Could not find matching PulseAudio input source
taufik@taufik-HP-Notebook:/etc/bluetooth$

no suitable interface module

ubuntu@ubuntu-OptiPlex-7020:~/like/usbaudio/x$ ./usbaudio -s 84B5T15A17001358
[INFO] Device: [18d1:2d03] 84B5T15A17001358
[INFO] Audio forwarding enabled
[INFO] Matching PulseAudio input source found: 2 (18d1:2d03) Huawei_Nexus_6P_84B5T15A17001358
[INFO] Playing pulse://2
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[000055b44ddc6720] main interface error: no suitable interface module
[000055b44dcea640] main libvlc error: interface "globalhotkeys,none" initialization failed
[000055b44ddc6720] dummy interface: using the dummy interface module...

84B5T15A17001358       device usb:1-1.2 product:angler model:Nexus_6P device:angler transport_id:2

[ERROR] Could not find matching PulseAudio input source

catto@penguin:~/usbaudio/x$ usbaudio -s (my-phones-serial-key)
[INFO] Device: [a-thing-that-i-think-i-should-censor] (my-phones-serial-key-again)
[INFO] Audio forwarding enabled
[ERROR] Could not find matching PulseAudio input source
catto@penguin:~/usbaudio/x$ 

i get this error when running both usbaudio and usb audio -s (my-phones-serial-key-again-again).
i just installed it and already a problem
pls help

Android 9+

Does it work on that version or does something else have to be made?

Audio device gets recreated on every USB connection

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.

[ERROR] Could not find matching PulseAudio input source

$ usbaudio --device `lsusb | grep MTP | cut -d ' ' -f 6` | sed 's/$redacted/AAAA00AA0AA/g;s/$redacted/00a0:0000/g'
kernel: usb 3-6: USB disconnect, device number 31
plasmashell[]: file:///usr/lib/qt/qml/org/kde/plasma/extras/ExpandableListItem.qml:291: TypeError: Cannot read property 'enabled' of null
plasmashell[]: file:///usr/lib/qt/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
kernel: usb 3-6: new high-speed USB device number 32 using xhci_hcd
kernel: usb 3-6: New USB device found, idVendor=$redacted, idProduct=$redacted, bcdDevice= $redacted
kernel: usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: usb 3-6: Product: $redacted_Android
kernel: usb 3-6: Manufacturer: $redacted
kernel: usb 3-6: SerialNumber: $redacted
kernel: rt715-sdca sdw:3:025d:0714:01: ASoC: error at soc_component_read_no_lock on sdw:3:025d:0714:01 for register: [0x40800109] -5
mtp-probe[]: checking bus 3, device 32: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6"
mtp-probe[]: bus: 3, device: 32 was not an MTP device
(udev-worker)[]: controlC1: Process '/usr/bin/alsactl restore 1' failed with exit code 99.
mtp-probe[]: checking bus 3, device 32: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6"
mtp-probe[]: bus: 3, device: 32 was not an MTP device
kmix[]: org.kde.kmix: no mix devices and not dynamic
kded5[]: org.kde.kmix: no mix devices and not dynamic
kmix[]: org.kde.kmix: Cannot add mixer to GUI
[ERROR] Could not find matching PulseAudio input source
[INFO] Device: [00a0:0000] AAAA00AA0AA
[INFO] Audio forwarding enabled
[INFO] Waiting for input source...

A way to do the reverse?

I am trying to find a good way to transfer pc audio into my phone but I can't seem to find a good one for linux, is there a way you can do the reverse? Or would it be too tricky?

access_alsa demux error: cannot commit hardware parameters: Input/output error

I get an error

[INFO] Waiting for input source...
[ERROR] Could not find matching PulseAudio input source

So I've tried using usbaudio -n
Can't find the device in pactl list short sources

But I do find it in cat /proc/asound/cards

 1 [SDM450MTPSNEA44]: USB-Audio - SDM450-MTP _SN:EA4419D2
                      OPPO SDM450-MTP _SN:EA4419D2 at usb-0000:00:14.0-3, high speed

but playing it using

vlc -Idummy --live-caching=50 alsa://hw:1

gives me errors

[0000565062ae79d0] dummy interface: using the dummy interface module...
[00007fd4800010e0] access_alsa demux error: cannot commit hardware parameters: Input/output error
[00007fd48c000c40] main input error: Your input can't be opened
[00007fd48c000c40] main input error: VLC is unable to open the MRL 'alsa://hw:1'. Check the log for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.