alsa-mixer: Add support for Creative SoundBlaster Omni Surround 5.1 USB sound card

Mic and Line in inputs were not working at all, since they use the
hw:x,1,0 device, which is not supported in the default configuration.
This commit is contained in:
Nazar Mokrynskyi 2015-06-03 17:32:09 +02:00 committed by Tanu Kaskinen
parent a3a54bf2e6
commit b7744e5004
4 changed files with 93 additions and 0 deletions

View file

@ -62,6 +62,13 @@ enumeration = select
name = analog-input-linein
required-any = any
[Element PCM Capture Source]
enumeration = select
[Option PCM Capture Source:Line]
name = analog-input-linein
required-any = any
[Element Mic]
switch = off
volume = off

View file

@ -69,6 +69,13 @@ enumeration = select
name = analog-input-microphone
required-any = any
[Element PCM Capture Source]
enumeration = select
[Option PCM Capture Source:Mic]
name = analog-input-microphone
required-any = any
;;; Some AC'97s have "Mic Select" and "Mic Boost (+20dB)"
[Element Mic Select]

View file

@ -97,5 +97,6 @@ ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1011", ENV{PULSE_PROFILE_SET}="nativ
ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1021", ENV{PULSE_PROFILE_SET}="native-instruments-traktor-audio10.conf"
ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2012", ENV{PULSE_PROFILE_SET}="maudio-fasttrack-pro.conf"
ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02bb", ENV{PULSE_PROFILE_SET}="kinect-audio.conf"
ATTRS{idVendor}=="041e", ATTRS{idProduct}=="322c", ENV{PULSE_PROFILE_SET}="sb-omni-surround-5.1.conf"
LABEL="pulseaudio_end"

View file

@ -0,0 +1,78 @@
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
; Creative Sound Blaster Omni Surround 5.1
;
; This sound card have Mic/Line in at hw:%f,1,0 - this is the main
; difference from default.conf, also unsupported sections removed.
;
; See default.conf for an explanation on the directives used here.
[General]
auto-profiles = yes
[Mapping analog-stereo]
device-strings = front:%f hw:%f
channel-map = left,right
paths-output = analog-output
priority = 10
[Mapping analog-stereo-input]
device-strings = hw:%f,1,0
paths-input = analog-input-mic analog-input-linein
channel-map = left,right
direction = input
[Mapping analog-surround-21]
device-strings = surround21:%f
channel-map = front-left,front-right,lfe
paths-output = analog-output
priority = 5
direction = output
[Mapping analog-surround-40]
device-strings = surround40:%f
channel-map = front-left,front-right,rear-left,rear-right
paths-output = analog-output
priority = 6
direction = output
[Mapping analog-surround-41]
device-strings = surround41:%f
channel-map = front-left,front-right,rear-left,rear-right,lfe
paths-output = analog-output
priority = 7
direction = output
[Mapping analog-surround-50]
device-strings = surround50:%f
channel-map = front-left,front-right,rear-left,rear-right,front-center
paths-output = analog-output
priority = 8
direction = output
[Mapping analog-surround-51]
device-strings = surround51:%f
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
paths-output = analog-output
priority = 9
direction = output
[Mapping iec958-stereo]
device-strings = iec958:%f
channel-map = left,right
paths-output = iec958-stereo-output
priority = 5
direction = output