ubopod / ubo_app

This repo contains code for Ubo system app to control Raspberry Pi utilities and Ubo based functionalities
6 stars 2 forks source link

internal speaker audio selection not available from desktop OS #130

Open nubcore opened 3 weeks ago

nubcore commented 3 weeks ago

Right clicking the volume icon only shows HDMI output as option. wm8960-soundcard appears in alsamixer as a soundcard but not in "Device Profiles". Testing Pi4 v0.15.0

mehrdadfeller commented 6 days ago

I have been investigating this issue. I am seeing different behaviors during different boots up. On one of my devices I can see both wm8960-soundcard and HDMI active and I can play audio with Youtube and aplay through the device speakers. On another device, I can see HDMI with wm8960-soundcard DISABLED BUT aplay -l is finding the soundcard and I can still play with aplay test.wav command.

I believe there is some conflict happening between pipewire-pulse and pulseaudio perhaps.

It would be great if you can post the output of the following commands (mainly what versions installed)

apt show pulseaudio pulseaudio-* pipewire-pulse apt show wireplumber wpctl status pactl status aplay -l pw-cli ls Node

To me, this does not seem related to any of the Ubo app logic since I killed the ubo-app.service during my testing. It does not seem to be specifically related to wm8960-soundcard or the way it is loaded. It seems like some pipewire-pulse and alsa setup issue.

I have run into a case where I don't see HDMI as sound option on Desktop but wpctl command shows HDMI as a sink device....

Audio
 ├─ Devices:
 │      68. Built-in Audio                      [alsa]
 │      69. Built-in Audio                      [alsa]
 │      70. Built-in Audio                      [alsa]
 │  
 ├─ Sinks:
 │  *   85. Built-in Audio Digital Stereo (HDMI) [vol: 0.55]
...
ubo@ubo-8u:/home/test $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: wm8960soundcard [wm8960-soundcard], device 0: 1f000a0000.i2s-wm8960-hifi wm8960-hifi-0 [1f000a0000.i2s-wm8960-hifi wm8960-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

see various cases below (all happening on the same software version 0.15.3 and hardware)

image imageimage