Hi folks. It took me a while to digest the topic and got my setup to work. I wrote down the steps for my own reference, but would like to share here:
Assume the following setup:
Android Tablet -(USB)> input NAA (RPi 4) -(local network)> HQPlayer embedded
Step 1: setup input NAA
Burn NAA image to SD card (Get the latest NAA image from Index of /bins/naa/images/)
Hookup to a monitor and keyboard (only required once).
Login as root, no password required.
Write down NAA host name, “naa-XXXXXX”; will need it later
Go to /boot
Edit config.txt with nano
Go to last line of config.txt
Uncomment line: “dtoverlay=dwc2,dr_mode=peripheral”
Comment out the line above: “dtoverlay=dwc2,dr_mode=host”
Step 2: setup HQPlayer Embedded
On HQPlayer embedded computer:
add to hqplayerd.xml (hqplayerd.xml is at /etc/hqplayer)
Step 3: hardware connection
Get an externally powered USB C hub with minimum connections as below:
- External power input (connect to external power supply)
- One USB 3 connection (need that to connect to RPi 4 USB C connector with a USB 3 cable; I am using USB A to USB C cable; I will experiment a USB C to USB C cable later)
- USB C host connection (need that to connect to Android Tablet)
Boot up procedure (I am still experiencing whether it matters)
- Boot up HQPlayer embedded
- Make connections in step 3 (above)
- Go to HQPlayer Embedded page, in my case, hqplayer.local:8088
- Go to Input Tab
- Change input to “NAA USB Audio”
- Push “Select” link
- Android Tablet will have a pop up message, hit OK, the audio is now output through NAA