<div dir="ltr">Anyone ?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-29 11:31 GMT+01:00 Jean-Philippe Guillemin <span dir="ltr"><<a href="mailto:h1p8r10n@gmail.com" target="_blank">h1p8r10n@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>No matter what match string I tried, ALSA never changed the device for iec958.<br><br><br>root[~]# cat /proc/asound/cards<br> 0 [Audio ]: USB-Audio - USB2.0 High-Speed True HD Audio<br> CMEDIA USB2.0 High-Speed True HD Audio at usb-0000:00:12.2-2, high speed<br><br></div>In USB-Audio.conf : <br><br># If a device does not use the first PCM device for digital data, the device<br># number for the iec958 device can be changed here.<br>USB-Audio.pcm.iec958_device {<br> # "NoiseBlaster 3000" 42<br> "USB Sound Blaster HD" 1<br> "USB2.0 High-Speed True HD Audio" 2<br>...<br><br></div>JP<br><div><br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-29 9:59 GMT+01:00 Jean-Philippe Guillemin <span dir="ltr"><<a href="mailto:h1p8r10n@gmail.com" target="_blank">h1p8r10n@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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}="cmedia<wbr>-high-speed-true-hdaudio.conf"<br>
><br>
> Added profile set<br>
> /usr/share/pulseaudio/alsa-mix<wbr>er/profile-sets/cmedia-high-sp<wbr>eed-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-Audi<wbr>o.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.<span class="HOEnZb"><font color="#888888"><span class="m_-5400913178125605238HOEnZb"><font color="#888888"><br>
<span class="m_-5400913178125605238m_4547916924769104144HOEnZb"><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" target="_blank">pulseaudio-discuss@lists.freed<wbr>esktop.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-di<wbr>scuss</a><br>
</font></span></font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div>
</blockquote></div><br></div>
</blockquote></div><br></div>