diff options
author | andi34 <skate4life@gmx.de> | 2015-08-12 12:03:46 +0200 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2015-08-12 21:27:35 +0200 |
commit | 429cd7489af8e418c4da2c6dd0b0cf6b134cafaf (patch) | |
tree | d62eb7a9665b02da4c3da204a91d65137f32dae3 /configs | |
parent | f5985ce5c3b7a884e6b5e16d9442e634abbbd2fb (diff) | |
download | device_samsung_espressowifi-429cd7489af8e418c4da2c6dd0b0cf6b134cafaf.zip device_samsung_espressowifi-429cd7489af8e418c4da2c6dd0b0cf6b134cafaf.tar.gz device_samsung_espressowifi-429cd7489af8e418c4da2c6dd0b0cf6b134cafaf.tar.bz2 |
espresso-common: cleanup and make the device tree-common
Change-Id: I631495d13cbd28d54a30358dbfdea6a24db6c1ea
Diffstat (limited to 'configs')
-rw-r--r-- | configs/audio_policy.conf | 93 | ||||
-rw-r--r-- | configs/tiny_hw.xml | 281 |
2 files changed, 0 insertions, 374 deletions
diff --git a/configs/audio_policy.conf b/configs/audio_policy.conf deleted file mode 100644 index c3e986b..0000000 --- a/configs/audio_policy.conf +++ /dev/null @@ -1,93 +0,0 @@ -# Global configuration section: lists input and output devices always present on the device -# as well as the output device selected by default. -# Devices are designated by a string that corresponds to the enum in audio.h - -global_configuration { - attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER - default_output_device AUDIO_DEVICE_OUT_SPEAKER - attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX -} - -# audio hardware module section: contains descriptors for all audio hw modules present on the -# device. Each hw module node is named after the corresponding hw module library base name. -# For instance, "primary" corresponds to audio.primary.<device>.so. -# The "primary" module is mandatory and must include at least one output with -# AUDIO_OUTPUT_FLAG_PRIMARY flag. -# Each module descriptor contains one or more output profile descriptors and zero or more -# input profile descriptors. Each profile lists all the parameters supported by a given output -# or input stream category. -# The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding -# to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n". - -audio_hw_modules { - primary { - outputs { - primary { - sampling_rates 44100 - channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET - flags AUDIO_OUTPUT_FLAG_PRIMARY - } - deep_buffer { - sampling_rates 44100 - channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE - flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER - } - } - inputs { - primary { - sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000 - channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET - } - } - } - a2dp { - outputs { - a2dp { - sampling_rates 44100 - channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_ALL_A2DP - } - } - } - usb { - outputs { - usb_accessory { - sampling_rates 44100 - channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_USB_ACCESSORY - } - usb_device { - sampling_rates 44100 - channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_USB_DEVICE - } - } - } - r_submix { - outputs { - submix { - sampling_rates 48000 - channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX - } - } - inputs { - submix { - sampling_rates 48000 - channel_masks AUDIO_CHANNEL_IN_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_IN_REMOTE_SUBMIX - } - } - } -} diff --git a/configs/tiny_hw.xml b/configs/tiny_hw.xml deleted file mode 100644 index c61edb6..0000000 --- a/configs/tiny_hw.xml +++ /dev/null @@ -1,281 +0,0 @@ -<!-- TinyHAL configuration file for Samsung Galaxy Tab 2 --> -<tinyhal> -<!-- -We are able to have most of our routing static so do that ---> -<path> - <!-- general --> - <ctl name="IN1L ZC Switch" val="0"/> - <ctl name="IN1R ZC Switch" val="0"/> - <ctl name="IN2L ZC Switch" val="0"/> - <ctl name="IN2R ZC Switch" val="0"/> - <ctl name="Output ZC Switch" val="0"/> - <ctl name="Speaker ZC Switch" val="0"/> - <ctl name="Headphone ZC Switch" val="0"/> - - <!-- AIF1->DAC1 --> - <ctl name="DAC1L Mixer AIF1.1 Switch" val="1"/> - <ctl name="DAC1R Mixer AIF1.1 Switch" val="1"/> - <ctl name="DAC1 Switch" val="1"/> - - <!-- ADC->AIF2 --> - <ctl name="AIF2DAC2L Mixer Left Sidetone Switch" val="1"/> - <ctl name="AIF2DAC2L Mixer Right Sidetone Switch" val="0"/> - <ctl name="AIF2DAC2R Mixer Left Sidetone Switch" val="0"/> - <ctl name="AIF2DAC2R Mixer Right Sidetone Switch" val="1"/> - <ctl name="DAC2 Left Sidetone Volume" val="12"/> - <ctl name="DAC2 Right Sidetone Volume" val="12"/> - <ctl name="DAC2 Switch" val="1"/> - - <!-- DAC1->HP --> - <ctl name="Left Headphone Mux" val="DAC"/> - <ctl name="Right Headphone Mux" val="DAC"/> - - <!-- DAC1->SPKL/R->SPKL/R Boost->SPK --> - <ctl name="SPKL DAC1 Switch" val="1"/> - <ctl name="SPKR DAC1 Switch" val="1"/> - <ctl name="SPKL Boost SPKL Switch" val="1"/> - <ctl name="SPKL Boost SPKR Switch" val="0"/> - <ctl name="SPKR Boost SPKL Switch" val="0"/> - <ctl name="SPKR Boost SPKR Switch" val="1"/> - <ctl name="Speaker Mixer Volume" val="3"/> - - <!-- DAC->Output mixer->Earpiece --> - <ctl name="Left Output Mixer DAC Switch" val="1"/> - <ctl name="Right Output Mixer DAC Switch" val="1"/> - <ctl name="Earpiece Mixer Left Output Switch" val="1"/> - <ctl name="Earpiece Mixer Right Output Switch" val="1"/> - <ctl name="Earpiece Switch" val="1"/> - <ctl name="LINEOUT1N Mixer Right Output Switch" val="1"/> - <ctl name="LINEOUT1P Mixer Left Output Switch" val="1"/> - - <!-- Main Mic->IN1LP/N->Input Mixer with +30dB at mixer --> - <ctl name="IN1L PGA IN1LP Switch" val="1"/> - <ctl name="IN1L PGA IN1LN Switch" val="1"/> - <ctl name="MIXINL IN1L Volume" val="1"/> - <ctl name="IN1L Switch" val="1"/> - - <!-- Sub Mic->IN2RP/N->Input Mixer with +30dB at mixer --> - <ctl name="IN2R PGA IN2RP Switch" val="1"/> - <ctl name="IN2R PGA IN2RN Switch" val="1"/> - <ctl name="MIXINR IN2R Volume" val="1"/> - <ctl name="IN2R Switch" val="1"/> - - <!-- Ear Mic->IN1RP/N->Input Mixer with +30dB at mixer --> - <ctl name="IN1R PGA IN1RP Switch" val="1"/> - <ctl name="IN1R PGA IN1RN Switch" val="1"/> - <ctl name="MIXINR IN1R Volume" val="1"/> - <ctl name="IN1R Switch" val="1"/> - - <!-- Input mixer->ADC->AIF1 --> - <ctl name="AIF1ADC1L Mixer ADC/DMIC Switch" val="1"/> - <ctl name="AIF1ADC1R Mixer ADC/DMIC Switch" val="1"/> - <ctl name="ADCL Mux" val="ADC"/> - - <!-- Work around core issue --> - <ctl name="ADCL Mux" val="DMIC"/> - <ctl name="ADCL Mux" val="ADC"/> - <ctl name="ADCR Mux" val="DMIC"/> - <ctl name="ADCR Mux" val="ADC"/> - - <!-- Default all outputs off --> - <ctl name="HP Switch" val="0"/> - <ctl name="SPK Switch" val="0"/> - <ctl name="RCV Switch" val="0"/> - <ctl name="LINEOUT Switch" val="0"/> - - <!-- Default all inputs off --> - <ctl name="Main Mic Switch" val="0"/> - <ctl name="Headset Mic Switch" val="0"/> -</path> -<device name="earpiece"> - <path name="on"> - <ctl name="RCV Switch" val="1"/> - <ctl name="AIF1DAC1 Volume" val="96"/> - <ctl name="AIF1 Boost Volume" val="0"/> - <ctl name="DAC1 Volume" val="96"/> - <ctl name="Left Output Mixer DAC Volume" val="7"/> - <ctl name="Right Output Mixer DAC Volume" val="7"/> - <ctl name="Output Volume" val="61"/> - <ctl name="Earpiece Volume" val="1"/> - </path> - <path name="off"> - <ctl name="RCV Switch" val="0"/> - <ctl name="AIF1DAC1 Volume" val="96"/> - <ctl name="AIF1 Boost Volume" val="0"/> - <ctl name="DAC1 Volume" val="96"/> - <ctl name="Left Output Mixer DAC Volume" val="7"/> - <ctl name="Right Output Mixer DAC Volume" val="7"/> - <ctl name="Output Volume" val="61"/> - <ctl name="Earpiece Volume" val="1"/> - </path> -</device> -<device name="speaker"> - <path name="on"> - <ctl name="SPK Switch" val="1"/> - <ctl name="AIF1DAC1 Volume" val="96"/> - <ctl name="AIF1 Boost Volume" val="0"/> - <ctl name="DAC1 Volume" val="96"/> - <ctl name="SPKL DAC1 Volume" val="1"/> - <ctl name="SPKR DAC1 Volume" val="1"/> - <ctl name="Speaker Mixer Volume" val="3"/> - <ctl name="Speaker Boost Volume" val="6"/> - <ctl name="Speaker Volume" val="61"/> - </path> - <path name="off"> - <ctl name="SPK Switch" val="0"/> - <ctl name="AIF1DAC1 Volume" val="96"/> - <ctl name="AIF1 Boost Volume" val="0"/> - <ctl name="DAC1 Volume" val="96"/> - <ctl name="SPKL DAC1 Volume" val="1"/> - <ctl name="SPKR DAC1 Volume" val="1"/> - <ctl name="Speaker Mixer Volume" val="0"/> - <ctl name="Speaker Volume" val="61"/> - <ctl name="Speaker Boost Volume" val="0"/> - </path> -</device> -<device name="headphone"> - <path name="on"> - <ctl name="HP Switch" val="1"/> - <ctl name="Headphone ZC Switch" val="0"/> - <ctl name="AIF1DAC1 Volume" val="96"/> - <ctl name="AIF1 Boost Volume" val="0"/> - <ctl name="DAC1 Volume" val="96"/> - <ctl name="Headphone Volume" val="61"/> - </path> - <path name="off"> - <ctl name="HP Switch" val="0"/> - <ctl name="Headphone ZC Switch" val="0"/> - <ctl name="AIF1DAC1 Volume" val="96"/> - <ctl name="AIF1 Boost Volume" val="0"/> - <ctl name="DAC1 Volume" val="96"/> - <ctl name="Headphone Volume" val="61"/> - </path> -</device> -<device name="sco-out"> - <path name="on"> - <ctl name="AIF3ADC Mux" val="1"/> - <ctl name="AIF2DAC2L Mixer AIF1.1 Switch" val="1"/> - <ctl name="AIF2DAC2R Mixer AIF1.1 Switch" val="1"/> - <ctl name="AIF2ADCL Source" val="Left"/> - <ctl name="AIF2ADCR Source" val="Left"/> - </path> - <path name="off"> - <ctl name="AIF3ADC Mux" val="0"/> - <ctl name="AIF2DAC2L Mixer AIF1.1 Switch" val="0"/> - <ctl name="AIF2DAC2R Mixer AIF1.1 Switch" val="0"/> - <ctl name="AIF2ADCL Source" val="Left"/> - <ctl name="AIF2ADCR Source" val="Right"/> - </path> -</device> -<device name="dock"> - <path name="on"> - <ctl name="LINEOUT1N Switch" val="1"/> - <ctl name="LINEOUT1P Switch" val="1"/> - <ctl name="LINEOUT Switch" val="1"/> - <ctl name="AIF1DAC1 Volume" val="96"/> - <ctl name="AIF1 Boost Volume" val="0"/> - <ctl name="DAC1 Volume" val="96"/> - <ctl name="Left Output Mixer DAC Volume" val="7"/> - <ctl name="Right Output Mixer DAC Volume" val="7"/> - <ctl name="Output Volume" val="63"/> - <ctl name="LINEOUT1 Volume" val="1"/> - </path> - <path name="off"> - <ctl name="LINEOUT1N Switch" val="0"/> - <ctl name="LINEOUT1P Switch" val="0"/> - <ctl name="LINEOUT Switch" val="0"/> - <ctl name="AIF1DAC1 Volume" val="96 "/> - <ctl name="AIF1 Boost Volume" val="0"/> - <ctl name="DAC1 Volume" val="96 "/> - <ctl name="Left Output Mixer DAC Volume" val="7"/> - <ctl name="Right Output Mixer DAC Volume" val="7"/> - <ctl name="Output Volume" val="63 "/> - <ctl name="LINEOUT1 Volume" val="1"/> - </path> -</device> -<device name="builtin-mic"> - <path name="on"> - <ctl name="Main Mic Switch" val="1"/> - <ctl name="AIF1ADCL Source" val="Left"/> - <ctl name="AIF2ADCL Source" val="Left"/> - <ctl name="AIF2ADCR Source" val="Right"/> - <ctl name="MIXINL IN1L Switch" val="1"/> - <ctl name="AIF1ADC1 HPF Mode" val="1"/> - <ctl name="AIF1ADC1 HPF Switch" val="1"/> - <ctl name="AIF2 Mode" val="Master"/> - <ctl name="AIF2DAC Mux" val="AIF3DACDAT"/> - <ctl name="AIF2DAC2L Mixer Left Sidetone Switch" val="1"/> - <ctl name="AIF2DAC2L Mixer Right Sidetone Switch" val="0"/> - <ctl name="AIF2DAC2R Mixer Left Sidetone Switch" val="1"/> - <ctl name="AIF2DAC2R Mixer Right Sidetone Switch" val="0"/> - </path> - <path name="off"> - <ctl name="Main Mic Switch" val="0"/> - <ctl name="MIXINL IN1L Switch" val="0"/> - <ctl name="AIF1ADC1 HPF Mode" val="0"/> - <ctl name="AIF1ADC1 HPF Switch" val="0"/> - <ctl name="AIF2 Mode" val="Slave"/> - <ctl name="AIF2DAC Mux" val="AIF2DACDAT"/> - </path> -</device> -<device name="back-mic"> - <path name="on"> - <ctl name="Sub Mic Switch" val="1"/> - <ctl name="AIF1ADCR Source" val="Right"/> - <ctl name="AIF2ADCL Source" val="Left"/> - <ctl name="AIF2ADCR Source" val="Right"/> - <ctl name="MIXINR IN2R Switch" val="1"/> - <ctl name="AIF1ADC1 HPF Mode" val="1"/> - <ctl name="AIF1ADC1 HPF Switch" val="1"/> - <ctl name="AIF2DAC2L Mixer Left Sidetone Switch" val="0"/> - <ctl name="AIF2DAC2L Mixer Right Sidetone Switch" val="1"/> - <ctl name="AIF2DAC2R Mixer Left Sidetone Switch" val="0"/> - <ctl name="AIF2DAC2R Mixer Right Sidetone Switch" val="1"/> - </path> - <path name="off"> - <ctl name="Sub Mic Switch" val="0"/> - <ctl name="MIXINR IN2R Switch" val="0"/> - <ctl name="AIF1ADC1 HPF Mode" val="0"/> - <ctl name="AIF1ADC1 HPF Switch" val="0"/> - </path> -</device> -<device name="headset-in"> - <path name="on"> - <ctl name="Headset Mic Switch" val="1"/> - <ctl name="AIF1ADCL Source" val="Right"/> - <ctl name="AIF1ADCR Source" val="Right"/> - <ctl name="AIF2ADCL Source" val="Left"/> - <ctl name="AIF2ADCR Source" val="Right"/> - <ctl name="MIXINR IN1R Switch" val="1"/> - <ctl name="AIF2DAC2L Mixer Left Sidetone Switch" val="0"/> - <ctl name="AIF2DAC2L Mixer Right Sidetone Switch" val="1"/> - <ctl name="AIF2DAC2R Mixer Left Sidetone Switch" val="0"/> - <ctl name="AIF2DAC2R Mixer Right Sidetone Switch" val="1"/> - </path> - <path name="off"> - <ctl name="Headset Mic Switch" val="0"/> - <ctl name="MIXINR IN1R Switch" val="0"/> - </path> -</device> -<device name="sco-in"> - <path name="on"> - <ctl name="AIF2ADC Mux" val="1"/> - <ctl name="AIF1ADCL Source" val="Left"/> - <ctl name="AIF1ADCR Source" val="Left"/> - <ctl name="AIF2ADCL Source" val="Left"/> - <ctl name="AIF2ADCR Source" val="Left"/> - <ctl name="AIF1ADC1R Mixer AIF2 Switch" val="1"/> - <ctl name="AIF1ADC1L Mixer AIF2 Switch" val="1"/> - <ctl name="AIF2DAC2L Mixer Left Sidetone Switch" val="1"/> - <ctl name="AIF2DAC2L Mixer Right Sidetone Switch" val="0"/> - <ctl name="AIF2DAC2R Mixer Left Sidetone Switch" val="0"/> - <ctl name="AIF2DAC2R Mixer Right Sidetone Switch" val="1"/> - </path> - <path name="off"> - <ctl name="AIF2ADC Mux" val="0"/> - <ctl name="AIF1ADC1R Mixer AIF2 Switch" val="0"/> - <ctl name="AIF1ADC1L Mixer AIF2 Switch" val="0"/> - </path> -</device> -</tinyhal> |