-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] [DO NOT MERGE] yoshino: audio: prepare aaudio and HiFi routes for better pl… #138
Open
lzlrd
wants to merge
1
commit into
sonyxperiadev:master
Choose a base branch
from
lzlrd:audiohifi
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# List of profiles for the output device session where stream is routed. | ||
# A stream opened with the inputs attributes which match the "flags" and | ||
# "formats" as specified in the profile is routed to a device at | ||
# sample rate specified under "sampling_rates" and bit width under | ||
# "bit_width" and the topology extracted from the acdb data against | ||
# the "app_type". | ||
# | ||
# the flags and formats are specified using the strings corresponding to | ||
# enums in audio.h and audio_policy.h. They are concatenated with "|" | ||
# without space or "\n". | ||
# the flags and formats should match the ones in "audio_policy.conf" | ||
|
||
outputs { | ||
default { | ||
flags AUDIO_OUTPUT_FLAG_PRIMARY | ||
formats AUDIO_FORMAT_PCM_16_BIT | ||
sampling_rates 41000|48000 | ||
bit_width 16 | ||
app_type 69937 | ||
} | ||
proaudio { | ||
flags AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW | ||
formats AUDIO_FORMAT_PCM_16_BIT | ||
sampling_rates 48000 | ||
bit_width 16 | ||
app_type 69943 | ||
} | ||
deep_buffer { | ||
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER | ||
formats AUDIO_FORMAT_PCM_16_BIT | ||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|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 | ||
sampling_rates 44100|48000|88200|96000|176400|192000 | ||
bit_width 16 | ||
app_type 69936 | ||
} | ||
direct_pcm_24 { | ||
flags AUDIO_OUTPUT_FLAG_DIRECT | ||
formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT | ||
sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000 | ||
bit_width 24 | ||
app_type 69940 | ||
} | ||
direct_pcm_32 { | ||
flags AUDIO_OUTPUT_FLAG_DIRECT | ||
formats AUDIO_FORMAT_PCM_32_BIT | ||
sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000 | ||
bit_width 32 | ||
app_type 69942 | ||
} | ||
compress_passthrough { | ||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING|AUDIO_OUTPUT_FLAG_COMPRESS_PASSTHROUGH | ||
formats AUDIO_FORMAT_AC3|AUDIO_FORMAT_E_AC3|AUDIO_FORMAT_E_AC3_JOC|AUDIO_FORMAT_DTS|AUDIO_FORMAT_DTS_HD|AUDIO_FORMAT_DSD | ||
sampling_rates 32000|44100|48000|88200|96000|176400|192000|352800 | ||
bit_width 16 | ||
app_type 69941 | ||
} | ||
compress_offload_16 { | ||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING | ||
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_16_BIT_OFFLOAD|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2 | ||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|44100|48000|88200|96000|176400|192000 | ||
bit_width 16 | ||
app_type 69936 | ||
} | ||
compress_offload_24 { | ||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING | ||
formats AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO | ||
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|44100|48000|88200|96000|176400|192000 | ||
bit_width 24 | ||
app_type 69940 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sample rate 41000, maybe 44100