Home | History | Annotate | Download | only in flounder
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (c) 2012 NVIDIA Corporation.  All Rights Reserved.
      3 
      4      NVIDIA Corporation and its licensors retain all intellectual property and
      5      proprietary rights in and to this software and related documentation.  Any
      6      use, reproduction, disclosure or distribution of this software and related
      7      documentation without an express license agreement from NVIDIA Corporation
      8      is strictly prohibited.
      9  */
     10 -->
     11 <!DOCTYPE AudioConfigs [
     12   <!ELEMENT AudioConfigs (alsa_device)>
     13   <!ELEMENT alsa_device (pcm_config, playback, capture, voice-call)>
     14   <!ELEMENT playback (pcm_config, device, path)>
     15   <!ELEMENT capture (pcm_config, device, path)>
     16   <!ELEMENT voice-call (pcm_config, device, path)>
     17   <!ELEMENT device (path)>
     18   <!ELEMENT path (ctl)>
     19   <!ELEMENT alsa_device EMPTY>
     20   <!ATTLIST alsa_device name (music|voice|aux|voice-call|bt-voice-call) #REQUIRED>
     21   <!ATTLIST alsa_device card_id CDATA #REQUIRED>
     22   <!ATTLIST alsa_device card_name CDATA #REQUIRED>
     23   <!ATTLIST alsa_device device_id CDATA #REQUIRED>
     24   <!ELEMENT alsa_device EMPTY>
     25   <!ELEMENT pcm_config EMPTY>
     26   <!ATTLIST pcm_config rate (8000|11025|16000|22050|32000|44100|48000|64000|88200|96000|176400|192000) #IMPLIED>
     27   <!ATTLIST pcm_config channels (1|2|3|4|5|6|7|8) #IMPLIED>
     28   <!ATTLIST pcm_config bps (16|32) #IMPLIED>
     29   <!ATTLIST pcm_config period_size CDATA #IMPLIED>
     30   <!ATTLIST pcm_config period_count CDATA #IMPLIED>
     31   <!ATTLIST pcm_config start_threshold CDATA #IMPLIED>
     32   <!ATTLIST pcm_config stop_threshold CDATA #IMPLIED>
     33   <!ATTLIST pcm_config silence_threshold CDATA #IMPLIED>
     34   <!ATTLIST pcm_config avail_min CDATA #IMPLIED>
     35   <!ELEMENT pcm_config EMPTY>
     36   <!ELEMENT device EMPTY>
     37   <!ATTLIST device name (speaker|headphone|earpiece|bt-sco|aux|builtin-mic|headset-mic|bt-sco-mic|voice-call|bt-voice-call) #REQUIRED>
     38   <!ELEMENT device EMPTY>
     39   <!ELEMENT path EMPTY>
     40   <!ATTLIST path name CDATA #IMPLIED>
     41   <!ELEMENT path EMPTY>
     42   <!ELEMENT param EMPTY>
     43   <!ATTLIST param name CDATA #REQUIRED>
     44   <!ATTLIST param val CDATA #REQUIRED>
     45   <!ELEMENT param EMPTY>
     46   <!ELEMENT ctl EMPTY>
     47   <!ATTLIST ctl name CDATA #REQUIRED>
     48   <!ATTLIST ctl val CDATA #REQUIRED>
     49   <!ELEMENT ctl EMPTY>
     50 ]>
     51 <!--
     52      This file is used to declare various board specific audio configs
     53 -->
     54 
     55 <AudioConfigs>
     56   <alsa_device name="music"
     57                card_id="-1"
     58                card_name="tegrart5677"
     59                device_id="0">
     60     <pcm_config rate="48000"
     61             channels="2"
     62             bps="16"
     63             period_size="1024"
     64             period_count="4"
     65             start_threshold="4095"
     66             stop_threshold="4096"
     67             silence_threshold="0"
     68             avail_min="1"/>
     69     <param name="ulp" val="0"/>
     70     <param name="ulp formats" val="mp3 aac"/>
     71     <param name="ulp rates" val="48000 44100"/>
     72     <param name="nvoice" val="0"/>
     73     <param name="HW Rates" val="48000 44100"/>
     74 
     75     <path>
     76       <!--playback paths-->
     77       <ctl name="Headphone Jack Switch" val="0"/>
     78       <ctl name="Int Mic Switch" val="0"/>
     79       <ctl name="Mic Jack Switch" val="0"/>
     80     </path>
     81 
     82     <playback>
     83       <device name="headphone">
     84         <path name="on">
     85           <ctl name="Headphone Jack Switch" val="1"/>
     86         </path>
     87         <path name="off">
     88           <ctl name="Headphone Jack Switch" val="0"/>
     89         </path>
     90       </device>
     91     </playback>
     92 
     93     <capture>
     94       <pcm_config start_threshold="1"/>
     95       <device name="builtin-mic">
     96         <path name="on">
     97           <ctl name="Mono ADC MIXL ADC2 Switch" val="1"/>
     98           <ctl name="TDM1 Mode" val="1"/>
     99           <ctl name="Int Mic Switch" val="1"/>
    100         </path>
    101         <path name="off">
    102           <ctl name="Mono ADC MIXL ADC2 Switch" val="0"/>
    103           <ctl name="Int Mic Switch" val="0"/>
    104         </path>
    105       </device>
    106       <device name="headset-mic">
    107         <path name="on">
    108           <ctl name="Mono ADC MIXR ADC1 Switch" val="1"/>
    109           <ctl name="TDM1 Mode" val="2"/>
    110           <ctl name="Mic Jack Switch" val="1"/>
    111         </path>
    112         <path name="off">
    113           <ctl name="Mono ADC MIXR ADC1 Switch" val="0"/>
    114           <ctl name="Mic Jack Switch" val="0"/>
    115         </path>
    116       </device>
    117     </capture>
    118   </alsa_device>
    119 
    120   <alsa_device name="music"
    121                card_id="-1"
    122                card_name="tegrart5677"
    123                device_id="1">
    124     <pcm_config rate="48000"
    125             channels="2"
    126             bps="16"
    127             period_size="1024"
    128             period_count="4"
    129             start_threshold="4095"
    130             stop_threshold="4096"
    131             silence_threshold="0"
    132             avail_min="1"/>
    133     <param name="ulp" val="0"/>
    134     <param name="ulp formats" val="mp3 aac"/>
    135     <param name="ulp rates" val="48000 44100"/>
    136     <param name="nvoice" val="0"/>
    137     <param name="HW Rates" val="48000 44100"/>
    138 
    139     <path>
    140       <!--playback paths-->
    141     </path>
    142 
    143     <playback>
    144       <device name="speaker">
    145         <path name="on">
    146         </path>
    147         <path name="off">
    148         </path>
    149       </device>
    150     </playback>
    151   </alsa_device>
    152 
    153   <alsa_device name="voice"
    154                card_id="-1"
    155                card_name="tegrart5677"
    156                device_id="2">
    157     <pcm_config rate="8000"
    158                 channels="1"
    159                 bps="16"
    160                 period_size="256"
    161                 period_count="4"
    162                 start_threshold="1023"
    163                 stop_threshold="1024"
    164                 silence_threshold="0"
    165                 avail_min="1"/>
    166     <playback>
    167       <device name="bt-sco"/>
    168     </playback>
    169 
    170     <capture>
    171       <pcm_config start_threshold="1"/>
    172       <device name="bt-sco-mic"/>
    173     </capture>
    174   </alsa_device>
    175 
    176   <alsa_device name ="aux"
    177              card_id="-1"
    178              card_name="Tegra"
    179              device_id="3">
    180     <pcm_config rate="48000"
    181             channels="2"
    182             bps="16"
    183             period_size="1024"
    184             period_count="4"
    185             start_threshold="4095"
    186             stop_threshold="4096"
    187             silence_threshold="0"
    188             avail_min="1"/>
    189     <param name="HW Rates" val="48000 44100"/>
    190     <playback>
    191       <device name="aux"/>
    192     </playback>
    193   </alsa_device>
    194 
    195 <alsa_device name="wfd">
    196     <pcm_config rate="48000"
    197                 channels="2"
    198                 bps="16"
    199                 period_size="1024"
    200                 period_count="4"/>
    201     <playback>
    202       <device name="wfd"/>
    203     </playback>
    204 </alsa_device>
    205 </AudioConfigs>
    206