Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/next/external/packages/blobs/sunxi/h616/pulseaudio/default.conf
Views: 3963
# This file is part of PulseAudio.1#2# PulseAudio is free software; you can redistribute it and/or modify3# it under the terms of the GNU Lesser General Public License as4# published by the Free Software Foundation; either version 2.1 of the5# License, or (at your option) any later version.6#7# PulseAudio is distributed in the hope that it will be useful, but8# WITHOUT ANY WARRANTY; without even the implied warranty of9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU10# General Public License for more details.11#12# You should have received a copy of the GNU Lesser General Public License13# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.1415; Default profile definitions for the ALSA backend of PulseAudio. This16; is used as fallback for all cards that have no special mapping17; assigned (and should be good enough for the vast majority of18; cards). If you want to assign a different profile set than this one19; to a device, either set the udev property PULSE_PROFILE_SET for the20; card, or use the "profile_set" module argument when loading21; module-alsa-card.22;23; So what is this about? Simply, what we do here is map ALSA devices24; to how they are exposed in PA. We say which ALSA device string to25; use to open a device, which channel mapping to use then, and which26; mixer path to use. This is encoded in a 'mapping'. Multiple of these27; mappings can be bound together in a 'profile' which is then directly28; exposed in the UI as a card profile. Each mapping assigned to a29; profile will result in one sink/source to be created if the profile30; is selected for the card.31;32; Additionally, the path set configuration files can describe the33; decibel values assigned to the steps of the volume elements. This34; can be used to work around situations when the alsa driver doesn't35; provide any decibel information, or when the information is36; incorrect.373839; [General]40; auto-profiles = no | yes # Instead of defining all profiles manually, autogenerate41; # them by combining every input mapping with every output mapping.42;43; [Mapping id]44; device-strings = ... # ALSA device string. %f will be replaced by the card identifier.45; channel-map = ... # Channel mapping to use for this device46; description = ...47; paths-input = ... # A list of mixer paths to use. Every path in this list will be probed.48; # If multiple are found to be working they will be available as device ports49; paths-output = ...50; element-input = ... # Instead of configuring a full mixer path simply configure a single51; # mixer element for volume/mute handling52; element-output = ...53; priority = ...54; direction = any | input | output # Only useful for?55;56; exact-channels = yes | no # If no, and the exact number of channels is not supported,57; # allow device to be opened with another channel count58; fallback = no | yes # This mapping will only be considered if all non-fallback mappings fail59; [Profile id]60; input-mappings = ... # Lists mappings for sources on this profile, those mapping must be61; # defined in this file too62; output-mappings = ... # Lists mappings for sinks on this profile, those mappings must be63; # defined in this file too64; description = ...65; priority = ... # Numeric value to deduce priority for this profile66; skip-probe = no | yes # Skip probing for availability? If this is yes then this profile67; # will be assumed as working without probing. Makes initialization68; # a bit faster but only works if the card is really known well.69;70; fallback = no | yes # This profile will only be considered if all non-fallback profiles fail71; [DecibelFix element] # Decibel fixes can be used to work around missing or incorrect dB72; # information from alsa. A decibel fix is a table that maps volume steps73; # to decibel values for one volume element. The "element" part in the74; # section title is the name of the volume element.75; #76; # NOTE: This feature is meant just as a help for figuring out the correct77; # decibel values. PulseAudio is not the correct place to maintain the78; # decibel mappings!79; #80; # If you need this feature, then you should make sure that when you have81; # the correct values figured out, the alsa driver developers get informed82; # too, so that they can fix the driver.83;84; db-values = ... # The option value consists of pairs of step numbers and decibel values.85; # The pairs are separated with whitespace, and steps are separated from86; # the corresponding decibel values with a colon. The values must be in an87; # increasing order. Here's an example of a valid string:88; #89; # "0:-40.50 1:-38.70 3:-33.00 11:0"90; #91; # The lowest step imposes a lower limit for hardware volume and the92; # highest step correspondingly imposes a higher limit. That means that93; # that the mixer will never be set outside those values - the rest of the94; # volume scale is done using software volume.95; #96; # As can be seen in the example, you don't need to specify a dB value for97; # each step. The dB values for skipped steps will be linearly interpolated98; # using the nearest steps that are given.99100[General]101auto-profiles = no102103[Mapping analog-mono]104device-strings = hw:%f105channel-map = mono106paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2 analog-output-mono107paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headset-mic108priority = 2109110[Mapping analog-stereo]111device-strings = front:%f112channel-map = left,right113paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2114paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headphone-mic analog-input-headset-mic115priority = 10116117# If everything else fails, try to use hw:0 as a stereo device.118[Mapping stereo-fallback]119device-strings = hw:%f120fallback = yes121channel-map = front-left,front-right122paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2123paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headphone-mic analog-input-headset-mic124priority = 1125126[Mapping analog-surround-21]127device-strings = surround21:%f128channel-map = front-left,front-right,lfe129paths-output = analog-output analog-output-lineout analog-output-speaker130priority = 8131direction = output132133[Mapping analog-surround-40]134device-strings = surround40:%f135channel-map = front-left,front-right,rear-left,rear-right136paths-output = analog-output analog-output-lineout analog-output-speaker137priority = 7138direction = output139140[Mapping analog-surround-41]141device-strings = surround41:%f142channel-map = front-left,front-right,rear-left,rear-right,lfe143paths-output = analog-output analog-output-lineout analog-output-speaker144priority = 8145direction = output146147[Mapping analog-surround-50]148device-strings = surround50:%f149channel-map = front-left,front-right,rear-left,rear-right,front-center150paths-output = analog-output analog-output-lineout analog-output-speaker151priority = 7152direction = output153154[Mapping analog-surround-51]155device-strings = surround51:%f156channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe157paths-output = analog-output analog-output-lineout analog-output-speaker158priority = 8159direction = output160161[Mapping analog-surround-71]162device-strings = surround71:%f163channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right164description = Analog Surround 7.1165paths-output = analog-output analog-output-lineout analog-output-speaker166priority = 7167direction = output168169[Mapping iec958-stereo]170device-strings = iec958:%f171channel-map = left,right172paths-input = iec958-stereo-input173paths-output = iec958-stereo-output174priority = 5175176[Mapping iec958-ac3-surround-40]177device-strings = a52:%f178channel-map = front-left,front-right,rear-left,rear-right179paths-output = iec958-stereo-output180priority = 2181direction = output182183[Mapping iec958-ac3-surround-51]184device-strings = a52:%f185channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe186paths-output = iec958-stereo-output187priority = 3188direction = output189190[Mapping iec958-dts-surround-51]191device-strings = dca:%f192channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe193paths-output = iec958-stereo-output194priority = 3195direction = output196197[Mapping hdmi-stereo]198description = Digital Stereo (HDMI)199device-strings = hdmi:%f200paths-output = hdmi-output-0201channel-map = left,right202priority = 4203direction = output204205[Mapping hdmi-surround]206description = Digital Surround 5.1 (HDMI)207device-strings = hdmi:%f208paths-output = hdmi-output-0209channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe210priority = 3211direction = output212213[Mapping hdmi-surround71]214description = Digital Surround 7.1 (HDMI)215device-strings = hdmi:%f216paths-output = hdmi-output-0217channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right218priority = 3219direction = output220221[Mapping hdmi-dts-surround]222description = Digital Surround 5.1 (HDMI/DTS)223device-strings = dcahdmi:%f224paths-output = hdmi-output-0225channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe226priority = 1227direction = output228229[Mapping hdmi-stereo-extra1]230description = Digital Stereo (HDMI 2)231device-strings = hdmi:%f,1232paths-output = hdmi-output-1233channel-map = left,right234priority = 2235direction = output236237[Mapping hdmi-surround-extra1]238description = Digital Surround 5.1 (HDMI 2)239device-strings = hdmi:%f,1240paths-output = hdmi-output-1241channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe242priority = 1243direction = output244245[Mapping hdmi-surround71-extra1]246description = Digital Surround 7.1 (HDMI 2)247device-strings = hdmi:%f,1248paths-output = hdmi-output-1249channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right250priority = 1251direction = output252253[Mapping hdmi-dts-surround-extra1]254description = Digital Surround 5.1 (HDMI 2/DTS)255device-strings = dcahdmi:%f,1256paths-output = hdmi-output-1257channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe258priority = 1259direction = output260261[Mapping hdmi-stereo-extra2]262description = Digital Stereo (HDMI 3)263device-strings = hdmi:%f,2264paths-output = hdmi-output-2265channel-map = left,right266priority = 2267direction = output268269[Mapping hdmi-surround-extra2]270description = Digital Surround 5.1 (HDMI 3)271device-strings = hdmi:%f,2272paths-output = hdmi-output-2273channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe274priority = 1275direction = output276277[Mapping hdmi-surround71-extra2]278description = Digital Surround 7.1 (HDMI 3)279device-strings = hdmi:%f,2280paths-output = hdmi-output-2281channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right282priority = 1283direction = output284285[Mapping hdmi-dts-surround-extra2]286description = Digital Surround 5.1 (HDMI 3/DTS)287device-strings = dcahdmi:%f,2288paths-output = hdmi-output-2289channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe290priority = 1291direction = output292293[Mapping hdmi-stereo-extra3]294description = Digital Stereo (HDMI 4)295device-strings = hdmi:%f,3296paths-output = hdmi-output-3297channel-map = left,right298priority = 2299direction = output300301[Mapping hdmi-surround-extra3]302description = Digital Surround 5.1 (HDMI 4)303device-strings = hdmi:%f,3304paths-output = hdmi-output-3305channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe306priority = 1307direction = output308309[Mapping hdmi-surround71-extra3]310description = Digital Surround 7.1 (HDMI 4)311device-strings = hdmi:%f,3312paths-output = hdmi-output-3313channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right314priority = 1315direction = output316317[Mapping hdmi-dts-surround-extra3]318description = Digital Surround 5.1 (HDMI 4/DTS)319device-strings = dcahdmi:%f,3320paths-output = hdmi-output-3321channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe322priority = 1323direction = output324325[Mapping hdmi-stereo-extra4]326description = Digital Stereo (HDMI 5)327device-strings = hdmi:%f,4328paths-output = hdmi-output-4329channel-map = left,right330priority = 2331direction = output332333[Mapping hdmi-surround-extra4]334description = Digital Surround 5.1 (HDMI 5)335device-strings = hdmi:%f,4336paths-output = hdmi-output-4337channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe338priority = 1339direction = output340341[Mapping hdmi-surround71-extra4]342description = Digital Surround 7.1 (HDMI 5)343device-strings = hdmi:%f,4344paths-output = hdmi-output-4345channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right346priority = 1347direction = output348349[Mapping hdmi-dts-surround-extra4]350description = Digital Surround 5.1 (HDMI 5/DTS)351device-strings = dcahdmi:%f,4352paths-output = hdmi-output-4353channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe354priority = 1355direction = output356357[Mapping hdmi-stereo-extra5]358description = Digital Stereo (HDMI 6)359device-strings = hdmi:%f,5360paths-output = hdmi-output-5361channel-map = left,right362priority = 2363direction = output364365[Mapping hdmi-surround-extra5]366description = Digital Surround 5.1 (HDMI 6)367device-strings = hdmi:%f,5368paths-output = hdmi-output-5369channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe370priority = 1371direction = output372373[Mapping hdmi-surround71-extra5]374description = Digital Surround 7.1 (HDMI 6)375device-strings = hdmi:%f,5376paths-output = hdmi-output-5377channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right378priority = 1379direction = output380381[Mapping hdmi-dts-surround-extra5]382description = Digital Surround 5.1 (HDMI 6/DTS)383device-strings = dcahdmi:%f,5384paths-output = hdmi-output-5385channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe386priority = 1387direction = output388389[Mapping hdmi-stereo-extra6]390description = Digital Stereo (HDMI 7)391device-strings = hdmi:%f,6392paths-output = hdmi-output-6393channel-map = left,right394priority = 2395direction = output396397[Mapping hdmi-surround-extra6]398description = Digital Surround 5.1 (HDMI 7)399device-strings = hdmi:%f,6400paths-output = hdmi-output-6401channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe402priority = 1403direction = output404405[Mapping hdmi-surround71-extra6]406description = Digital Surround 7.1 (HDMI 7)407device-strings = hdmi:%f,6408paths-output = hdmi-output-6409channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right410priority = 1411direction = output412413[Mapping hdmi-dts-surround-extra6]414description = Digital Surround 5.1 (HDMI 7/DTS)415device-strings = dcahdmi:%f,6416paths-output = hdmi-output-6417channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe418priority = 1419direction = output420421[Mapping hdmi-stereo-extra7]422description = Digital Stereo (HDMI 8)423device-strings = hdmi:%f,7424paths-output = hdmi-output-7425channel-map = left,right426priority = 2427direction = output428429[Mapping hdmi-surround-extra7]430description = Digital Surround 5.1 (HDMI 8)431device-strings = hdmi:%f,7432paths-output = hdmi-output-7433channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe434priority = 1435direction = output436437[Mapping hdmi-surround71-extra7]438description = Digital Surround 7.1 (HDMI 8)439device-strings = hdmi:%f,7440paths-output = hdmi-output-7441channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right442priority = 1443direction = output444445[Mapping hdmi-dts-surround-extra7]446description = Digital Surround 5.1 (HDMI 8/DTS)447device-strings = dcahdmi:%f,7448paths-output = hdmi-output-7449channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe450priority = 1451direction = output452453[Mapping multichannel-output]454device-strings = hw:%f455channel-map = left,right,rear-left,rear-right456exact-channels = false457fallback = yes458priority = 1459direction = output460paths-output = multichannel-output461462[Mapping multichannel-input]463device-strings = hw:%f464channel-map = left,right,rear-left,rear-right465exact-channels = false466fallback = yes467priority = 1468direction = input469paths-input = multichannel-input470471; An example for defining multiple-sink profiles472#[Profile output:analog-stereo+output:iec958-stereo+input:analog-stereo]473#description = Foobar474#output-mappings = analog-stereo iec958-stereo475#input-mappings = analog-stereo476477478