sm7250-common: Update audio and media configs from OnePlusNordCE OxygenOS 11.0.4.4

This commit is contained in:
KakatkarAkshay
2021-07-18 20:42:24 +05:30
parent 981ad16ac0
commit bddc776409
18 changed files with 6029 additions and 2259 deletions

View File

@@ -11,9 +11,7 @@
# the flags and formats should match the ones in "audio_policy.conf"
outputs {
#ifdef VENDOR_EDIT
#if OP_FEATURE_MM_24BIT == 1
#liuhaituo@MM.Audio, 2019/07/15, use 24bit to playback
#wangchengqiang@MM.Audio, 2021/02/05, use 24bit to playback
default {
flags AUDIO_OUTPUT_FLAG_PRIMARY
formats AUDIO_FORMAT_PCM_24_BIT_PACKED
@@ -21,7 +19,6 @@ outputs {
bit_width 24
app_type 69937
}
#else
# default {
# flags AUDIO_OUTPUT_FLAG_PRIMARY
# formats AUDIO_FORMAT_PCM_16_BIT
@@ -29,8 +26,6 @@ outputs {
# bit_width 16
# app_type 69937
# }
#endif
#endif
proaudio {
flags AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW
formats AUDIO_FORMAT_PCM_16_BIT
@@ -45,26 +40,21 @@ outputs {
bit_width 16
app_type 69946
}
#ifdef VENDOR_EDIT
#if OP_FEATURE_MM_24BIT == 1
#liuhaituo@MM.Audio, 2019/07/15, use 24bit to playback
deep_buffer {
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
formats AUDIO_FORMAT_PCM_24_BIT_PACKED
sampling_rates 48000
bit_width 24
app_type 69936
}
#else
#wangchengqiang@MM.Audio, 2021/02/05, use 24bit to playback
# deep_buffer {
# flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
# formats AUDIO_FORMAT_PCM_16_BIT
# formats AUDIO_FORMAT_PCM_24_BIT_PACKED
# sampling_rates 48000
# bit_width 16
# bit_width 24
# app_type 69936
# }
#endif
#endif
deep_buffer {
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 48000
bit_width 16
app_type 69936
}
direct_pcm_16 {
flags AUDIO_OUTPUT_FLAG_DIRECT
formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
@@ -112,12 +102,9 @@ outputs {
inputs {
record_16bit {
formats AUDIO_FORMAT_PCM_16_BIT
#ifndef VENDOR_EDIT
#yewenliang@MM.Audio, 2020/04/09, remove 11025 series sample rate for normal record
#wangchengqiang@MM.Audio,20210127,remove 44.1k 88.2k 176.4k 192k for normal record
#sampling_rates 8000|16000|32000|44100|48000|88200|96000|176400|192000
#else
sampling_rates 8000|16000|32000|48000|96000|192000
#endif
sampling_rates 8000|16000|32000|48000
bit_width 16
app_type 69938
}
@@ -133,4 +120,41 @@ inputs {
bit_width 32
app_type 69949
}
record_compress_16 {
flags AUDIO_INPUT_FLAG_COMPRESS
formats AUDIO_FORMAT_PCM_16_BIT
#wangchengqiang@MM.Audio,20210127,remove 44.1k 88.2k 176.4k 192k for compress record
#sampling_rates 8000|16000|32000|44100|48000|88200|96000|176400|192000
sampling_rates 8000|16000|32000|48000
bit_width 16
app_type 69938
}
record_compress_24 {
flags AUDIO_INPUT_FLAG_COMPRESS
formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_24_BIT
sampling_rates 44100|48000|88200|96000|176400|192000
bit_width 24
app_type 69948
}
record_compress_32 {
flags AUDIO_INPUT_FLAG_COMPRESS
formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_FLOAT
sampling_rates 44100|48000|88200|96000|176400|192000
bit_width 32
app_type 69949
}
voip_tx {
flags AUDIO_INPUT_FLAG_VOIP_TX
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 8000|16000|32000|48000
bit_width 16
app_type 69946
}
low_latency_voip_tx {
flags AUDIO_INPUT_FLAG_FAST|AUDIO_INPUT_FLAG_VOIP_TX
formats AUDIO_FORMAT_PCM_16_BIT
sampling_rates 48000
bit_width 16
app_type 69946
}
}