[pulseaudio-discuss] profile-set for CMEDIA USB2.0 High-Speed True HD Audio (147a:e055)
Jean-Philippe Guillemin
h1p8r10n at gmail.com
Thu Feb 1 05:32:39 UTC 2018
Anyone ?
2018-01-29 11:31 GMT+01:00 Jean-Philippe Guillemin <h1p8r10n at gmail.com>:
> No matter what match string I tried, ALSA never changed the device for
> iec958.
>
>
> root[~]# cat /proc/asound/cards
> 0 [Audio ]: USB-Audio - USB2.0 High-Speed True HD Audio
> CMEDIA USB2.0 High-Speed True HD Audio at
> usb-0000:00:12.2-2, high speed
>
> In USB-Audio.conf :
>
> # If a device does not use the first PCM device for digital data, the
> device
> # number for the iec958 device can be changed here.
> USB-Audio.pcm.iec958_device {
> # "NoiseBlaster 3000" 42
> "USB Sound Blaster HD" 1
> "USB2.0 High-Speed True HD Audio" 2
> ...
>
> JP
>
>
>
> 2018-01-29 9:59 GMT+01:00 Jean-Philippe Guillemin <h1p8r10n at gmail.com>:
>
>> Thanks for your inputs :)
>>
>> 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.
>>
>> I ended with this , for PA profile :
>>
>> [Mapping iec958-stereo]
>> device-strings = hw:%f,2 hw:%f,0
>> channel-map = left,right
>> paths-output = iec958-stereo-output
>> paths-input = iec958-stereo-input
>> priority = 5
>>
>>
>> JP
>>
>> 2018-01-29 0:12 GMT+01:00 Tanu Kaskinen <tanuk at iki.fi>:
>>
>>> On Fri, 2018-01-26 at 23:15 +0100, Jean-Philippe Guillemin wrote:
>>> > Hi,
>>> >
>>> > After some investigation on how to make the optical iec958 output work
>>> on
>>> > my CMEDIA based usb DAC, I finally found a solution : a profile-set
>>> has to
>>> > be added for this device.
>>> >
>>> > Added to udev 90-pulseaudio.rules :
>>> >
>>> > ATTRS{idVendor}=="147a", ATTRS{idProduct}=="e055",
>>> > ENV{PULSE_PROFILE_SET}="cmedia-high-speed-true-hdaudio.conf"
>>> >
>>> > Added profile set
>>> > /usr/share/pulseaudio/alsa-mixer/profile-sets/cmedia-high-sp
>>> eed-true-hdaudio.conf
>>> > (only specific part below) :
>>> >
>>> > ----------(default)------------
>>> >
>>> > [Mapping iec958-stereo]
>>> > device-strings = hw:%f,2
>>> > channel-map = left,right
>>> > paths-input = iec958-stereo-input
>>> > paths-output = iec958-stereo-output
>>> > priority = 5
>>> >
>>> > ----------(default)------------
>>> >
>>> > I hope this profile-set will be added to pulseaudio.
>>>
>>> It's better to fix this in alsa. I believe you can do the required
>>> change in /usr/share/alsa/cards/USB-Audio.conf quite easily. The "USB-
>>> Audio.pcm.iec958_device" section seems to contain rules for setting the
>>> correct iec958 device number for specific sound cards (the correct
>>> number is 2 in your case). I'm not sure where to get the right match
>>> string for your card, though. I would guess that it's visible in
>>> /proc/asound/cards. For example, I have this entry for my usb sound
>>> card:
>>>
>>> 1 [C10 ]: USB-Audio - CA DacMagicXS 1.0
>>> CA CA DacMagicXS 1.0 at usb-0000:00:1a.0-1, full
>>> speed
>>>
>>> I would guess that "CA DacMagicXS 1.0" would be the correct match
>>> string for this card.
>>>
>>> If you manage to edit USB-Audio.conf so that you don't need the
>>> modification in PulseAudio, then either send a patch to alsa, or tell
>>> what change you did and I'll send the patch for you.
>>>
>>> --
>>> Tanu
>>>
>>> https://liberapay.com/tanuk
>>> https://www.patreon.com/tanuk
>>> _______________________________________________
>>> pulseaudio-discuss mailing list
>>> pulseaudio-discuss at lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20180201/7a4dbf20/attachment.html>
More information about the pulseaudio-discuss
mailing list