mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
alsa-mixer: Add support for the Microsoft Kinect Sensor device
The Kinect shows up as a UAC device after the firmware has been loaded, but in order to be detected by pulseaudio a 4-channels input only mapping is needed. Provide a new profile for that and set it with a udev rule. fdo#39664
This commit is contained in:
parent
3ebc8f8e88
commit
e93b32744c
2 changed files with 40 additions and 0 deletions
|
|
@ -27,5 +27,6 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="4711", ENV{PULSE_
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1011", ENV{PULSE_PROFILE_SET}="native-instruments-traktor-audio6.conf"
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1011", ENV{PULSE_PROFILE_SET}="native-instruments-traktor-audio6.conf"
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1021", ENV{PULSE_PROFILE_SET}="native-instruments-traktor-audio10.conf"
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1021", ENV{PULSE_PROFILE_SET}="native-instruments-traktor-audio10.conf"
|
||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2012", ENV{PULSE_PROFILE_SET}="maudio-fasttrack-pro.conf"
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2012", ENV{PULSE_PROFILE_SET}="maudio-fasttrack-pro.conf"
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02bb", ENV{PULSE_PROFILE_SET}="kinect-audio.conf"
|
||||||
|
|
||||||
LABEL="pulseaudio_end"
|
LABEL="pulseaudio_end"
|
||||||
|
|
|
||||||
39
src/modules/alsa/mixer/profile-sets/kinect-audio.conf
Normal file
39
src/modules/alsa/mixer/profile-sets/kinect-audio.conf
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# 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, write to the Free Software Foundation,
|
||||||
|
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
||||||
|
|
||||||
|
; Audio profile for the Microsoft Kinect Sensor device in UAC mode.
|
||||||
|
;
|
||||||
|
; Copyright (C) 2011 Antonio Ospite <ospite@studenti.unina.it>
|
||||||
|
;
|
||||||
|
; This device has an array of four microphones, and no playback capability.
|
||||||
|
;
|
||||||
|
; See default.conf for an explanation on the directives used here.
|
||||||
|
|
||||||
|
[General]
|
||||||
|
auto-profiles = no
|
||||||
|
|
||||||
|
[Mapping input-4-channels]
|
||||||
|
device-strings = hw:%f
|
||||||
|
channel-map = front-left,front-right,rear-left,rear-right
|
||||||
|
description = 4 Channels Input
|
||||||
|
direction = input
|
||||||
|
priority = 5
|
||||||
|
|
||||||
|
[Profile input:mic-array]
|
||||||
|
description = Microphone Array
|
||||||
|
input-mappings = input-4-channels
|
||||||
|
priority = 2
|
||||||
|
skip-probe = yes
|
||||||
Loading…
Add table
Add a link
Reference in a new issue