Hi.
Many thanks to @HenrikEnquist and @mdsimon2 for your work!
I'm trying to run CamillaDSP in Ubuntu 23.04 with RME AES32 sound card. I get 'snd_pcm_hw_params_set_access' error:
Could you help me with this issue?
My config is:
(I don't need all 16 channels, it's made for testing.)
My sound card parameters is:
I've made changes to the config but to no avail. I would be grateful for advice.
Many thanks to @HenrikEnquist and @mdsimon2 for your work!
I'm trying to run CamillaDSP in Ubuntu 23.04 with RME AES32 sound card. I get 'snd_pcm_hw_params_set_access' error:
$ /usr/local/bin/camilladsp/camilladsp -p 1234 /home/sss/camilladsp/configs/rme-aes.yml -v
2023-07-26 05:26:23.803235 INFO [src/bin.rs:711] CamillaDSP version 1.0.3
2023-07-26 05:26:23.803272 INFO [src/bin.rs:712] Running on linux, x86_64
2023-07-26 05:26:23.804704 DEBUG [src/bin.rs:754] Read config file Some("/home/serg/camilladsp/configs/rme-aes.yml")
2023-07-26 05:26:23.810825 DEBUG [src/bin.rs:773] Config is valid
2023-07-26 05:26:23.810857 DEBUG [src/socketserver.rs:260] Start websocket server on 127.0.0.1:1234
2023-07-26 05:26:23.810927 DEBUG [src/bin.rs:857] Wait for config
2023-07-26 05:26:23.810958 DEBUG [src/bin.rs:890] Config ready
2023-07-26 05:26:23.811220 DEBUG [src/filters.rs:450] Build new pipeline
2023-07-26 05:26:23.811283 DEBUG [src/processing.rs:19] build filters, waiting to start processing loop
2023-07-26 05:26:23.811609 DEBUG [src/bin.rs:213] Using channels [true, true]
2023-07-26 05:26:23.811656 DEBUG [src/alsadevice.rs:917] Buffer frames 4096
2023-07-26 05:26:23.812623 DEBUG [src/alsadevice.rs:413] Playback: supported channels, min: 16, max: 16, list: [16]
2023-07-26 05:26:23.812669 DEBUG [src/alsadevice.rs:414] Playback: setting channels to 16
2023-07-26 05:26:23.812713 DEBUG [src/alsadevice.rs:418] Playback: supported samplerates: Discrete([32000, 44100, 48000, 64000, 88200, 96000, 176400, 192000])
2023-07-26 05:26:23.812739 DEBUG [src/alsadevice.rs:419] Playback: setting rate to 44100
2023-07-26 05:26:23.812761 DEBUG [src/alsadevice.rs:423] Playback: supported sample formats: [S32LE]
2023-07-26 05:26:23.812779 DEBUG [src/alsadevice.rs:424] Playback: setting format to S32LE
2023-07-26 05:26:23.812946 ERROR [src/bin.rs:344] Playback error: ALSA function 'snd_pcm_hw_params_set_access' failed with error 'EINVAL: Invalid argument'
2023-07-26 05:26:23.812983 DEBUG [src/bin.rs:349] Error while starting, release barrier
2023-07-26 05:26:23.813111 DEBUG [src/alsadevice.rs:413] Capture: supported channels, min: 1, max: 32, list: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]
2023-07-26 05:26:23.813134 DEBUG [src/alsadevice.rs:414] Capture: setting channels to 2
2023-07-26 05:26:23.813159 DEBUG [src/alsadevice.rs:418] Capture: supported samplerates: Range(8000, 192000)
2023-07-26 05:26:23.813178 DEBUG [src/alsadevice.rs:419] Capture: setting rate to 44100
2023-07-26 05:26:23.813201 DEBUG [src/alsadevice.rs:423] Capture: supported sample formats: [S16LE, S24LE, S24LE3, S32LE, FLOAT32LE]
2023-07-26 05:26:23.813222 DEBUG [src/alsadevice.rs:424] Capture: setting format to S32LE
2023-07-26 05:26:23.813311 DEBUG [src/alsadevice.rs:455] Opening audio device "hw:Loopback,0" with parameters: HwParams { channels: Ok(2), rate: "Ok(44100) Hz", format: Ok(S32LE), access: Ok(RWInterleaved), period_size: "Ok(1024) frames", buffer_size: "Ok(8192) frames" }, SwParams(avail_min: Ok(2048) frames, start_threshold: Ok(0) frames, stop_threshold: Ok(8192) frames)
2023-07-26 05:26:23.813338 DEBUG [src/alsadevice.rs:460] Audio device "hw:Loopback,0" successfully opened
2023-07-26 05:26:23.813371 DEBUG [src/alsadevice.rs:958] Starting captureloop
2023-07-26 05:26:23.813421 DEBUG [src/processing.rs:21] Processing loop starts now!
2023-07-26 05:26:23.813457 DEBUG [src/bin.rs:352] Wait for capture thread to exit..
2023-07-26 05:26:23.813535 INFO [src/alsadevice.rs:592] Capture device supports rate adjust
2023-07-26 05:26:23.813568 DEBUG [src/alsadevice.rs:627] Exit message received, sending EndOfStream
2023-07-26 05:26:23.813637 INFO [src/processing.rs:37] Playback thread has already stopped.
2023-07-26 05:26:23.813792 DEBUG [src/bin.rs:915] Restarting with new config
2023-07-26 05:26:23.813823 DEBUG [src/bin.rs:857] Wait for config
2023-07-26 05:26:23.813843 DEBUG [src/bin.rs:860] No config and not in wait mode, exiting!
Could you help me with this issue?
My config is:
devices:
samplerate: 44100
chunksize: 2048
capture:
type: Alsa
channels: 2
device: "hw:Loopback,0"
format: S32LE
playback:
type: Alsa
channels: 16
device: "hw:HDSPMx000000"
format: S32LE
rate_measure_interval: 1
mixers:
2x16:
channels:
in: 2
out: 16
mapping:
- dest: 0
mute: false
sources:
- channel: 0
gain: -1
inverted: false
mute: false
- dest: 1
mute: false
sources:
- channel: 1
gain: -1
inverted: false
mute: false
- dest: 2
mute: false
sources:
- channel: 0
gain: -1
inverted: false
mute: false
- dest: 3
mute: false
sources:
- channel: 1
gain: -1
inverted: false
mute: false
- dest: 4
mute: false
sources:
- channel: 0
gain: -1
inverted: false
mute: false
- dest: 5
mute: false
sources:
- channel: 1
gain: -1
inverted: false
mute: false
- dest: 6
mute: false
sources:
- channel: 0
gain: -1
inverted: false
mute: false
- dest: 7
mute: false
sources:
- channel: 1
gain: -1
inverted: false
mute: false
- dest: 8
mute: false
sources:
- channel: 0
gain: -1
inverted: false
mute: false
- dest: 9
mute: false
sources:
- channel: 1
gain: -1
inverted: false
mute: false
- dest: 10
mute: false
sources:
- channel: 0
gain: -1
inverted: false
mute: false
- dest: 11
mute: false
sources:
- channel: 1
gain: -1
inverted: false
mute: false
- dest: 12
mute: false
sources:
- channel: 0
gain: -1
inverted: false
mute: false
- dest: 13
mute: false
sources:
- channel: 1
gain: -1
inverted: false
mute: false
- dest: 14
mute: false
sources:
- channel: 0
gain: -1
inverted: false
mute: false
- dest: 15
mute: false
sources:
- channel: 1
gain: -1
inverted: false
mute: false
pipeline:
- name: 2x16
type: Mixer
(I don't need all 16 channels, it's made for testing.)
My sound card parameters is:
$ aplay -v -D hw:HDSPMx000000 /dev/zero --dump-hw-params
Playing raw data '/dev/zero' : Unsigned 8 bit, Rate 8000 Hz, Mono
HW Params of device "hw:HDSPMx000000":
--------------------
ACCESS: MMAP_NONINTERLEAVED RW_NONINTERLEAVED
FORMAT: S32_LE
SUBFORMAT: STD
SAMPLE_BITS: 32
FRAME_BITS: 512
CHANNELS: 16
RATE: [32000 192000]
PERIOD_TIME: (333 256000]
PERIOD_SIZE: [64 8192]
PERIOD_BYTES: [4096 524288]
PERIODS: 2
BUFFER_TIME: (666 512000]
BUFFER_SIZE: [128 16384]
BUFFER_BYTES: [8192 1048576]
TICK_TIME: ALL
--------------------
aplay: set_params:1347: Access type not available
I've made changes to the config but to no avail. I would be grateful for advice.