<div dir="ltr"><div><div>Thanks for your inputs :)<br><br></div>I'm going to try fixing from ALSA, but I'm not sure it's so easy cause this card has input SPDIF on device #0 and output SPDIF on device #2. <br><br></div><div>I ended with this , for PA profile : <br><br></div><div>[Mapping iec958-stereo]<br>device-strings = hw:%f,2 hw:%f,0<br>channel-map = left,right<br>paths-output = iec958-stereo-output<br>paths-input = iec958-stereo-input<br>priority = 5<br><br><br></div>JP<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-29 0:12 GMT+01:00 Tanu Kaskinen <span dir="ltr"><<a href="mailto:tanuk@iki.fi" target="_blank">tanuk@iki.fi</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 2018-01-26 at 23:15 +0100, Jean-Philippe Guillemin wrote:<br>
> Hi,<br>
><br>
> After some investigation on how to make the optical iec958 output work on<br>
> my CMEDIA based usb DAC, I finally found a solution : a profile-set has to<br>
> be added for this device.<br>
><br>
> Added to udev 90-pulseaudio.rules :<br>
><br>
> ATTRS{idVendor}=="147a", ATTRS{idProduct}=="e055",<br>
> ENV{PULSE_PROFILE_SET}="<wbr>cmedia-high-speed-true-<wbr>hdaudio.conf"<br>
><br>
> Added profile set<br>
> /usr/share/pulseaudio/alsa-<wbr>mixer/profile-sets/cmedia-<wbr>high-speed-true-hdaudio.conf<br>
> (only specific part below) :<br>
><br>
> ----------(default)-----------<wbr>-<br>
><br>
> [Mapping iec958-stereo]<br>
> device-strings = hw:%f,2<br>
> channel-map = left,right<br>
> paths-input = iec958-stereo-input<br>
> paths-output = iec958-stereo-output<br>
> priority = 5<br>
><br>
> ----------(default)-----------<wbr>-<br>
><br>
> I hope this profile-set will be added to pulseaudio.<br>
<br>
It's better to fix this in alsa. I believe you can do the required<br>
change in /usr/share/alsa/cards/USB-<wbr>Audio.conf quite easily. The "USB-<br>
Audio.pcm.iec958_device" section seems to contain rules for setting the<br>
correct iec958 device number for specific sound cards (the correct<br>
number is 2 in your case). I'm not sure where to get the right match<br>
string for your card, though. I would guess that it's visible in<br>
/proc/asound/cards. For example, I have this entry for my usb sound<br>
card:<br>
<br>
1 [C10 ]: USB-Audio - CA DacMagicXS 1.0<br>
CA CA DacMagicXS 1.0 at usb-0000:00:1a.0-1, full speed<br>
<br>
I would guess that "CA DacMagicXS 1.0" would be the correct match<br>
string for this card.<br>
<br>
If you manage to edit USB-Audio.conf so that you don't need the<br>
modification in PulseAudio, then either send a patch to alsa, or tell<br>
what change you did and I'll send the patch for you.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Tanu<br>
<br>
<a href="https://liberapay.com/tanuk" rel="noreferrer" target="_blank">https://liberapay.com/tanuk</a><br>
<a href="https://www.patreon.com/tanuk" rel="noreferrer" target="_blank">https://www.patreon.com/tanuk</a><br>
______________________________<wbr>_________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/pulseaudio-<wbr>discuss</a><br>
</font></span></blockquote></div><br></div>