jasonporritt / rg351_m8c

m8 headless for rg351 devices
187 stars 7 forks source link

Audio troubles with rg353m #10

Open totoetlititi opened 1 year ago

totoetlititi commented 1 year ago

Thanks for your this great porting !

I'm looking to control the audio volume of the M8 with the hardware audio volume buttons on a rg353m, running Arkos.

totoetlititi commented 1 year ago

with a correct pulseaudio_config.pa, M8_pulse.sh works ! (sorry) But the Audio hardware volume button still does not work.

Maybe a problem in the .asoundrc ?

# anbernic-audio alsa config
# dmix + softvol

pcm.!default {
        type            plug
        slave.pcm       "softvol"
}

ctl.!default {
        type            hw 
        card            0
}

pcm.ddmix {
        ipc_key         1024
        type            dmix
        slave {
                pcm         "hw:0,0"
                period_time 0
        period_size 1024
        buffer_size 4096
                rate 44100
        }
}

pcm.softvol {
        type            softvol
        slave {
                pcm         "ddmix"
        }
        control {
                name        "Master"
                card        0
        }
}
totoetlititi commented 1 year ago

Found a solution for M8.sh, change the playback device to "default" in alsaloop_wait: alsaloop -P default -C hw:2,0 -t 200000 -A 5 --rate 44100 --sync=0 -T -1 -d