-For all the rx/tx sessions hal sends the default app type 'general playback'
with acdb cal data if output policy conf file is not added.So it sets the SA+
topo id for POPP.
-With output policy conf file it would create the
multiple instance of COPP for different output with different app type,
which is not recommended for resource constrained target.So we can not
add the output policy conf file with different app types to avoid SA+.
-Overwrite the app type for PCM Rx and Tx path to avoid setting SA+ for POPP.
Change-Id: I1a3e0cbb01360e4d2e7b0ba0ecf8a1bee7fecda7
-Fix combo device configuration for 24 bit playback on speaker
-Move exception hadndling code to audio_extn
Change-Id: Ia0985a284042a5ac5e3de64aaf5e4d57462ceb85
Configure backend at 48khz for 24 bit playback on speakers.
Currently, ADM can be configured only at the begining of stream
playback. During device switch, in the middle of a playback, the
backend remains at the previous configuration.
By allowing ADM and backend re-configuration during playback, 24-bit
playback is enforced on appropriate backend.
Change-Id: I6a6df5699972b0992a217fb2a4c9dc94fd2230ce
-Currently, input stream sample rate and/or bit width is compared
with current backend sample rate and/or bit width. Backend is
re-configured only if input stream's rate/width is higher. This
causes incorrect sampling rate during stream switch of varying
sample rates.
-The backend is configured at highest bit width and/or sample rate
amongst all active playback usecases.
-By setting the backend re-configuration flag only when the selected
sample rate and/or bit width differ with current backend sample rate
and/or bit width, re-routing is enabled and backend is re-configured.
-Exception: 16 bit playbacks is allowed through 16/48 backend only.
-Enable logs for app type, acdb id and sample rate.
Change-Id: I09bfe30ebf8bdb3f9b481d7375ce7450fa67270c
-Apptype update for FLAC format fails as it is not listed as
supported format. By adding AUDIO_FORMAT_FLAC, corresponding apptype
is selected which enables correct audio_output profile.
-During config structure population, add logic to identify output
profile according to sampling rate in addition to format and flag.
-Currently, output policy parser sends mixer command containing
acdb id and app type only. As a result, adm opens at only one fixed
sampling rate. By sending sample rate, it enables adm open at
appropriate sample rate obtained from audio output policy conf file.
Change-Id: I014e1c139f7905d799003add43e1b74715c4367d
We don't need to dereference out stream in case of playback.
So move it down so that it gets de-referenced only when needed.
Change-Id: I162346395f4bbb9b3ba04a8fc4b9f3433096ab1a
- Update Dolby EAC3 audio format enum to
AUDIO_FORMAT_E_AC3.
- This new format is introduced in AOSP code
Change-Id: Id1f524b430b086b881c74f6cb91c9823439a251a
The stream's output rendering policy requires calibration to be
sent when stream routing configuration is set instead of the
device enable as each stream can have it's own routing with
different calibration needs.
Change-Id: If8bd365c4a6c616ed86b9383ba540ee8e28c4079
For the usecases where individual streams have to be rendered
through different post processing chain on DSP an output policy
is defined. The output configuration is read from the
output policy file based on the stream atrributes to render the
playback appropriately.
Change-Id: I095592013ffa5b04bea69254026ebb78e2934822