summaryrefslogtreecommitdiff
path: root/sound (follow)
Commit message (Collapse)AuthorAge
...
| * | | | | | | | ASoC: wcd-spi: Add memory read debug supportBhalchandra Gajare2016-10-18
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To help debugging, change adds support to read address and size from the debugfs nodes and provide the memory content through the mem_read debugfs node. CRs-Fixed: 1064870 Change-Id: I151bc5d373129e3599baf6d3217b65843c0f16d0 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* | | | | | | | Merge "ASoC: wcd-spi: fix the maximum transfer unit setting"Linux Build Service Account2016-10-19
|\ \ \ \ \ \ \ \
| * | | | | | | | ASoC: wcd-spi: fix the maximum transfer unit settingBhalchandra Gajare2016-10-18
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current maximum transfer unit in the driver is set to 16K bytes, whereas the maximum possible is upto 64K bytes. Update the driver to use the maximum possible transfer unit and split the read and write requests into chunks of this maximum possible transfer length. CRs-Fixed: 1070087 Change-Id: I271cf0ad12652421ab3ae8770714ccb78c043efa Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* / / / / / / / ASoC: wcd9335: Fix race during codec master clock (mclk) enablementBhalchandra Gajare2016-10-18
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is possible that codec master clock enablement could race from two different execution contexts, causing the mclk to be not enabled at all. This will result in failure of use cases that expect the clock to be present. Fix this issue by making sure the race condition does not occur during mclk enablement. bug: b/30983442 Change-Id: Ie254b8876524956b816267eaaed205f65641c000 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* | | | | | | Merge "ASoC: msmcobalt: Check for number of aux codecs"Linux Build Service Account2016-10-17
|\ \ \ \ \ \ \
| * | | | | | | ASoC: msmcobalt: Check for number of aux codecsSudheer Papothi2016-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a check for number of aux codecs before applying the aux codec gain settings from machine driver to avoid setting the gains if there are no aux codecs connected. Change-Id: I86e6c4a15e6eed8e4650c6eb072f07f49890aecc Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
* | | | | | | | Merge "ASoC: wcd934x: Create mixer control to select asrc output mode"Linux Build Service Account2016-10-17
|\ \ \ \ \ \ \ \
| * | | | | | | | ASoC: wcd934x: Create mixer control to select asrc output modePhani Kumar Uppalapati2016-10-14
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create mixer control to select asrc (asynchronous sample rate converter) output mode to integer or fractional rate based on the playback sample rate of the main path or DSD path. CRs-Fixed: 1078253 Change-Id: I941a357d63f1024c5f7648de10af10df0148c6a7 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
* | | | | | | | Merge "ASoC: tavil: fix kctl_put and get function for SLIM RXX MUX"Linux Build Service Account2016-10-17
|\ \ \ \ \ \ \ \
| * | | | | | | | ASoC: tavil: fix kctl_put and get function for SLIM RXX MUXXiaojun Sang2016-10-11
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Incorrect values are received when queried for SLIM RXX MUX. This is due to incorrect logic in the put and get functions of this kctl. Correct the logic to fix this issue. CRs-Fixed: 1074866 Change-Id: Ib1fda1fcbc09e132f1b3deaf4a65fe8617ff9d10 Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
* | | | | | | | Merge "ASoc: wcd9335: Ignore mbhc get impedance error"Linux Build Service Account2016-10-14
|\ \ \ \ \ \ \ \
| * | | | | | | | ASoc: wcd9335: Ignore mbhc get impedance errorPhani Kumar Uppalapati2016-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid DAPM failure by ignoring the mbhc get impedance errors as this is not a fatal and audio can still work even if the class-H settings are not updated based on impedance values. Change-Id: Icd6846d157af5a96d5ae49261e109cbd5ab8c266 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
* | | | | | | | | Merge "ASoC: wcd934x: Update DSD register sequence for v1.1"Linux Build Service Account2016-10-14
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | ASoC: wcd934x: Update DSD register sequence for v1.1Phani Kumar Uppalapati2016-10-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update DSD playback register sequence for wcd934x codec version 1.1. Change-Id: I993273bcf26f8f53f6d9c8cccec5c4b17c8a0e95 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
| * | | | | | | | | ASoC: wcd934x: Update headphone register sequence for wcd934x v1.1Phani Kumar Uppalapati2016-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update codec register sequence for headphone path enable for wcd934x version 1.1. Change-Id: I0a16e19f825aa192c12c6c7522e417dd99c68f41 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
* | | | | | | | | | Merge "ASoC: wcd934x: update keeper enable for soundwire functionality"Linux Build Service Account2016-10-14
|\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / |/| | | | | | | | |
| * | | | | | | | | ASoC: wcd934x: update keeper enable for soundwire functionalityPhani Kumar Uppalapati2016-10-12
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keeper enable bit is used to reduce the current leakage from soundwire master. Enable this bit before starting audio use-case through soundwire and disable once use-case is completed. Change-Id: If2dc9e7fd9a2710391d02c0e52a291b3cffc63b6 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
* | | | | | | | | Merge "ASoC: wcd934x-dsp-cntl: Make sure memories can enter deep sleep"Linux Build Service Account2016-10-13
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | ASoC: wcd934x-dsp-cntl: Make sure memories can enter deep sleepBhalchandra Gajare2016-10-11
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current register settings for memory control allow only few memory banks to enter deep sleep. This could cause some of the memory banks to not enter deep sleep mode, resulting into higher power consumption. Fix the register sequence to make sure the memories are allowed to enter deep sleep mode. Change-Id: I2ae0fe35e9a207b33f88077ca6ec49d593d43b68 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* | | | | | | | | Merge "ASoC: wcd934x-dsp-cntl: add support for codec restart"Linux Build Service Account2016-10-13
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | ASoC: wcd934x-dsp-cntl: add support for codec restartBhalchandra Gajare2016-10-12
| | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During subsystem restart, the codec hardware goes through reset. Add support in the wcd934x dsp controller driver to handle codec reset and perform necessary reset of the codec dsp. Change-Id: I9916354c04e24708aced5fc63bc12ddfe87b49f2 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* | | | | | | | | Merge "ASoC: codecs: Add teardown() call in shutdown"Linux Build Service Account2016-10-13
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | ASoC: codecs: Add teardown() call in shutdownGarmond Leung2016-10-11
| | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Display driver has a timeout to avoid prematurely turning off audio engine. Add teardown function call to ensure that display driver can turn off audio engine once audio driver acknowledges the shutdown, so display driver doesn't have to wait for the entire timeout period. CRs-Fixed: 1075659 Change-Id: Ib8211a85543b659b7b19a6ebb85382dbbbecfec6 Signed-off-by: Garmond Leung <garmondl@codeaurora.org>
* | | | | | | | | Merge "ASoC: wcd9xxx: Disable external clock buffer when mclk is not in use"Linux Build Service Account2016-10-13
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | ASoC: wcd9xxx: Disable external clock buffer when mclk is not in useSudheer Papothi2016-10-12
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | External clock buffer being turned on even when mclk is gated results in power leakage. Disable external clock buffer when mclk is not in use. Change-Id: Iea45a4e8ab4560a093c44800ddd7b1311471c646 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
* | | | | | | | | Merge "ASoC: wcd-spi: Initialize local variables before usage"Linux Build Service Account2016-10-13
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | |
| * | | | | | | | ASoC: wcd-spi: Initialize local variables before usageBhalchandra Gajare2016-10-12
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initliaze the local variables that are used in functions to return success or error codes. This fixes possible cases where undefined error codes are returned. CRs-Fixed: 1070186 Change-Id: I74bed6cfd9753765b15d17d69ba30f61875e87c8 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* | | | | | | | ASoC: wcd-dsp-mgr: handle codec down and up eventsBhalchandra Gajare2016-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is possible that codec hardware can be reset in case of subsystem restart scenarios. It is required to reset the codec DSP as well in such cases to make sure the DSP is in usable state after the codec hardware is reset. Change adds support to handle codec down and up events and perform the necessary reset on codec DSP. Change-Id: I79502c043f5e16947c895aab7cd584d72ad1a7dc Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* | | | | | | | ASoC: wcd-dsp-mgr: rename wdsp_intr_handler to wdsp_signal_handlerBhalchandra Gajare2016-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The wdsp_intr_handler is not really processing interrupts in interrupt context, rather assumes that the caller is not in interrupt context and performs calls that may sleep. Rename the function in order to avoid confusion. Interrupt handlers can still call this function as long as they are in threaded interrupt context and are okay to sleep. Change-Id: Ia2803d6ca021d505ed2e711e676cbd701b11c492 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* | | | | | | | ASoC: wcd-spi: Move one time initializations to component bindBhalchandra Gajare2016-10-11
| |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One time initializations like regmap and debugfs init are currently done in the init function. But, in case of subsystem restart, the driver can get de-initialized and then initialized again. This causes the debugfs and regmap entries to get removed and added again during subsystem restart cases. Avoid this by moving all the one time initialization of the driver to component bind. Change-Id: Ideed297fde016b0623616be64875be094e688981 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* | | | | | | Merge "ASoC: msm: fix lowlatency playback and FM concurrency issue"Linux Build Service Account2016-10-11
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | ASoC: msm: fix lowlatency playback and FM concurrency issueVidyakumar Athota2016-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lowlatency playback is failed to start when FM is going on because of wrong channel count in backend DAI. Channels are overwritten because of afe loopback port mixer caching variable(port_sessions) overflow. Fix this issue by creating an array to track all the loopback connections. Change-Id: I47b875df7eae671f8b59ecc76f61ed7fc7147f0e Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
* | | | | | | ASoC: msm: create backend dailink for wcd934x MADWalter Yang2016-10-09
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To support ADSP SVA on wcd934x, dedicated backend dailink needs to be created. Add the dailink associating the specific cpu dai and the MAD codec dai. CRs-Fixed: 1070327 Change-Id: I4152d81e4e951216a8ecdd93562eb1740dbb962c Signed-off-by: Walter Yang <yandongy@codeaurora.org>
* | | | | | Merge "ASoC: msm: qdsp6v2: support for configurable bit format for AFE encoder"Linux Build Service Account2016-10-07
|\ \ \ \ \ \
| * | | | | | ASoC: msm: qdsp6v2: support for configurable bit format for AFE encoderNaresh Tanniru2016-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for configurable bit width for AFE encoder. Add new mixer ctl to set for usecases which enables configuring different input/output bit format on AFE for usecases such as APTXHD encoder for 24bit input and 16bit output. Change-Id: I62326a097cbd71a3ec2b93a0120284d8f71f5d57 Signed-off-by: Naresh Tanniru <ntanniru@codeaurora.org>
* | | | | | | Merge "ASoC: msmcobalt: Update machine driver to support 32 bit format"Linux Build Service Account2016-10-06
|\ \ \ \ \ \ \
| * | | | | | | ASoC: msmcobalt: Update machine driver to support 32 bit formatAshish Jain2016-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update msmcobalt machine driver to support S32LE format. Also add support of 384Khz for USB_AUDIO_RX. Change-Id: I576bd9c3c776ad5c24a15adf1447a9206dc61b89 Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
* | | | | | | | Merge "ASoc: msm: Enable support for 32 bit format and 384Khz"Linux Build Service Account2016-10-06
|\| | | | | | |
| * | | | | | | ASoc: msm: Enable support for 32 bit format and 384KhzAshish Jain2016-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for 32 bit data format (SNDRV_PCM_FORMAT_S32_LE) and sampling rate of 384Khz. Also update platform drivers to use latest version of pcm media format command ASM_MEDIA_FMT_MULTI_CHANNEL_PCM_V4. Change-Id: I6b7ea860a398a7e4dd5f7e23ac3906ff0c6f2b3e Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
* | | | | | | | Merge "ASoC: msm: qdsp6v2: add support for latest version of media format ↵Linux Build Service Account2016-10-06
|\| | | | | | | | |_|/ / / / / |/| | | | | | | | | | | | | command"
| * | | | | | ASoC: msm: qdsp6v2: add support for latest version of media format commandAshish Jain2016-10-05
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for ASM_MEDIA_FMT_MULTI_CHANNEL_PCM_V4 command. This command adds support to playback/record 32 bit data in 32 bit word and also provides a way to inform DSP about the endianness of the data. Change-Id: I3b013bedde8ccfa97a02e255e237df0cf2de13b8 Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
* | | | | | Merge "ASoC: soc: change audio drivers to use %pK"Linux Build Service Account2016-10-06
|\ \ \ \ \ \
| * | | | | | ASoC: soc: change audio drivers to use %pKXiaojun Sang2016-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change all audio driver to use %pK instead of %p. %pK hides addresses when the users doesn't have kernel permissions. If address information is needed echo 0 > /proc/sys/kernel/kptr_restrict. CRs-Fixed: 1052832 Change-Id: I9ff5cf06b019c566973eb609bf5d37969b98d31d Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
* | | | | | | Merge "ASoC: msmcobalt: Add support for TDM"Linux Build Service Account2016-10-06
|\ \ \ \ \ \ \
| * | | | | | | ASoC: msmcobalt: Add support for TDMJosh Kirsch2016-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for audio over TDM in msmcobalt. Time-division multiplexing (TDM) is a method of transmitting data in the time domain. This can be used to support data rates that exceed that of the transmitted signal or to have up to 8 channel support on a bus that normally supports less in the frequency domain. CRs-fixed: 1070768 Change-Id: I20998435591c44d2ca1a7b6bd5eacac2af0611f6 Signed-off-by: Josh Kirsch <jkirsch@codeaurora.org>
* | | | | | | | Merge "ASoC: wcd934x-dsp-cntl: add support for subsystem restart"Linux Build Service Account2016-10-06
|\ \ \ \ \ \ \ \
| * | | | | | | | ASoC: wcd934x-dsp-cntl: add support for subsystem restartBhalchandra Gajare2016-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the codec DSP is crashed / unresponsive, in order to recover from the crash, it is required to shutdown and restart the DSP. Add support for subsystem restart feature to recover from crashes. CRs-fixed: 1071949 Change-Id: Ibe1918cbf525c41d8fa82fc772b3afe20cac6eb7 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
| * | | | | | | | ASoC: wcd-spi: fix clock disableBhalchandra Gajare2016-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the clock request is performed during init and the clock is kept on assuming that there will be code download event followed by init. This assumption may not always be true and might cause the clock to be enabled when it is really not needed. Change fixes clock disable such that clock is disabled right after init and re-enabled again if code download event is raised. CRs-fixed: 1071949 Change-Id: Icc415e911653012726e5b81b4fc09199560d5691 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
* | | | | | | | | Merge "ASoC: wcd-dsp-mgr: set status before broadcasting post events"Linux Build Service Account2016-10-06
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | ASoC: wcd-dsp-mgr: set status before broadcasting post eventsBhalchandra Gajare2016-10-04
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During image download, the status is set after post download events are broadcasted. This could possibly lead to race condition if other drivers requested to boot the dsp before the status was set. Change makes sure the wdsp status is set prior to broadcasting post download events to avoid possible race conditions. CRs-fixed: 1071949 Change-Id: If3ec6202b4729b24ee839c3a8aa4edf2482d6e59 Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>