IEC958 (S/PDIF) passthrough - Issues
I am having trouble making passthrough working.
in my ~/.config/pipewire/media-session.d/alsa-monitor.conf at the very end:
...
#api.alsa.disable-batch = false
#api.alsa.use-chmap = false
iec958.codecs = [ PCM DTS AC3 MPEG MPEG2-AAC EAC3 TrueHD DTS-HD ]\ <- removed the #
...
and restarted pipewire-media-session.service
Now:
mpv --ao=alsa --audio-spdif=dts,truehd,dts-hd,eac3 moviefile.mkv
throws up:\
Using hardware decoding (vaapi).
ALSA lib conf.c:5668:(snd_config_expand) Unknown parameters AES0=6,AES1=130,AES2=0,AES3=14
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default:AES0=6,AES1=130,AES2=0,AES3=14
ALSA lib confmisc.c:1369:(snd_func_refer) Unable to find definition 'cards.0.pcm.iec958.8:CARD=0,AES0=6,AES1=130,AES2=0,AES3=14'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM iec958:AES0=6,AES1=130,AES2=0,AES3=14
[ao/alsa] Playback open error: No such file or directory
[ao] Failed to initialize audio driver 'alsa'
but if I tell mpv which output to use (in my case it is alsa/hdmi:CARD=PCH,DEV=2):
mpv --audio-device=alsa/hdmi:CARD=PCH,DEV=2 --audio-spdif=dts,truehd,dts-hd,eac3 moviefile.mkv
...
AO: [alsa] 192000Hz 7.1 8ch spdif-dtshd
...
It works correctly.
What am I doing wrong ?
I have tried wireplumber but, how/here do we ""Modify the iec958.codecs = [ PCM DTS AC3 MPEG MPEG2-AAC EAC3 TrueHD DTS-HD ]
node property to something."" using wireplumber ? 50-alsa-monitor ? It does not have iec958.codecs mentioned. Documentation for this is not clear, at least to me :(
I am sure I am missing something obvious and for that I am sorry.
Thank you