Ticket #624: pulseaudio-add-profile-sets-for-M_Audio-Audiophile-2496.patch

File pulseaudio-add-profile-sets-for-M_Audio-Audiophile-2496.patch, 4.8 KB (added by aelschuring, 3 years ago)

This patch adds support for the M2496, based on the comments by ianc

  • src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules

    From 3133469bfa73746a5c1b8cca2f3f2740eb073502 Mon Sep 17 00:00:00 2001
    From: Arno Schuring <aelschuring@hotmail.com>
    Date: Fri, 21 Aug 2009 03:27:29 +0200
    Subject: [PATCH 2/2] Add a profile set for the M-Audio Delta Audiophile 2496 soundcard
    
    ---
     .../alsa/mixer/profile-sets/90-pulseaudio.rules    |    1 +
     .../profile-sets/m_audio-audiophile-2496.conf      |   95 ++++++++++++++++++++
     2 files changed, 96 insertions(+), 0 deletions(-)
     create mode 100644 src/modules/alsa/mixer/profile-sets/m_audio-audiophile-2496.conf
    
    diff --git a/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules b/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules
    index ced202e..1167319 100644
    a b  
    2525 
    2626SUBSYSTEMS=="pci", ATTRS{vendor}=="0x1412", ATTRS{device}=="0x1712", ATTRS{subsystem_vendor}=="0x153b", ATTRS{subsystem_device}=="0x1115", ENV{PULSE_PROFILE_SET}="terratec-ews88-mt.conf" 
    2727SUBSYSTEMS=="pci", ATTRS{vendor}=="0x1412", ATTRS{device}=="0x1712", ATTRS{subsystem_vendor}=="0x153b", ATTRS{subsystem_device}=="0x1125", ENV{PULSE_PROFILE_SET}="terratec-ews88-mt.conf" 
     28SUBSYSTEMS=="pci", ATTRS{vendor}=="0x1412", ATTRS{device}=="0x1712", ATTRS{subsystem_vendor}=="0x1412", ATTRS{subsystem_device}=="0xd634", ENV{PULSE_PROFILE_SET}="m_audio-audiophile-2496.conf" 
    2829 
    2930 
    3031LABEL="pulseaudio_end" 
  • (a) /dev/null vs. (b) b/src/modules/alsa/mixer/profile-sets/m_audio-audiophile-2496.conf

    diff --git a/src/modules/alsa/mixer/profile-sets/m_audio-audiophile-2496.conf b/src/modules/alsa/mixer/profile-sets/m_audio-audiophile-2496.conf
    new file mode 100644
    index 0000000..48d43e9
    a b  
     1# This file is part of PulseAudio. 
     2# 
     3# PulseAudio is free software; you can redistribute it and/or modify 
     4# it under the terms of the GNU Lesser General Public License as 
     5# published by the Free Software Foundation; either version 2.1 of the 
     6# License, or (at your option) any later version. 
     7# 
     8# PulseAudio is distributed in the hope that it will be useful, but 
     9# WITHOUT ANY WARRANTY; without even the implied warranty of 
     10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
     11# General Public License for more details. 
     12# 
     13# You should have received a copy of the GNU Lesser General Public License 
     14# along with PulseAudio; if not, write to the Free Software Foundation, 
     15# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 
     16 
     17; M-Audio Delta Audiophile 2496 
     18; 
     19; This card, based on the Via ICE1712 chipset, has two stereo audio channels 
     20; (1 in and 1 out) and a separate S/PDIF digital stereo channel. Like with 
     21; all ICE1712-based cards, this is exposed by ALSA as a single 10-channel 
     22; device with some of the channels not connected. 
     23; 
     24; 
     25; See default.conf for an explanation on the directives used here. 
     26 
     27[General] 
     28auto-profiles = no 
     29 
     30[Mapping analog-stereo-in] 
     31description = Analog Stereo Input 
     32device-strings = hw:%f,0 
     33channel-map = front-left,front-right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9 
     34direction = input 
     35 
     36[Mapping analog-stereo-out] 
     37description = Analog Stereo Output 
     38device-strings = hw:%f,0 
     39channel-map = front-left,front-right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7 
     40direction = output 
     41 
     42[Mapping analog-digital-stereo-out] 
     43description = Analog/Digital Stereo Output 
     44device-strings = hw:%f,0 
     45channel-map = front-left,front-right,aux0,aux1,aux2,aux3,aux4,aux5,front-left,front-right 
     46direction = output 
     47 
     48[Mapping digital-stereo-out] 
     49description = Digital Stereo Output 
     50device-strings = hw:%f,0 
     51channel-map = aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,front-left,front-right 
     52direction = output 
     53 
     54[Mapping digital-stereo-in] 
     55description = Digital Stereo Input 
     56device-strings = hw:%f,0 
     57channel-map = aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,front-left,front-right,aux8,aux9 
     58direction = input 
     59 
     60 
     61[Profile output:stereo] 
     62description = Analog Stereo Output 
     63output-mappings = analog-stereo-out 
     64input-mappings = 
     65priority = 80 
     66skip-probe = yes 
     67 
     68[Profile output:stereo-da+input:stereo-analog] 
     69description = Analog Stereo Input/Output 
     70output-mappings = analog-stereo-out 
     71input-mappings = analog-stereo-in 
     72priority = 100 
     73skip-probe = yes 
     74 
     75[Profile output:stereo-da+input:stereo-analog] 
     76description = Analog Stereo Input/Output, Digital Stereo Output 
     77output-mappings = analog-digital-stereo-out 
     78input-mappings = analog-stereo-in 
     79priority = 90 
     80skip-probe = yes 
     81 
     82[Profile output:spdif] 
     83description = Digital Stereo Output (Analog Disabled) 
     84output-mappings = digital-stereo-out 
     85input-mappings =  
     86priority = 60 
     87skip-probe = yes 
     88 
     89[Profile output:spdif+input:spdif] 
     90description = Digital Stereo Input/Output (Analog Disabled) 
     91output-mappings = digital-stereo-out 
     92input-mappings = digital-stereo-in 
     93priority = 70 
     94skip-probe = yes 
     95