batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
2.03k stars 522 forks source link

GameForce: No sound #7456

Closed glebm closed 10 months ago

glebm commented 2 years ago

There are 3 output devices: speakers, headphones, internal. None of them produce any sound

$ batocera-audio getVolume

$ batocera-audio set speakers
Failure: Not supported
numid=1,iface=MIXER,name='Playback Path'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'OFF'
  ; Item #1 'SPK'
  ; Item #2 'HP'
  ; Item #3 'SPK_HP'
  : values=1

$ batocera-audio setSystemVolume unmute
Failure: No such entity
$ pactl set-default-sink INTERNAL
Failure: Not supported
$ pactl list sinks-raw
sink=28 name=INTERNAL mute=0 volume=0 description=INTERNAL
$ pactl list sinks
Sink #28
    State: SUSPENDED
    Name: INTERNAL
    Description: INTERNAL
    Driver: PipeWire
    Sample Specification: s32le 8ch 48000Hz
    Channel Map: aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
    Owner Module: 4294967295
    Mute: no
    Volume: aux0: 0 /   0% / -inf dB,   aux1: 0 /   0% / -inf dB,   aux2: 0 /   0% / -inf dB,   aux3: 0 /   0% / -inf dB,   aux4: 0 /   0% / -inf dB,   aux5: 0 /   0% / -inf dB,   aux6: 0 /   0% / -inf dB,   aux7: 0 /   0% / -inf dB
            balance 0.00
    Base Volume: 65536 / 100% / 0.00 dB
    Monitor Source: INTERNAL.monitor
    Latency: 0 usec, configured 0 usec
    Flags: HARDWARE DECIBEL_VOLUME LATENCY 
    Properties:
        factory.name = "api.alsa.pcm.sink"
        node.name = "INTERNAL"
        device.description = "INTERNAL"
        media.class = "Audio/Sink"
        api.alsa.path = "hw:0"
        factory.id = "17"
        clock.quantum-limit = "8192"
        device.api = "alsa"
        node.driver = "true"
        factory.mode = "merge"
        audio.adapt.follower = ""
        library.name = "audioconvert/libspa-audioconvert"
        object.id = "28"
        object.serial = "28"
    Formats:
        pcm
jdorigao commented 2 years ago

https://github.com/batocera-linux/batocera.linux/pull/7487

glebm commented 2 years ago

Still no audio:

$ batocera-audio list
auto auto
auto_null Dummy Output
jdorigao commented 2 years ago
$ batocera-audio list
auto auto
alsa_output.platform-rk817-sound.pro-output-0 rockchip,rk817-codec Pro
dmanlfc commented 1 year ago

@glebm did you try an updated build?

n2qz commented 10 months ago

@glebm Please provide the requested feedback.

glebm commented 10 months ago

I'll try out the latest build sometime this week

glebm commented 10 months ago

Built from 20b439883caab005288716aac102e6dc74b2113f, the sound finally works! Volume controls via 1 and 2 buttons also work!

yay!