[pulseaudio-discuss] [PATCH] Added support for Creative SoundBlaster Omni Surround 5.1 USB sound card. Mic and Line in inputs were not working at all.

Nazar Mokrynskyi nazar at mokrynskyi.com
Sat Jun 20 21:04:29 PDT 2015


> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: Activating path 
> analog-input-mic
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: Path 
> analog-input-mic (Microphone), direction=2, priority=87, probed=yes, 
> supported=yes, has_mute=yes, has_volume=yes, has_dB=yes, min_volume=0, 
> max_volume=48, min_dB=-12, max_dB=12
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: Element Mic, 
> direction=2, switch=1, volume=1, volume_limit=-1, enumeration=0, 
> required=0, required_any=4, required_absent=0, mask=0x3600000000f66, 
> n_channels=2, override_map=yes
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: Element PCM 
> Capture Source, direction=2, switch=0, volume=0, volume_limit=-1, 
> enumeration=1, required=0, required_any=0, required_absent=0, 
> mask=0x0, n_channels=0, override_map=no
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: Option Mic 
> (analog-input-microphone/analog-input-microphone) index=0, priority=0
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: Element Line, 
> direction=2, switch=2, volume=2, volume_limit=-1, enumeration=0, 
> required=0, required_any=0, required_absent=0, mask=0x6, n_channels=2, 
> override_map=no
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: Jack Mic, 
> alsa_name='Mic Jack', detection unavailable
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: Jack Mic Phantom, 
> alsa_name='Mic Phantom Jack', detection unavailable
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: Setting 
> analog-input-microphone (analog-input-microphone) priority=0
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: 
> element_set_switch(): e->alsa_name Line
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: 
> element_set_switch(): e->direction == PA_ALSA_DIRECTION_OUTPUT 33694896
>
> Do you mean the direction is not input ?
>
According to debug message, it is so, however in config:

>     [Mapping analog-stereo-input]
>     device-strings = hw:%f,1,0
>     paths-input = analog-input-mic analog-input-linein
>     channel-map = left,right
>     direction = input

There is explicit mentioning of required direction.
>
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: 
> element_set_switch(): b 0
>
> pulseaudio seem just turn off line switch instead of turn on nic 
> capture volum/switch when activating mic path
>
> One line show element name , values or enum index and enum name 
> instead of three lines
>
Sorry, I'm not sure I understand what do you mean by this.
I'm not C/C++ developer at all, can't even find definition of 
snd_mixer_elem_t to find what is that and how to use it (my guess that 
you've being asking about it, right?).
>
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: 
> element_set_option(): e->alsa_name PCM Capture Source
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: 
> element_set_option(): e->switch_use == PA_ALSA_SWITCH_SELECT 0
> (   0.090|   0.000) D: [lt-pulseaudio] alsa-mixer.c: 
> element_set_option(): alsa_idx 0
>
> snd_mixer_selem_get_enum_item_name() provide the name of enum item by 
> index
>
Seems to be the as previous, I really want to help with debugging, but 
you should be more concrete since code is too unfamiliar for me.
>
> Do you mean you still cannot force pulseaudio to use 24 bits for your 
> creative usb audio ?
>
> Seem try auto format did not include 24bits
>
I have 24bit explicitly in pulseaudio config currently:

>     default-sample-format = s24le

But it still uses 16bit, didn't managed how to force it to use 24bit

Sincerely, Nazar Mokrynskyi
github.com/nazar-pc
Skype: nazar-pc
Diaspora: nazarpc at diaspora.mokrynskyi.com
Tox: A9D95C9AA5F7A3ED75D83D0292E22ACE84BA40E912185939414475AF28FD2B2A5C8EF5261249


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150621/ce22e203/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4245 bytes
Desc: Кріптографічний підпис S/MIME
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150621/ce22e203/attachment-0001.bin>


More information about the pulseaudio-discuss mailing list