Commit Graph

10 Commits

Author SHA1 Message Date
Preetam Singh Ranawat 7b4dcbc8a9 hal : Overwrite the APP type for PCM RX and TX path
-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
2014-11-19 02:33:24 -08:00
Amit Shekhar 1d89604def hal: Fix combo device configuration for 24 bit playback on speaker
-Fix combo device configuration for 24 bit playback on speaker
-Move exception hadndling code to audio_extn

Change-Id: Ia0985a284042a5ac5e3de64aaf5e4d57462ceb85
2014-10-13 09:51:29 -07:00
Preetam Singh Ranawat a4a37d8c52 hal: Fix backend for 24 bit playback on speaker
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
2014-09-25 17:41:34 -07:00
Amit Shekhar 278e336f97 hal: Fix backend configuration during stream switch
-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
2014-09-08 15:59:45 -07:00
Amit Shekhar 6f461b1176 hal: Fix policy conf parser for FLAC playback on multiple sample rate
-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
2014-08-27 19:13:54 -07:00
Haynes Mathew George b51ceb1e78 hal: miscellaneous fixes
Fixes for the following issues reported by KW

21725, 21726, 21727, 21737, 21738, 21739, 21740, 21750,
21751, 21752, 25317, 30602, 32620, 36778, 41817, 41819,
50942, 54468, 54470, 54479, 55569, 54481, 55570, 55571,
58485, 85112, 85122, 85123

Change-Id: I9abef07db7ccdc19789a201eb268a97e1b360cad
2014-07-31 08:17:03 -07:00
Anish Kumar c8599f2106 hal: Don't de-reference stream out in case of recording usecase
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
2014-07-24 16:32:37 -07:00
Mingming Yin ae3530f8dd hal: update Dolby EAC3 audio format enum
- Update Dolby EAC3 audio format enum to
  AUDIO_FORMAT_E_AC3.
- This new format is introduced in AOSP code

Change-Id: Id1f524b430b086b881c74f6cb91c9823439a251a
2014-07-11 10:07:02 -07:00
Subhash Chandra Bose Naripeddy 542746726d hal: send calibration parameters in stream route
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
2014-05-26 22:10:39 -07:00
Subhash Chandra Bose Naripeddy 19dc03b51f hal: configure playback stream rendering based on output policy
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
2014-05-18 21:04:42 -07:00