RE: ProtoDAC TDA1387 X8 project - Skip Pack - 06-11-2023
(06-11-2023, 01:40 AM)Tim Curtis Wrote: You may want to try this CamillaDSP config. It does polarity inversion and uses the nice CamillaDSP volume control with dither for 16 bit.
Copy to "/usr/share/camilladsp/configs/ProtoDAC VC.yml"
Code: devices:
adjust_period: 10
capture:
channels: 2
extra_samples: 0
filename: /dev/stdin
format: S16LE
read_bytes: 0
skip_bytes: 0
type: File
capture_samplerate: 0
chunksize: 4096
enable_rate_adjust: false
enable_resampling: false
playback:
channels: 2
device: hw:0,0
format: S16LE
type: Alsa
queuelimit: 1
rate_measure_interval: 1
resampler_type: Synchronous
samplerate: 44100
silence_threshold: -60
silence_timeout: 3
stop_on_rate_change: false
target_level: 0
filters:
Dither:
parameters:
bits: 16
type: Simple
type: Dither
Volume:
parameters:
ramp_time: 200
type: Volume
mixers:
stereo:
channels:
in: 2
out: 2
mapping:
- dest: 0
mute: false
sources:
- channel: 0
gain: -3
inverted: true
mute: false
- dest: 1
mute: false
sources:
- channel: 1
gain: -3
inverted: true
mute: false
pipeline:
- name: stereo
type: Mixer
- channel: 0
names:
- Volume
type: Filter
- channel: 1
names:
- Volume
type: Filter
- channel: 0
names:
- Dither
type: Filter
- channel: 1
names:
- Dither
type: Filter
Hi Tim,
I created the file and it is recognized when I selected it and the configuration process went without objection. However, songs would not play with an MPD error 'Failed to open audio output'. I expect I'm missing something simple.
Also, a simple question: I have files with a variety of sample rates, bit depths. Mostly flacs with a few mp3s and others. Will this CDSP configuration work on all of them?
thanks,
Skip
RE: ProtoDAC TDA1387 X8 project - Tim Curtis - 06-11-2023
Yes cdsp automatically handles different sample rates.
In CamillaDSP Config try turning the "Use default device" setting Off then On with a SAVE after each.
If that doesn't work then reboot and post the startup log and I'll have a look.
moodeutl -l
RE: ProtoDAC TDA1387 X8 project - hifinet - 06-11-2023
I like the black acrylic Geekworm case.
RE: ProtoDAC TDA1387 X8 project - Skip Pack - 06-11-2023
(06-11-2023, 04:40 PM)Tim Curtis Wrote: Yes cdsp automatically handles different sample rates.
In CamillaDSP Config try turning the "Use default device" setting Off then On with a SAVE after each.
If that doesn't work then reboot and post the startup log and I'll have a look.
moodeutl -l
No apparent effect from the 'use default device toggle'. Log follows:
Code: spack@moode:~ $ moodeutl -l
20230611 100228 worker: --
20230611 100228 worker: -- Start moOde 8 series
20230611 100228 worker: --
20230611 100228 worker: Successfully daemonized
20230611 100228 worker: Waiting for Linux startup...
20230611 100234 worker: Linux startup complete
20230611 100234 worker: Boot config backed up
20230611 100237 worker: File check (OK)
20230611 100238 worker: Session vacuumed
20230611 100238 worker: Session loaded
20230611 100238 worker: Debug logging (OFF)
20230611 100238 worker: --
20230611 100238 worker: -- Audio debug
20230611 100238 worker: --
20230611 100238 worker: ALSA cards: (0:sndrpirpidac | 1:empty | 2:empty | 3:empty
20230611 100238 worker: MPD config: (0:ProtoDAC TDA1387 X8 | mixer:(none) | card:0)
20230611 100238 worker: ALSA mixer actual (none)
20230611 100238 worker: ALSA volume (none)
20230611 100238 worker: --
20230611 100238 worker: -- System
20230611 100238 worker: --
20230611 100239 worker: Host (moode)
20230611 100239 worker: Hardware (Pi-4B 1.1 4GB)
20230611 100239 worker: moOde (8.3.3 2023-06-08)
20230611 100239 worker: RaspiOS (11.7)
20230611 100239 worker: Kernel (6.1.21-v8+ #1642)
20230611 100239 worker: Procarch (aarch64, 64-bit)
20230611 100239 worker: MPD ver (0.23.12)
20230611 100239 worker: CPU gov (ondemand)
20230611 100239 worker: Userid (spack)
20230611 100239 worker: Homedir (/home/spack)
20230611 100239 worker: Timezone (America/Los_Angeles)
20230611 100239 worker: Keyboard (us)
20230611 100239 worker: USB boot (enabled)
20230611 100239 worker: File sys (expanded)
20230611 100239 worker: HDMI port (Off)
20230611 100239 worker: Sys LED0 (On)
20230611 100239 worker: Sys LED1 (On)
20230611 100239 worker: --
20230611 100239 worker: -- Network
20230611 100239 worker: --
20230611 100239 worker: eth0 adapter exists
20230611 100239 worker: eth0 address check (Off)
20230611 100239 worker: IP addr (192.168.1.3)
20230611 100239 worker: Netmask (255.255.255.0)
20230611 100239 worker: Gateway (192.168.1.1)
20230611 100240 worker: Pri DNS (192.168.1.1)
20230611 100240 worker: Domain (lan)
20230611 100240 worker: wlan0 adapter exists
20230611 100240 worker: wlan0 country (US)
20230611 100240 worker: wlan0 configured SSID (4Pi_one)
20230611 100240 worker: wlan0 SSID alternates (None)
20230611 100240 worker: wlan0 router mode (Off)
20230611 100240 worker: wlan0 address check (up to 90 secs)
20230611 100432 worker: wlan0 address not assigned
20230611 100432 worker: wlan0 AP mode not activated, eth0 active but Router mode is Off
20230611 100432 worker: wlan0 address not assigned
20230611 100432 worker: --
20230611 100432 worker: -- Software update
20230611 100432 worker: --
20230611 100432 worker: Automatic check (Off)
20230611 100432 worker: --
20230611 100432 worker: -- Audio config
20230611 100432 worker: --
20230611 100432 worker: MPD conf updated
20230611 100432 worker: ALSA card number (0)
20230611 100432 worker: MPD audio output (ProtoDAC TDA1387 X8)
20230611 100432 worker: Audio formats (S16_LE, S24_LE)
20230611 100432 worker: ALSA mixer name (none)
20230611 100432 worker: MPD mixer type (software)
20230611 100433 worker: Hdwr volume controller not detected
20230611 100433 worker: ALSA output mode (Default: plughw)
20230611 100433 worker: ALSA loopback (Off)
20230611 100433 worker: Reset renderer active flags
20230611 100433 worker: CamillaDSP configuration (ProtoDAC VC.yml)
20230611 100433 worker: CamillaDSP volume sync (Off)
20230611 100433 worker: CamillaDSP volume range (60 dB)
20230611 100433 worker: --
20230611 100433 worker: -- File sharing
20230611 100433 worker: --
20230611 100433 worker: SMB file sharing (Off)
20230611 100433 worker: NFS file sharing (Off)
20230611 100433 worker: --
20230611 100433 worker: -- MPD startup
20230611 100433 worker: --
20230611 100433 worker: MPD started
20230611 100433 worker: MPD accepting connections
20230611 100433 worker: MPD output 1 ALSA Default (On)
20230611 100433 worker: MPD output 2 ALSA Bluetooth (Off)
20230611 100433 worker: MPD output 3 HTTP Server (Off)
20230611 100433 worker: MPD crossfade (off)
20230611 100433 worker: MPD ignore CUE files (yes)
20230611 100433 worker: --
20230611 100433 worker: -- Music sources
20230611 100433 worker: --
20230611 100433 worker: USB sources
20230611 100433 worker: MainSSD
20230611 100433 worker: SSD3
20230611 100433 worker: NAS sources
20230611 100433 worker: None configured
20230611 100433 worker: --
20230611 100433 worker: -- Feature availability
20230611 100433 worker: --
20230611 100433 worker: Input select (available)
20230611 100433 worker: Input (MPD)
20230611 100433 worker: Output (ProtoDAC TDA1387 X8)
20230611 100433 worker: Bluetooth (available)
20230611 100434 worker: AirPlay renderer (available)
20230611 100434 worker: Spotify renderer (available)
20230611 100434 worker: Squeezelite (available)
20230611 100434 worker: RoonBridge renderer (not installed)
20230611 100434 worker: Multiroom sender (available)
20230611 100434 worker: Multiroom receiver (available)
20230611 100434 worker: UPnP renderer (available)
20230611 100434 worker: DLNA server (available)
20230611 100434 worker: GPIO button handler (available)
20230611 100434 worker: Stream recorder (available: not installed)
20230611 100434 worker: HTTPS-Only mode (n/a)
20230611 100434 worker: --
20230611 100434 worker: -- Other
20230611 100434 worker: --
20230611 100434 worker: USB volume knob (Off)
20230611 100434 worker: USB auto-mounter (udisks-glue)
20230611 100434 worker: Saved MPD vol level (0)
20230611 100434 worker: Preamp volume level (0)
20230611 100434 worker: MPD volume level (73) restored
20230611 100434 worker: ALSA volume level (None)
20230611 100434 worker: Auto-play (Off)
20230611 100434 worker: LocalUI (Off)
20230611 100434 worker: Automatic CoverView (Off)
20230611 100434 worker: On-screen keyboard (Off)
20230611 100434 worker: Library scope (all)
20230611 100434 worker: View reset to playback
20230611 100434 worker: Maintenance interval (360 minutes)
20230611 100434 worker: Screen saver activation (Never)
20230611 100434 worker: Session permissions (OK)
20230611 100434 worker: --
20230611 100434 worker: -- Startup complete
20230611 100434 worker: --
20230611 100434 worker: Mount monitor (off)
20230611 100434 worker: Watchdog monitor (started)
20230611 100434 worker: Ready
One curiosity is that, on reboot, the output mode is reset to plughw from direct. I change it back and the mpd error persists. This log shows the reset value upon reboot.
RE: ProtoDAC TDA1387 X8 project - Tim Curtis - 06-11-2023
Very odd "One curiosity is that, on reboot, the output mode is reset to plughw from direct."
I'm not seeing that on my end. If I set ALSA output mode to Direct (hw) and then reboot, the setting sticks and the log shows same: 20230611 135145 worker: ALSA output mode (Direct: hw)
It looks like the config file I posted is missing the top and bottom delimiters but I don't think that would cause your issue. In any case here is the updated file.
Code: ---
devices:
adjust_period: 10
capture:
channels: 2
extra_samples: 0
filename: /dev/stdin
format: S16LE
read_bytes: 0
skip_bytes: 0
type: File
capture_samplerate: 0
chunksize: 4096
enable_rate_adjust: false
enable_resampling: false
playback:
channels: 2
device: hw:0,0
format: S16LE
type: Alsa
queuelimit: 1
rate_measure_interval: 1
resampler_type: Synchronous
samplerate: 44100
silence_threshold: -60
silence_timeout: 3
stop_on_rate_change: false
target_level: 0
filters:
Dither:
parameters:
bits: 16
type: Simple
type: Dither
Volume:
parameters:
ramp_time: 200
type: Volume
mixers:
stereo:
channels:
in: 2
out: 2
mapping:
- dest: 0
mute: false
sources:
- channel: 0
gain: -3
inverted: true
mute: false
- dest: 1
mute: false
sources:
- channel: 1
gain: -3
inverted: true
mute: false
pipeline:
- name: stereo
type: Mixer
- channel: 0
names:
- Volume
type: Filter
- channel: 1
names:
- Volume
type: Filter
- channel: 0
names:
- Dither
type: Filter
- channel: 1
names:
- Dither
type: Filter
...
CamillaDSP also writes errors and warnings to the MPD log
/var/log/mpd/log
RE: ProtoDAC TDA1387 X8 project - Skip Pack - 06-12-2023
(06-11-2023, 06:34 PM)Tim Curtis Wrote: Very odd "One curiosity is that, on reboot, the output mode is reset to plughw from direct."
I'm not seeing that on my end. If I set ALSA output mode to Direct (hw) and then reboot, the setting sticks and the log shows same: 20230611 135145 worker: ALSA output mode (Direct: hw)
It looks like the config file I posted is missing the top and bottom delimiters but I don't think that would cause your issue. In any case here is the updated file.
Code: ---
devices:
adjust_period: 10
capture:
channels: 2
extra_samples: 0
filename: /dev/stdin
format: S16LE
read_bytes: 0
skip_bytes: 0
type: File
capture_samplerate: 0
chunksize: 4096
enable_rate_adjust: false
enable_resampling: false
playback:
channels: 2
device: hw:0,0
format: S16LE
type: Alsa
queuelimit: 1
rate_measure_interval: 1
resampler_type: Synchronous
samplerate: 44100
silence_threshold: -60
silence_timeout: 3
stop_on_rate_change: false
target_level: 0
filters:
Dither:
parameters:
bits: 16
type: Simple
type: Dither
Volume:
parameters:
ramp_time: 200
type: Volume
mixers:
stereo:
channels:
in: 2
out: 2
mapping:
- dest: 0
mute: false
sources:
- channel: 0
gain: -3
inverted: true
mute: false
- dest: 1
mute: false
sources:
- channel: 1
gain: -3
inverted: true
mute: false
pipeline:
- name: stereo
type: Mixer
- channel: 0
names:
- Volume
type: Filter
- channel: 1
names:
- Volume
type: Filter
- channel: 0
names:
- Dither
type: Filter
- channel: 1
names:
- Dither
type: Filter
...
CamillaDSP also writes errors and warnings to the MPD log
/var/log/mpd/log
The usage mode thing turned out to be a red herring. The problem persists, however, even with the delimeters in place. The unusual symptom is in a change to the 'ProtoDAC VC.yml' file. I create it in the configs subdir and it looks good. When I bring it up in the cdsp settings interface it is there and selects fine. Then, I go to play a file and hit the MPD error. Then I again check on the 'ProtoDAC VC.yml' file (SSH via putty) and that file is truncated showing only 'devices' with 'capture' and 'playback' sections -- perhaps only 1/4 of the full file. I plan to document a clean example of this with the logs and screen captures, so, if this scant description doesn't trigger a strong suspicion on your part, it probably makes sense to wait for the filled-out version.
Thanks, Skip
RE: ProtoDAC TDA1387 X8 project - Tim Curtis - 06-12-2023
(06-12-2023, 04:11 PM)Skip Pack Wrote: (06-11-2023, 06:34 PM)Tim Curtis Wrote: Very odd "One curiosity is that, on reboot, the output mode is reset to plughw from direct."
I'm not seeing that on my end. If I set ALSA output mode to Direct (hw) and then reboot, the setting sticks and the log shows same: 20230611 135145 worker: ALSA output mode (Direct: hw)
It looks like the config file I posted is missing the top and bottom delimiters but I don't think that would cause your issue. In any case here is the updated file.
Code: ---
devices:
adjust_period: 10
capture:
channels: 2
extra_samples: 0
filename: /dev/stdin
format: S16LE
read_bytes: 0
skip_bytes: 0
type: File
capture_samplerate: 0
chunksize: 4096
enable_rate_adjust: false
enable_resampling: false
playback:
channels: 2
device: hw:0,0
format: S16LE
type: Alsa
queuelimit: 1
rate_measure_interval: 1
resampler_type: Synchronous
samplerate: 44100
silence_threshold: -60
silence_timeout: 3
stop_on_rate_change: false
target_level: 0
filters:
Dither:
parameters:
bits: 16
type: Simple
type: Dither
Volume:
parameters:
ramp_time: 200
type: Volume
mixers:
stereo:
channels:
in: 2
out: 2
mapping:
- dest: 0
mute: false
sources:
- channel: 0
gain: -3
inverted: true
mute: false
- dest: 1
mute: false
sources:
- channel: 1
gain: -3
inverted: true
mute: false
pipeline:
- name: stereo
type: Mixer
- channel: 0
names:
- Volume
type: Filter
- channel: 1
names:
- Volume
type: Filter
- channel: 0
names:
- Dither
type: Filter
- channel: 1
names:
- Dither
type: Filter
...
CamillaDSP also writes errors and warnings to the MPD log
/var/log/mpd/log
The usage mode thing turned out to be a red herring. The problem persists, however, even with the delimeters in place. The unusual symptom is in a change to the 'ProtoDAC VC.yml' file. I create it in the configs subdir and it looks good. When I bring it up in the cdsp settings interface it is there and selects fine. Then, I go to play a file and hit the MPD error. Then I again check on the 'ProtoDAC VC.yml' file (SSH via putty) and that file is truncated showing only 'devices' with 'capture' and 'playback' sections -- perhaps only 1/4 of the full file. I plan to document a clean example of this with the logs and screen captures, so, if this scant description doesn't trigger a strong suspicion on your part, it probably makes sense to wait for the filled-out version.
Thanks, Skip
Very odd to see the file being truncated :-0
Are there any errors in /var/log/mpd/log ??
RE: ProtoDAC TDA1387 X8 project - Skip Pack - 06-12-2023
(06-12-2023, 05:04 PM)Tim Curtis Wrote: Very odd to see the file being truncated :-0
Are there any errors in /var/log/mpd/log ??
When I get the time I'm aiming to get clean examples of that and the main log as well as screen shots etc.
RE: ProtoDAC TDA1387 X8 project - Skip Pack - 06-15-2023
OK! Here goes:
I burned a fresh image on my sdhc and fired it up. After nominating the ProtoDAC as the active device I rebooted as required, producing the following output from moodutl -l:
Code: moodeutl -l
20230614 181111 worker: --
20230614 181111 worker: -- Start moOde 8 series
20230614 181111 worker: --
20230614 181111 worker: Successfully daemonized
20230614 181111 worker: Waiting for Linux startup...
20230614 181123 worker: Linux startup complete
20230614 181123 worker: Boot config backed up
20230614 181125 worker: File check (OK)
20230614 181126 worker: Session vacuumed
20230614 181126 worker: Session loaded
20230614 181126 worker: Debug logging (OFF)
20230614 181126 worker: --
20230614 181126 worker: -- Audio debug
20230614 181126 worker: --
20230614 181126 worker: ALSA cards: (0:sndrpirpidac | 1:empty | 2:empty | 3:empty
20230614 181126 worker: MPD config: (0:ProtoDAC TDA1387 X8 | mixer:(PCM) | card:0)
20230614 181126 worker: ALSA mixer actual (none)
20230614 181127 worker: ALSA volume (none)
20230614 181127 worker: --
20230614 181127 worker: -- System
20230614 181127 worker: --
20230614 181128 worker: Host (moode)
20230614 181128 worker: Hardware (Pi-4B 1.1 4GB)
20230614 181128 worker: moOde (8.3.3 2023-06-08)
20230614 181128 worker: RaspiOS (11.7)
20230614 181128 worker: Kernel (6.1.21-v8+ #1642)
20230614 181128 worker: Procarch (aarch64, 64-bit)
20230614 181128 worker: MPD ver (0.23.12)
20230614 181128 worker: CPU gov (ondemand)
20230614 181128 worker: Userid (spack)
20230614 181128 worker: Homedir (/home/spack)
20230614 181128 worker: Timezone (America/Los_Angeles)
20230614 181128 worker: Keyboard (us)
20230614 181128 worker: USB boot (enabled)
20230614 181128 worker: File sys (expanded)
20230614 181128 worker: HDMI port (On)
20230614 181128 worker: Sys LED0 (On)
20230614 181128 worker: Sys LED1 (On)
20230614 181128 worker: --
20230614 181128 worker: -- Network
20230614 181128 worker: --
20230614 181128 worker: eth0 adapter exists
20230614 181128 worker: eth0 address check (Off)
20230614 181128 worker: IP addr (192.168.1.3)
20230614 181128 worker: Netmask (255.255.255.0)
20230614 181129 worker: Gateway (192.168.1.1)
20230614 181129 worker: Pri DNS (192.168.1.1)
20230614 181129 worker: Domain (lan)
20230614 181129 worker: wlan0 adapter exists
20230614 181129 worker: wlan0 country (US)
20230614 181129 worker: wlan0 configured SSID (4Pi_one)
20230614 181129 worker: wlan0 SSID alternates (None)
20230614 181129 worker: wlan0 router mode (Off)
20230614 181129 worker: wlan0 address check (up to 90 secs)
20230614 181318 worker: wlan0 address not assigned
20230614 181318 worker: wlan0 AP mode not activated, eth0 active but Router mode is Off
20230614 181318 worker: wlan0 address not assigned
20230614 181319 worker: --
20230614 181319 worker: -- Software update
20230614 181319 worker: --
20230614 181319 worker: Automatic check (Off)
20230614 181319 worker: --
20230614 181319 worker: -- Audio config
20230614 181319 worker: --
20230614 181319 worker: MPD conf updated
20230614 181319 worker: ALSA card number (0)
20230614 181319 worker: MPD audio output (ProtoDAC TDA1387 X8)
20230614 181319 worker: Audio formats (S16_LE, S24_LE)
20230614 181319 worker: ALSA mixer name (none)
20230614 181319 worker: MPD mixer type (software)
20230614 181319 worker: Hdwr volume controller not detected
20230614 181319 worker: ALSA output mode (Default: plughw)
20230614 181319 worker: ALSA loopback (Off)
20230614 181319 worker: Reset renderer active flags
20230614 181319 worker: CamillaDSP configuration (off)
20230614 181319 worker: CamillaDSP volume sync (Off)
20230614 181319 worker: CamillaDSP volume range (60 dB)
20230614 181319 worker: --
20230614 181319 worker: -- File sharing
20230614 181319 worker: --
20230614 181319 worker: SMB file sharing (Off)
20230614 181319 worker: NFS file sharing (Off)
20230614 181319 worker: --
20230614 181319 worker: -- MPD startup
20230614 181319 worker: --
20230614 181320 worker: MPD started
20230614 181320 worker: MPD accepting connections
20230614 181320 worker: MPD output 1 ALSA Default (On)
20230614 181320 worker: MPD output 2 ALSA Bluetooth (Off)
20230614 181320 worker: MPD output 3 HTTP Server (Off)
20230614 181320 worker: MPD crossfade (off)
20230614 181320 worker: MPD ignore CUE files (yes)
20230614 181320 worker: Default playlist loaded for first boot
20230614 181320 worker: --
20230614 181320 worker: -- Music sources
20230614 181320 worker: --
20230614 181320 worker: USB sources
20230614 181320 worker: No drives found
20230614 181320 worker: NAS sources
20230614 181320 worker: None configured
20230614 181320 worker: --
20230614 181320 worker: -- Feature availability
20230614 181320 worker: --
20230614 181320 worker: Input select (available)
20230614 181320 worker: Input (MPD)
20230614 181320 worker: Output (ProtoDAC TDA1387 X8)
20230614 181320 worker: Bluetooth (available)
20230614 181320 worker: AirPlay renderer (available)
20230614 181320 worker: Spotify renderer (available)
20230614 181320 worker: Squeezelite (available)
20230614 181320 worker: RoonBridge renderer (not installed)
20230614 181320 worker: Multiroom sender (available)
20230614 181320 worker: Multiroom receiver (available)
20230614 181320 worker: UPnP renderer (available)
20230614 181320 worker: DLNA server (available)
20230614 181320 worker: GPIO button handler (available)
20230614 181320 worker: Stream recorder (available: not installed)
20230614 181320 worker: HTTPS-Only mode (n/a)
20230614 181320 worker: --
20230614 181320 worker: -- Other
20230614 181320 worker: --
20230614 181320 worker: USB volume knob (Off)
20230614 181320 worker: USB auto-mounter (udisks-glue)
20230614 181320 worker: Saved MPD vol level (0)
20230614 181320 worker: Preamp volume level (0)
20230614 181320 worker: MPD volume level (0) restored
20230614 181320 worker: ALSA volume level (None)
20230614 181320 worker: Auto-play (Off)
20230614 181321 worker: LocalUI (Off)
20230614 181321 worker: Automatic CoverView (Off)
20230614 181321 worker: On-screen keyboard (Off)
20230614 181321 worker: Library scope (all)
20230614 181321 worker: View reset to playback
20230614 181321 worker: Maintenance interval (360 minutes)
20230614 181321 worker: Screen saver activation (Never)
20230614 181321 worker: Session permissions (OK)
20230614 181321 worker: --
20230614 181321 worker: -- Startup complete
20230614 181321 worker: --
20230614 181321 worker: Mount monitor (off)
20230614 181321 worker: Watchdog monitor (started)
20230614 181321 worker: Ready
I then saved the 'ProtoDAC VC.yml' file contents to a text file and copied it to /usr/share/camilladsp/configs. I did it this way to avoid any software that might interact with a .yml file on the way to the RPi 4. using ssh, I then went to the configs directory created an empty file named 'ProtoDAC VC.yml' and ran 'cat 'ProtoDAC VC.txt' > 'ProtoDAC VC.yml'. Which, captured from the screen, is shown below:
Code: cat 'ProtoDAC VC.yml'
---
devices:
adjust_period: 10
capture:
channels: 2
extra_samples: 0
filename: /dev/stdin
format: S16LE
read_bytes: 0
skip_bytes: 0
type: File
capture_samplerate: 0
chunksize: 4096
enable_rate_adjust: false
enable_resampling: false
playback:
channels: 2
device: hw:0,0
format: S16LE
type: Alsa
queuelimit: 1
rate_measure_interval: 1
resampler_type: Synchronous
samplerate: 44100
silence_threshold: -60
silence_timeout: 3
stop_on_rate_change: false
target_level: 0
filters:
Dither:
parameters:
bits: 16
type: Simple
type: Dither
Volume:
parameters:
ramp_time: 200
type: Volume
mixers:
stereo:
channels:
in: 2
out: 2
mapping:
- dest: 0
mute: false
sources:
- channel: 0
gain: -3
inverted: true
mute: false
- dest: 1
mute: false
sources:
- channel: 1
gain: -3
inverted: true
mute: false
pipeline:
- name: stereo
type: Mixer
- channel: 0
names:
- Volume
type: Filter
- channel: 1
names:
- Volume
type: Filter
- channel: 0
names:
- Dither
type: Filter
- channel: 1
names:
- Dither
type: Filter
...
Next, I ran 'Update library' to make the LR Channel and Phase file available and played it successfully. (without loading the config file in CamillaDSP.) Next I loaded the 'ProtoDAC VC.yml' In the 'General> signal processing' box of CDSP menu, saved it, and it completed the loading without error. Then, without playing the file, I looked at 'ProtoDAC VC.yml' and it was truncated as shown next:
Code: cat 'ProtoDAC VC.yml'
---
devices:
capture:
type: File
channels: 2
filename: /dev/stdin
format: S24LE
playback:
type: Alsa
channels: 2
device: plughw:0,0
format: S24LE
...
Then, attempting to play LR Channel and Phase, I got the error "MPD Error failed to open audio output" The captured /var/log/mpd/log is as shown:
Code: cat /var/log/mpd/log
Jun 14 18:10 : update: added SDCARD/Stereo Test/LRMonoPhase4.flac
Jun 14 18:26 : player: played "SDCARD/Stereo Test/LRMonoPhase4.flac"
Jun 14 18:27 : player: played "SDCARD/Stereo Test/LRMonoPhase4.flac"
2023-06-15 01:31:04.401349 INFO [src/bin.rs:711] CamillaDSP version 1.0.3
2023-06-15 01:31:04.401529 INFO [src/bin.rs:712] Running on linux, aarch64
2023-06-15 01:31:04.402360 ERROR [src/bin.rs:777] Invalid config file!
devices: missing field `samplerate` at line 3 column 10
Jun 14 18:31 : output: Failed to play on "ALSA Default" (alsa): snd_pcm_poll_descriptors_revents() failed: No such device
Jun 14 18:31 : exception: Failed to open audio output
no pid file present!
ALSA lib libasound_module_pcm_cdsp.c:869:(cdsp_hw_free) Error executing camilla_exit_cmd /usr/local/bin/cdspstorevolume
I did not nominate the same config file in the pipline editor slot. Should I do so?
Hopefully my efforts to pare this issue down so there are fewer possible causes to chase will help.
Thanks again for your help,
Skip
RE: ProtoDAC TDA1387 X8 project - Tim Curtis - 06-15-2023
Very strange regarding the file truncation after saving. Maybe somehow there are some binary characters in the file from the way it was created.
I'll try to repro on my end.
In the meantime, try the same file creation process and then run the "file" command below. It should print "ASCII text".
Code: pi@moode:~ $ file /usr/share/camilladsp/configs/ProtoDAC\ VC.yml
/usr/share/camilladsp/configs/ProtoDAC VC.yml: ASCII text
|