HS-IVI2.0 release - initial commit
[adaptation/panda/mmfw-sysconf-omap4.git] / mmfw-sysconf-panda / usr / share / pulseaudio / alsa-mixer / profile-sets / tizen_usb.conf
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 ; Default profile definitions for the ALSA backend of PulseAudio. This
18 ; is used as fallback for all cards that have no special mapping
19 ; assigned (and should be good enough for the vast majority of
20 ; cards). If you want to assign a different profile set than this one
21 ; to a device, either set the udev property PULSE_PROFILE_SET for the
22 ; card, or use the "profile_set" module argument when loading
23 ; module-alsa-card.
24 ;
25 ; So what is this about? Simply, what we do here is map ALSA devices
26 ; to how they are exposed in PA. We say which ALSA device string to
27 ; use to open a device, which channel mapping to use then, and which
28 ; mixer path to use. This is encoded in a 'mapping'. Multiple of these
29 ; mappings can be bound together in a 'profile' which is then directly
30 ; exposed in the UI as a card profile. Each mapping assigned to a
31 ; profile will result in one sink/source to be created if the profile
32 ; is selected for the card.
33 ;
34 ; Additionally, the path set configuration files can describe the
35 ; decibel values assigned to the steps of the volume elements. This
36 ; can be used to work around situations when the alsa driver doesn't
37 ; provide any decibel information, or when the information is
38 ; incorrect.
39
40
41 ; [General]
42 ; auto-profiles = no | yes                  # Instead of defining all profiles manually, autogenerate
43 ;                                           # them by combining every input mapping with every output mapping.
44 ;
45 ; [Mapping id]
46 ; device-strings = ...                      # ALSA device string. %f will be replaced by the card identifier.
47 ; channel-map = ...                         # Channel mapping to use for this device
48 ; description = ...
49 ; paths-input = ...                         # A list of mixer paths to use. Every path in this list will be probed.
50 ;                                           # If multiple are found to be working they will be available as device ports
51 ; paths-output = ...
52 ; element-input = ...                       # Instead of configuring a full mixer path simply configure a single
53 ;                                           # mixer element for volume/mute handling
54 ; element-output = ...
55 ; priority = ...
56 ; direction = any | input | output          # Only useful for?
57 ;
58 ; [Profile id]
59 ; input-mappings = ...                      # Lists mappings for sources on this profile, those mapping must be
60 ;                                           # defined in this file too
61 ; output-mappings = ...                     # Lists mappings for sinks on this profile, those mappings must be
62 ;                                           # defined in this file too
63 ; description = ...
64 ; priority = ...                            # Numeric value to deduce priority for this profile
65 ; skip-probe = no | yes                     # Skip probing for availability? If this is yes then this profile
66 ;                                           # will be assumed as working without probing. Makes initialization
67 ;                                           # a bit faster but only works if the card is really known well.
68 ;
69 ; [DecibelFix element]                      # Decibel fixes can be used to work around missing or incorrect dB
70 ;                                           # information from alsa. A decibel fix is a table that maps volume steps
71 ;                                           # to decibel values for one volume element. The "element" part in the
72 ;                                           # section title is the name of the volume element.
73 ;                                           #
74 ;                                           # NOTE: This feature is meant just as a help for figuring out the correct
75 ;                                           # decibel values. PulseAudio is not the correct place to maintain the
76 ;                                           # decibel mappings!
77 ;                                           #
78 ;                                           # If you need this feature, then you should make sure that when you have
79 ;                                           # the correct values figured out, the alsa driver developers get informed
80 ;                                           # too, so that they can fix the driver.
81 ;
82 ; db-values = ...                           # The option value consists of pairs of step numbers and decibel values.
83 ;                                           # The pairs are separated with whitespace, and steps are separated from
84 ;                                           # the corresponding decibel values with a colon. The values must be in an
85 ;                                           # increasing order. Here's an example of a valid string:
86 ;                                           #
87 ;                                           #     "0:-40.50  1:-38.70  3:-33.00  11:0"
88 ;                                           #
89 ;                                           # The lowest step imposes a lower limit for hardware volume and the
90 ;                                           # highest step correspondingly imposes a higher limit. That means that
91 ;                                           # that the mixer will never be set outside those values - the rest of the
92 ;                                           # volume scale is done using software volume.
93 ;                                           #
94 ;                                           # As can be seen in the example, you don't need to specify a dB value for
95 ;                                           # each step. The dB values for skipped steps will be linearly interpolated
96 ;                                           # using the nearest steps that are given.
97
98 [General]
99 auto-profiles = yes
100
101 [Mapping usb-analog-stereo]
102 device-strings = hw:%f
103 channel-map = left,right
104 paths-output = analog-output analog-output-speaker analog-output-desktop-speaker analog-output-headphones analog-output-headphones-2 analog-output-mono analog-output-lfe-on-mono
105 priority = 10
106 direction = output
107
108 [Mapping usb-analog-surround-51]
109 device-strings = hw:%f
110 ;channel-map = front-left,front-right,front-center,lfe,rear-left,rear-right
111 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
112 paths-output = analog-output analog-output-speaker analog-output-desktop-speaker analog-output-lfe-on-mono
113 priority = 180
114 direction = output
115
116 ; An example for defining multiple-sink profiles
117 #[Profile output:analog-stereo+output:iec958-stereo+input:analog-stereo]
118 #description = Foobar
119 #output-mappings = analog-stereo iec958-stereo
120 #input-mappings = analog-stereo