P
Pr0_Sh0t
Fortgeschrittenes Mitglied
- 7
Hallo,
Ich habe schon viel im Internet geschaut und herausgefunden dass man die default_gain.conf Datei für ein verändern des zB Kopfhörer lautstarke abändern soll. Leider finde ich nur für Samsung den Pfad wo sie liegen soll ( system/etc ) ich allerdings finde diese nich .
Habe ein paar Dateien bei denen ich mir aber nicht sicher bin ob dies etwas bringt diese ab zu andern. Und was genau muss ich abändern um zB die Kopfhörer zu verstärken?
audio_policy.conf
nvaudio_conf.xml
Oder weiß jemand von euch welche datei ich abändern muss um die EU begränzumg der Lautstärke zu deaktivieren oder wo die gefragte default_gain.conf Datei bei LG liegt?
Gruß
Ich habe schon viel im Internet geschaut und herausgefunden dass man die default_gain.conf Datei für ein verändern des zB Kopfhörer lautstarke abändern soll. Leider finde ich nur für Samsung den Pfad wo sie liegen soll ( system/etc ) ich allerdings finde diese nich .
Habe ein paar Dateien bei denen ich mir aber nicht sicher bin ob dies etwas bringt diese ab zu andern. Und was genau muss ich abändern um zB die Kopfhörer zu verstärken?
audio_policy.conf
#
# Audio policy configuration for nvidia device builds
#
# 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_BACK_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 48000
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_AUX_DIGITAL|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_WIFI_DISPLAY
flags AUDIO_OUTPUT_FLAG_PRIMARY
}
aux_ac3_dts_pass_through {
sampling_rates 32000|44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_IEC61937
devices AUDIO_DEVICE_OUT_AUX_DIGITAL
flags AUDIO_OUTPUT_FLAG_DIRECT
}
}
inputs {
primary {
sampling_rates 8000|11025|12000|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|AUDIO_DEVICE_IN_BACK_MIC
}
}
}
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 {
sampling_rates 44100
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_ALL_USB|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET
}
}
}
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
}
}
}
}
# Audio policy configuration for nvidia device builds
#
# 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_BACK_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 48000
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_AUX_DIGITAL|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_WIFI_DISPLAY
flags AUDIO_OUTPUT_FLAG_PRIMARY
}
aux_ac3_dts_pass_through {
sampling_rates 32000|44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_IEC61937
devices AUDIO_DEVICE_OUT_AUX_DIGITAL
flags AUDIO_OUTPUT_FLAG_DIRECT
}
}
inputs {
primary {
sampling_rates 8000|11025|12000|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|AUDIO_DEVICE_IN_BACK_MIC
}
}
}
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 {
sampling_rates 44100
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_ALL_USB|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET
}
}
}
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
}
}
}
}
nvaudio_conf.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2012 NVIDIA Corporation. All Rights Reserved.
NVIDIA Corporation and its licensors retain all intellectual property and
proprietary rights in and to this software and related documentation. Any
use, reproduction, disclosure or distribution of this software and related
documentation without an express license agreement from NVIDIA Corporation
is strictly prohibited.
*/
-->
<!DOCTYPE AudioConfigs [
<!ELEMENT AudioConfigs (alsa_device)>
<!ELEMENT alsa_device (pcm_config, playback, capture, call, fm_playback)>
<!ELEMENT playback (pcm_config, device, path)>
<!ELEMENT capture (pcm_config, device, path)>
<!ELEMENT voice-call (pcm_config, device, path)>
<!ELEMENT device (path)>
<!ELEMENT path (ctl, at)>
<!ELEMENT alsa_device EMPTY>
<!ATTLIST alsa_device name (music|voice|aux|voice-call|bt-voice-call|fm-radio) #REQUIRED>
<!ATTLIST alsa_device card_id CDATA #REQUIRED>
<!ATTLIST alsa_device card_name CDATA #REQUIRED>
<!ATTLIST alsa_device device_id CDATA #REQUIRED>
<!ELEMENT alsa_device EMPTY>
<!ELEMENT pcm_config EMPTY>
<!ATTLIST pcm_config rate (8000|11025|16000|22050|32000|44100|48000|64000|88200|96000|176400|192000) #IMPLIED>
<!ATTLIST pcm_config channels (1|2|3|4|5|6|7|8) #IMPLIED>
<!ATTLIST pcm_config bps (16|32) #IMPLIED>
<!ATTLIST pcm_config period_size CDATA #IMPLIED>
<!ATTLIST pcm_config period_count CDATA #IMPLIED>
<!ATTLIST pcm_config start_threshold CDATA #IMPLIED>
<!ATTLIST pcm_config stop_threshold CDATA #IMPLIED>
<!ATTLIST pcm_config silence_threshold CDATA #IMPLIED>
<!ATTLIST pcm_config avail_min CDATA #IMPLIED>
<!ELEMENT pcm_config EMPTY>
<!ELEMENT device EMPTY>
<!ATTLIST device name (speaker|headphone|earpiece|bt-sco|aux|builtin-mic|headset-mic|bt-sco-mic|voice-call|bt-voice-call) #REQUIRED>
<!ELEMENT device EMPTY>
<!ELEMENT path EMPTY>
<!ATTLIST path name CDATA #IMPLIED>
<!ELEMENT path EMPTY>
<!ELEMENT param EMPTY>
<!ATTLIST param name CDATA #REQUIRED>
<!ATTLIST param val CDATA #REQUIRED>
<!ELEMENT param EMPTY>
<!ELEMENT ctl EMPTY>
<!ATTLIST ctl name CDATA #REQUIRED>
<!ATTLIST ctl val CDATA #REQUIRED>
<!ELEMENT ctl EMPTY>
<!ELEMENT at EMPTY>
<!ATTLIST at node CDATA #REQUIRED>
<!ATTLIST at cmd CDATA #REQUIRED>
<!ELEMENT at EMPTY>
]>
<!--
This file is used to declare various board specific audio configs
-->
<AudioConfigs>
<alsa_device name="music"
card_id="1"
card_name="tegramax98088"
device_id="0">
<pcm_config rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="4095"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<param name="ulp" val="0"/>
<param name="HW Rates" val="48000 44100"/>
<playback>
<device name="headphone">
<path name="on">
<ctl name="Left HP Mixer Left DAC1 Switch" val="1"/>
<ctl name="Right HP Mixer Right DAC1 Switch" val="1"/>
<ctl name="Headphone Jack Switch" val="1"/>
</path>
<path name="off">
<ctl name="Headphone Jack Switch" val="0"/>
<ctl name="Left HP Mixer Left DAC1 Switch" val="0"/>
<ctl name="Right HP Mixer Right DAC1 Switch" val="0"/>
</path>
</device>
<device name="speaker">
<path name="on">
<ctl name="Left SPK Mixer Left DAC1 Switch" val="1"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="1"/>
<ctl name="Int Spk Switch" val="1"/>
</path>
<path name="off">
<ctl name="Left SPK Mixer Left DAC1 Switch" val="0"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="0"/>
<ctl name="Int Spk Switch" val="0"/>
</path>
</device>
<device name="earpiece">
<path name="on">
<ctl name="Left REC Mixer Left DAC1 Switch" val="1"/>
<ctl name="Right REC Mixer Right DAC1 Switch" val="1"/>
<ctl name="Earpiece Switch" val="1"/>
</path>
<path name="off">
<ctl name="Earpiece Switch" val="0"/>
<ctl name="Left REC Mixer Left DAC1 Switch" val="0"/>
<ctl name="Right REC Mixer Right DAC1 Switch" val="0"/>
</path>
</device>
</playback>
<capture>
<pcm_config start_threshold="1"/>
<device name="builtin-mic">
<path name="on">
<ctl name="Left ADC Mixer MIC1 Switch" val="1"/>
<ctl name="Right ADC Mixer MIC1 Switch" val="1"/>
<ctl name="Int Mic Switch" val="1"/>
</path>
<path name="off">
<ctl name="Int Mic Switch" val="0"/>
<ctl name="Left ADC Mixer MIC1 Switch" val="0"/>
<ctl name="Right ADC Mixer MIC1 Switch" val="0"/>
</path>
</device>
<device name="headset-mic">
<path name="on">
<ctl name="Left ADC Mixer INA1 Switch" val="1"/>
<ctl name="Right ADC Mixer INA1 Switch" val="1"/>
<ctl name="Mic Jack Switch" val="1"/>
</path>
<path name="off">
<ctl name="Mic Jack Switch" val="0"/>
<ctl name="Left ADC Mixer INA1 Switch" val="0"/>
<ctl name="Right ADC Mixer INA1 Switch" val="0"/>
</path>
</device>
<device name="back-mic">
<path name="on">
<ctl name="Left ADC Mixer MIC2 Switch" val="1"/>
<ctl name="Right ADC Mixer MIC2 Switch" val="1"/>
<ctl name="Int Sub Mic Switch" val="1"/>
</path>
<path name="off">
<ctl name="Int Sub Mic Switch" val="0"/>
<ctl name="Left ADC Mixer MIC2 Switch" val="0"/>
<ctl name="Right ADC Mixer MIC2 Switch" val="0"/>
</path>
</device>
</capture>
</alsa_device>
<alsa_device name="voice"
card_id="1"
card_name="tegramax98088"
device_id="2">
<pcm_config rate="8000"
channels="1"
bps="16"
period_size="256"
period_count="4"
start_threshold="1023"
stop_threshold="1024"
silence_threshold="0"
avail_min="1"/>
<playback>
<device name="bt-sco">
<path name="on">
<at node="/dev/pts29" cmd="at%setaudio=4\r\n"/>
</path>
</device>
</playback>
<capture>
<pcm_config start_threshold="1"/>
<device name="bt-sco-mic"/>
</capture>
</alsa_device>
<alsa_device name ="aux"
card_id="0"
card_name="Tegra"
device_id="3">
<pcm_config rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="4095"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<param name="HW Rates" val="48000 44100 32000"/>
<playback>
<device name="aux"/>
</playback>
</alsa_device>
<alsa_device name="wfd">
<pcm_config rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"/>
<playback>
<device name="wfd"/>
</playback>
</alsa_device>
<alsa_device name ="voice-call"
card_id="1"
card_name="tegramax98088"
device_id="3">
<pcm_config rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="4095"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<call>
<path name="on">
<ctl name="Call Mode Switch" val="1"/>
</path>
<path name="off">
<ctl name="Call Mode Switch" val="0"/>
</path>
<device name="headphone">
<path name="on">
<ctl name="Left HP Mixer Left DAC1 Switch" val="1"/>
<ctl name="Right HP Mixer Right DAC1 Switch" val="1"/>
<ctl name="Headphone Jack Switch" val="1"/>
<at node="/dev/pts29" cmd="at%setaudio=2\r\n"/>
</path>
<path name="off">
<ctl name="Headphone Jack Switch" val="0"/>
<ctl name="Left HP Mixer Left DAC1 Switch" val="0"/>
<ctl name="Right HP Mixer Right DAC1 Switch" val="0"/>
</path>
</device>
<device name="speaker">
<path name="on">
<ctl name="Left SPK Mixer Left DAC1 Switch" val="1"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="1"/>
<ctl name="Int Spk Switch" val="1"/>
<at node="/dev/pts29" cmd="at%setaudio=3\r\n"/>
</path>
<path name="off">
<ctl name="Left SPK Mixer Left DAC1 Switch" val="0"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="0"/>
<ctl name="Int Spk Switch" val="0"/>
</path>
</device>
<device name="earpiece">
<path name="on">
<ctl name="Left REC Mixer Left DAC1 Switch" val="1"/>
<ctl name="Right REC Mixer Right DAC1 Switch" val="1"/>
<ctl name="Earpiece Switch" val="1"/>
<at node="/dev/pts29" cmd="at%setaudio=1\r\n"/>
</path>
<path name="off">
<ctl name="Earpiece Switch" val="0"/>
<ctl name="Left REC Mixer Left DAC1 Switch" val="0"/>
<ctl name="Right REC Mixer Right DAC1 Switch" val="0"/>
</path>
</device>
</call>
<call>
<device name="builtin-mic">
<path name="on">
<ctl name="Left ADC Mixer MIC1 Switch" val="1"/>
<ctl name="Right ADC Mixer MIC1 Switch" val="1"/>
<ctl name="Int Mic Switch" val="1"/>
</path>
<path name="off">
<ctl name="Int Mic Switch" val="0"/>
<ctl name="Left ADC Mixer MIC1 Switch" val="0"/>
<ctl name="Right ADC Mixer MIC1 Switch" val="0"/>
</path>
</device>
<device name="back-mic">
<path name="on">
<ctl name="Left ADC Mixer MIC2 Switch" val="1"/>
<ctl name="Right ADC Mixer MIC2 Switch" val="1"/>
<ctl name="Int Sub Mic Switch" val="1"/>
</path>
<path name="off">
<ctl name="Int Sub Mic Switch" val="0"/>
<ctl name="Left ADC Mixer MIC2 Switch" val="0"/>
<ctl name="Right ADC Mixer MIC2 Switch" val="0"/>
</path>
</device>
<device name="headset-mic">
<path name="on">
<ctl name="Left ADC Mixer INA1 Switch" val="1"/>
<ctl name="Right ADC Mixer INA1 Switch" val="1"/>
<ctl name="Mic Jack Switch" val="1"/>
</path>
<path name="off">
<ctl name="Mic Jack Switch" val="0"/>
<ctl name="Left ADC Mixer INA1 Switch" val="0"/>
<ctl name="Right ADC Mixer INA1 Switch" val="0"/>
</path>
</device>
</call>
</alsa_device>
<alsa_device name ="bt-voice-call"
card_id="1"
card_name="tegramax98088"
device_id="4">
<pcm_config rate="8000"
channels="1"
bps="16"
period_size="256"
period_count="4"
start_threshold="1023"
stop_threshold="1024"
silence_threshold="0"
avail_min="1"/>
<call>
<path name="on">
<at node="dev/ttyACM2" cmd="at%iaudcnf=4\r\n"/>
<ctl name="Call Mode Switch" val="1"/>
</path>
<path name="off">
<ctl name="Call Mode Switch" val="0"/>
</path>
<device name="bt-sco"/>
</call>
<call>
<device name="bt-sco-mic"/>
</call>
</alsa_device>
<alsa_device name="fm-radio"
card_id="1"
card_name="tegramax98088"
device_id="5">
<pcm_config rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="4095"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<fm_playback>
<device name="headphone">
<path name="on">
<ctl name="Left HP Mixer INB1 Switch" val="1"/>
<ctl name="Right HP Mixer INB2 Switch" val="1"/>
</path>
<path name="off">
<ctl name="Left HP Mixer INB1 Switch" val="0"/>
<ctl name="Right HP Mixer INB2 Switch" val="0"/>
</path>
</device>
<device name="speaker">
<path name="on">
<ctl name="Left SPK Mixer INB1 Switch" val="1"/>
<ctl name="Right SPK Mixer INB2 Switch" val="1"/>
<ctl name="Left SPK Mixer Left DAC1 Switch" val="1"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="1"/>
</path>
<path name="off">
<ctl name="Left SPK Mixer INB1 Switch" val="0"/>
<ctl name="Right SPK Mixer INB2 Switch" val="0"/>
<ctl name="Left SPK Mixer Left DAC1 Switch" val="0"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="0"/>
</path>
</device>
</fm_playback>
</alsa_device>
</AudioConfigs>
<!-- Copyright (c) 2012 NVIDIA Corporation. All Rights Reserved.
NVIDIA Corporation and its licensors retain all intellectual property and
proprietary rights in and to this software and related documentation. Any
use, reproduction, disclosure or distribution of this software and related
documentation without an express license agreement from NVIDIA Corporation
is strictly prohibited.
*/
-->
<!DOCTYPE AudioConfigs [
<!ELEMENT AudioConfigs (alsa_device)>
<!ELEMENT alsa_device (pcm_config, playback, capture, call, fm_playback)>
<!ELEMENT playback (pcm_config, device, path)>
<!ELEMENT capture (pcm_config, device, path)>
<!ELEMENT voice-call (pcm_config, device, path)>
<!ELEMENT device (path)>
<!ELEMENT path (ctl, at)>
<!ELEMENT alsa_device EMPTY>
<!ATTLIST alsa_device name (music|voice|aux|voice-call|bt-voice-call|fm-radio) #REQUIRED>
<!ATTLIST alsa_device card_id CDATA #REQUIRED>
<!ATTLIST alsa_device card_name CDATA #REQUIRED>
<!ATTLIST alsa_device device_id CDATA #REQUIRED>
<!ELEMENT alsa_device EMPTY>
<!ELEMENT pcm_config EMPTY>
<!ATTLIST pcm_config rate (8000|11025|16000|22050|32000|44100|48000|64000|88200|96000|176400|192000) #IMPLIED>
<!ATTLIST pcm_config channels (1|2|3|4|5|6|7|8) #IMPLIED>
<!ATTLIST pcm_config bps (16|32) #IMPLIED>
<!ATTLIST pcm_config period_size CDATA #IMPLIED>
<!ATTLIST pcm_config period_count CDATA #IMPLIED>
<!ATTLIST pcm_config start_threshold CDATA #IMPLIED>
<!ATTLIST pcm_config stop_threshold CDATA #IMPLIED>
<!ATTLIST pcm_config silence_threshold CDATA #IMPLIED>
<!ATTLIST pcm_config avail_min CDATA #IMPLIED>
<!ELEMENT pcm_config EMPTY>
<!ELEMENT device EMPTY>
<!ATTLIST device name (speaker|headphone|earpiece|bt-sco|aux|builtin-mic|headset-mic|bt-sco-mic|voice-call|bt-voice-call) #REQUIRED>
<!ELEMENT device EMPTY>
<!ELEMENT path EMPTY>
<!ATTLIST path name CDATA #IMPLIED>
<!ELEMENT path EMPTY>
<!ELEMENT param EMPTY>
<!ATTLIST param name CDATA #REQUIRED>
<!ATTLIST param val CDATA #REQUIRED>
<!ELEMENT param EMPTY>
<!ELEMENT ctl EMPTY>
<!ATTLIST ctl name CDATA #REQUIRED>
<!ATTLIST ctl val CDATA #REQUIRED>
<!ELEMENT ctl EMPTY>
<!ELEMENT at EMPTY>
<!ATTLIST at node CDATA #REQUIRED>
<!ATTLIST at cmd CDATA #REQUIRED>
<!ELEMENT at EMPTY>
]>
<!--
This file is used to declare various board specific audio configs
-->
<AudioConfigs>
<alsa_device name="music"
card_id="1"
card_name="tegramax98088"
device_id="0">
<pcm_config rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="4095"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<param name="ulp" val="0"/>
<param name="HW Rates" val="48000 44100"/>
<playback>
<device name="headphone">
<path name="on">
<ctl name="Left HP Mixer Left DAC1 Switch" val="1"/>
<ctl name="Right HP Mixer Right DAC1 Switch" val="1"/>
<ctl name="Headphone Jack Switch" val="1"/>
</path>
<path name="off">
<ctl name="Headphone Jack Switch" val="0"/>
<ctl name="Left HP Mixer Left DAC1 Switch" val="0"/>
<ctl name="Right HP Mixer Right DAC1 Switch" val="0"/>
</path>
</device>
<device name="speaker">
<path name="on">
<ctl name="Left SPK Mixer Left DAC1 Switch" val="1"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="1"/>
<ctl name="Int Spk Switch" val="1"/>
</path>
<path name="off">
<ctl name="Left SPK Mixer Left DAC1 Switch" val="0"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="0"/>
<ctl name="Int Spk Switch" val="0"/>
</path>
</device>
<device name="earpiece">
<path name="on">
<ctl name="Left REC Mixer Left DAC1 Switch" val="1"/>
<ctl name="Right REC Mixer Right DAC1 Switch" val="1"/>
<ctl name="Earpiece Switch" val="1"/>
</path>
<path name="off">
<ctl name="Earpiece Switch" val="0"/>
<ctl name="Left REC Mixer Left DAC1 Switch" val="0"/>
<ctl name="Right REC Mixer Right DAC1 Switch" val="0"/>
</path>
</device>
</playback>
<capture>
<pcm_config start_threshold="1"/>
<device name="builtin-mic">
<path name="on">
<ctl name="Left ADC Mixer MIC1 Switch" val="1"/>
<ctl name="Right ADC Mixer MIC1 Switch" val="1"/>
<ctl name="Int Mic Switch" val="1"/>
</path>
<path name="off">
<ctl name="Int Mic Switch" val="0"/>
<ctl name="Left ADC Mixer MIC1 Switch" val="0"/>
<ctl name="Right ADC Mixer MIC1 Switch" val="0"/>
</path>
</device>
<device name="headset-mic">
<path name="on">
<ctl name="Left ADC Mixer INA1 Switch" val="1"/>
<ctl name="Right ADC Mixer INA1 Switch" val="1"/>
<ctl name="Mic Jack Switch" val="1"/>
</path>
<path name="off">
<ctl name="Mic Jack Switch" val="0"/>
<ctl name="Left ADC Mixer INA1 Switch" val="0"/>
<ctl name="Right ADC Mixer INA1 Switch" val="0"/>
</path>
</device>
<device name="back-mic">
<path name="on">
<ctl name="Left ADC Mixer MIC2 Switch" val="1"/>
<ctl name="Right ADC Mixer MIC2 Switch" val="1"/>
<ctl name="Int Sub Mic Switch" val="1"/>
</path>
<path name="off">
<ctl name="Int Sub Mic Switch" val="0"/>
<ctl name="Left ADC Mixer MIC2 Switch" val="0"/>
<ctl name="Right ADC Mixer MIC2 Switch" val="0"/>
</path>
</device>
</capture>
</alsa_device>
<alsa_device name="voice"
card_id="1"
card_name="tegramax98088"
device_id="2">
<pcm_config rate="8000"
channels="1"
bps="16"
period_size="256"
period_count="4"
start_threshold="1023"
stop_threshold="1024"
silence_threshold="0"
avail_min="1"/>
<playback>
<device name="bt-sco">
<path name="on">
<at node="/dev/pts29" cmd="at%setaudio=4\r\n"/>
</path>
</device>
</playback>
<capture>
<pcm_config start_threshold="1"/>
<device name="bt-sco-mic"/>
</capture>
</alsa_device>
<alsa_device name ="aux"
card_id="0"
card_name="Tegra"
device_id="3">
<pcm_config rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="4095"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<param name="HW Rates" val="48000 44100 32000"/>
<playback>
<device name="aux"/>
</playback>
</alsa_device>
<alsa_device name="wfd">
<pcm_config rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"/>
<playback>
<device name="wfd"/>
</playback>
</alsa_device>
<alsa_device name ="voice-call"
card_id="1"
card_name="tegramax98088"
device_id="3">
<pcm_config rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="4095"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<call>
<path name="on">
<ctl name="Call Mode Switch" val="1"/>
</path>
<path name="off">
<ctl name="Call Mode Switch" val="0"/>
</path>
<device name="headphone">
<path name="on">
<ctl name="Left HP Mixer Left DAC1 Switch" val="1"/>
<ctl name="Right HP Mixer Right DAC1 Switch" val="1"/>
<ctl name="Headphone Jack Switch" val="1"/>
<at node="/dev/pts29" cmd="at%setaudio=2\r\n"/>
</path>
<path name="off">
<ctl name="Headphone Jack Switch" val="0"/>
<ctl name="Left HP Mixer Left DAC1 Switch" val="0"/>
<ctl name="Right HP Mixer Right DAC1 Switch" val="0"/>
</path>
</device>
<device name="speaker">
<path name="on">
<ctl name="Left SPK Mixer Left DAC1 Switch" val="1"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="1"/>
<ctl name="Int Spk Switch" val="1"/>
<at node="/dev/pts29" cmd="at%setaudio=3\r\n"/>
</path>
<path name="off">
<ctl name="Left SPK Mixer Left DAC1 Switch" val="0"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="0"/>
<ctl name="Int Spk Switch" val="0"/>
</path>
</device>
<device name="earpiece">
<path name="on">
<ctl name="Left REC Mixer Left DAC1 Switch" val="1"/>
<ctl name="Right REC Mixer Right DAC1 Switch" val="1"/>
<ctl name="Earpiece Switch" val="1"/>
<at node="/dev/pts29" cmd="at%setaudio=1\r\n"/>
</path>
<path name="off">
<ctl name="Earpiece Switch" val="0"/>
<ctl name="Left REC Mixer Left DAC1 Switch" val="0"/>
<ctl name="Right REC Mixer Right DAC1 Switch" val="0"/>
</path>
</device>
</call>
<call>
<device name="builtin-mic">
<path name="on">
<ctl name="Left ADC Mixer MIC1 Switch" val="1"/>
<ctl name="Right ADC Mixer MIC1 Switch" val="1"/>
<ctl name="Int Mic Switch" val="1"/>
</path>
<path name="off">
<ctl name="Int Mic Switch" val="0"/>
<ctl name="Left ADC Mixer MIC1 Switch" val="0"/>
<ctl name="Right ADC Mixer MIC1 Switch" val="0"/>
</path>
</device>
<device name="back-mic">
<path name="on">
<ctl name="Left ADC Mixer MIC2 Switch" val="1"/>
<ctl name="Right ADC Mixer MIC2 Switch" val="1"/>
<ctl name="Int Sub Mic Switch" val="1"/>
</path>
<path name="off">
<ctl name="Int Sub Mic Switch" val="0"/>
<ctl name="Left ADC Mixer MIC2 Switch" val="0"/>
<ctl name="Right ADC Mixer MIC2 Switch" val="0"/>
</path>
</device>
<device name="headset-mic">
<path name="on">
<ctl name="Left ADC Mixer INA1 Switch" val="1"/>
<ctl name="Right ADC Mixer INA1 Switch" val="1"/>
<ctl name="Mic Jack Switch" val="1"/>
</path>
<path name="off">
<ctl name="Mic Jack Switch" val="0"/>
<ctl name="Left ADC Mixer INA1 Switch" val="0"/>
<ctl name="Right ADC Mixer INA1 Switch" val="0"/>
</path>
</device>
</call>
</alsa_device>
<alsa_device name ="bt-voice-call"
card_id="1"
card_name="tegramax98088"
device_id="4">
<pcm_config rate="8000"
channels="1"
bps="16"
period_size="256"
period_count="4"
start_threshold="1023"
stop_threshold="1024"
silence_threshold="0"
avail_min="1"/>
<call>
<path name="on">
<at node="dev/ttyACM2" cmd="at%iaudcnf=4\r\n"/>
<ctl name="Call Mode Switch" val="1"/>
</path>
<path name="off">
<ctl name="Call Mode Switch" val="0"/>
</path>
<device name="bt-sco"/>
</call>
<call>
<device name="bt-sco-mic"/>
</call>
</alsa_device>
<alsa_device name="fm-radio"
card_id="1"
card_name="tegramax98088"
device_id="5">
<pcm_config rate="48000"
channels="2"
bps="16"
period_size="1024"
period_count="4"
start_threshold="4095"
stop_threshold="4096"
silence_threshold="0"
avail_min="1"/>
<fm_playback>
<device name="headphone">
<path name="on">
<ctl name="Left HP Mixer INB1 Switch" val="1"/>
<ctl name="Right HP Mixer INB2 Switch" val="1"/>
</path>
<path name="off">
<ctl name="Left HP Mixer INB1 Switch" val="0"/>
<ctl name="Right HP Mixer INB2 Switch" val="0"/>
</path>
</device>
<device name="speaker">
<path name="on">
<ctl name="Left SPK Mixer INB1 Switch" val="1"/>
<ctl name="Right SPK Mixer INB2 Switch" val="1"/>
<ctl name="Left SPK Mixer Left DAC1 Switch" val="1"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="1"/>
</path>
<path name="off">
<ctl name="Left SPK Mixer INB1 Switch" val="0"/>
<ctl name="Right SPK Mixer INB2 Switch" val="0"/>
<ctl name="Left SPK Mixer Left DAC1 Switch" val="0"/>
<ctl name="Left SPK Mixer Right DAC1 Switch" val="0"/>
</path>
</device>
</fm_playback>
</alsa_device>
</AudioConfigs>
Oder weiß jemand von euch welche datei ich abändern muss um die EU begränzumg der Lautstärke zu deaktivieren oder wo die gefragte default_gain.conf Datei bei LG liegt?
Gruß
Zuletzt bearbeitet: