[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] 3 commits: alsa-mixer: Fix mono input for Texas Instruments PCM2902

PulseAudio Marge Bot (@pulseaudio-merge-bot) gitlab at gitlab.freedesktop.org
Thu Dec 16 10:54:53 UTC 2021



PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio


Commits:
7f02f3a0 by simple at 2021-12-16T12:36:03+02:00
alsa-mixer: Fix mono input for Texas Instruments PCM2902

Even though the file name is currently behringer-umc22.conf, the USB ID
actually belongs to Texas Instruments PCM2902, which is a generic chip
used in multiple products. Some products have true mono input unlike
Behringer UMC22, which has two mono inputs combined into one stereo PCM
device.

This patch removes the "mono,mono" mapping from Behringer UMC22, which
hopefully won't be missed too much (there are still "mono,aux1" and
"aux1,mono" mappings available for mono recording).

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/667>

- - - - -
741a96f2 by simple at 2021-12-16T12:36:26+02:00
alsa-mixer: Rename behringer-umc22.conf to texas-instruments-pcm2902.conf

The USB ID that Behringer UMC22 uses actually belongs to Texas
Instruments PCM2902, which is a generic chip used in multiple products.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/667>

- - - - -
ece71de3 by Tanu Kaskinen at 2021-12-16T12:48:20+02:00
alsa-mixer: Improve documentation in texas-instruments-pcm2902.conf

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/667>

- - - - -


2 changed files:

- src/modules/alsa/90-pulseaudio.rules
- src/modules/alsa/mixer/profile-sets/behringer-umc22.conf → src/modules/alsa/mixer/profile-sets/texas-instruments-pcm2902.conf


Changes:

=====================================
src/modules/alsa/90-pulseaudio.rules
=====================================
@@ -113,7 +113,7 @@ ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02bb", ENV{PULSE_PROFILE_SET}="kinec
 ATTRS{idVendor}=="041e", ATTRS{idProduct}=="322c", ENV{PULSE_PROFILE_SET}="sb-omni-surround-5.1.conf"
 ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="4014", ENV{PULSE_PROFILE_SET}="dell-dock-tb16-usb-audio.conf"
 ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="402e", ENV{PULSE_PROFILE_SET}="dell-dock-tb16-usb-audio.conf"
-ATTRS{idVendor}=="08bb", ATTRS{idProduct}=="2902", ENV{PULSE_PROFILE_SET}="behringer-umc22.conf"
+ATTRS{idVendor}=="08bb", ATTRS{idProduct}=="2902", ENV{PULSE_PROFILE_SET}="texas-instruments-pcm2902.conf"
 ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0269", ENV{PULSE_PROFILE_SET}="hp-tbt-dock-120w-g2.conf"
 ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0567", ENV{PULSE_PROFILE_SET}="hp-tbt-dock-audio-module.conf"
 


=====================================
src/modules/alsa/mixer/profile-sets/behringer-umc22.conf → src/modules/alsa/mixer/profile-sets/texas-instruments-pcm2902.conf
=====================================
@@ -13,22 +13,26 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
 
-; Behringer U-Phoria UMC22
+; Texas Instruments PCM2902
 ;
-; Default mapping only allows to use stereo input and sound card has two
-; physical input channels.
+; This is a generic chip used in multiple products, including at least
+; Behringer U-Phoria UMC22, Intopic Jazz-UB700 and some unbranded "usb mini
+; microphone".
 ;
-; However in case of only using a single input channel (like condenser
-; microphone) only one channel will have any sound, which is often
-; inconvenient for casual use.
+; Behringer UMC22 has stereo input (representing two physical mono inputs),
+; others have mono input.
 ;
-; This config includes mono input options which makes it much more
-; friendly in single input configuration.
+; Since the UMC22 card has only stereo input PCM device but is commonly used
+; with mono mics, we define special mono mappings using "mono,aux1" and
+; "aux1,mono" channel maps. If we had only had the standard stereo input
+; mapping, the user would have to record stereo tracks with one channel silent,
+; which would be inconvenient.
 ;
 ; This config also removes default digital input/output mappings that do
-; not physically exist on this card.
+; not physically exist on cards that we've seen so far.
 ;
-; Added by Nazar Mokrynskyi <nazar at mokrynskyi.com>
+; Originally added by Nazar Mokrynskyi <nazar at mokrynskyi.com> for Behringer
+; UMC22.
 
 [General]
 auto-profiles = yes
@@ -42,7 +46,7 @@ priority = 4
 
 [Mapping analog-mono]
 device-strings = hw:%f
-channel-map = mono,mono
+channel-map = mono
 paths-input = analog-input-mic
 direction = input
 priority = 3



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/compare/cc8df06b9d04ad8d788043973c392fd8307b1680...ece71de3fd20d1e3e4b76ec84c7cceb39ce02176

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/compare/cc8df06b9d04ad8d788043973c392fd8307b1680...ece71de3fd20d1e3e4b76ec84c7cceb39ce02176
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20211216/c37367df/attachment-0001.htm>


More information about the pulseaudio-commits mailing list