[RK3288] Confusing "Built-in Audio" Pulseaudio devices #1367
Comments
|
The tinker board settings are from Asus and match their use on Tinker OS. It's also important to remember the Tinker's audio is provided via a USB DAC built onto the board, so I think only the gpio I2S and HDMI I2S are via the SoC. there is an associated USB tweak to name the DAC to accommodate that config file. Combine these things and that's why it doesn't seem the Tinker settings make sense in context with RK3288 hardware. I can check your patch, there would probably have to be some logic added to the build scripts in the event it messes with the Tinker. |
|
Thanks for explanation. The asound.conf above is a carbon-copy for the first part (the one describing pcm.OnBoard_Dx devices) so it should not harm the analog outputs provided by the USB DAC. It just adds the two sections for the digital SPDIF and HDMI outputs provided directly by the SoC. Furthermore looking to the sound section in tinkerboard.dtsi: In the device tree for my device I named the property "DW-I2S-HDMI": build/patch/kernel/rockchip-next/xt-q8l-v10-add-device-tree.patch Lines 256 to 269 in c4281e5 so it is board-agnostic |
|
Alright, I can look at it/test it once I get to my PC later, I was reviewing it on my phone, so not ideal. Most of this was pulled right from the 4.4 kernel or mainline without adjustment, and as usual I would expect the Rockchip reference board stuff to be mixed in with the actual design, probably with some improper mixing. Thanks for looking into this, I'll give it some tests |
|
@Tonymac32 Did you have the chance to try the snippet? |
|
Trying now, it's been an insane few weeks. The Tinker issue I was reffering to indirectly is that it's SPDIF is actually coming off of the USB DAC (See the pulseaudio.txt file in the build system). Hopefully no confusion erupts, honestly I've never tested SPDIF, I've only heard from others that they use it. |
|
Done. Looks much nicer, I agree. |
Sound node recovered from Pull Request armbian#408 Sound node name changed in line with tinkerboard & xt-q8l, cf. issue armbian#1367 Also added missing i2s node, cf. http://rockchip.wikidot.com/hdmi-audio HDMI audio now confirmed working on Miqi clone, Openhour Chameleon
Sound node recovered from Pull Request #408 Sound node name changed in line with tinkerboard & xt-q8l, cf. issue #1367 Also added missing i2s node, cf. http://rockchip.wikidot.com/hdmi-audio HDMI audio now confirmed working on Miqi clone, Openhour Chameleon
Hello,
I'm using my RK3288 box as a general all-purpose desktop replacement device.
As desktop replacement, I find the "Built-In Audio" pulseaudio labels for both SPDIF and HDMI audio devices annoying and confusing.
I would like to propose an asound.conf for RK3288 devices as given below that adds some ALSA configuration to expose HDMI and SPDIF devices with proper tags.
This allows PulseAudio to show the labels correctly instead of the standard and confusing "Built-in Audio" for both devices and possibly enable some kind of passthrough (not tested).
A previous unanswered forum post with a unpolished version of this patch, with some more explanation and a screenshot of the result, is here: https://forum.armbian.com/topic/10183-pulseaudio-and-built-in-audio-issue-involves-alsa/
Audio devices got the correct ALSA labels only if their name is SPDIF/DW-I2S-HDMI in devicetree. Tinkerboards are using "rockchip,tinker-codec" for HDMI device so this patch won't work on them.
I was wondering if the tinkerboard label is proper because device trees for other devices does not use the "vendor,device" nomenclature for simple-sound-card,name property. Changing it to DW-I2S-HDMI can make Tinkerboards benefit from this patch.
I can arrange a merge request for both the asound.conf patch and tinkerboard audio card name fix, but I'm open to any suggestion.
@Tonymac32
The text was updated successfully, but these errors were encountered: