summaryrefslogtreecommitdiff
path: root/sound/soc
AgeCommit message (Collapse)Author
2014-05-23soc: codecs: max98090: fix interrupt registrationShreshtha Sahu
This patch clears previous interrupt and installs interrupt handler at the end of device probe. Also it enables jack detection only after handler is installed. This prevents, false/stale interrupt generation and hence device access by interrupt handler even before device probe has completed. Bug 1464724 Change-Id: I5988b500bb5e197c095eb64e254829635115994c Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com> Reviewed-on: http://git-master/r/398891 (cherry picked from commit 9368b1bb2d85286b8ef890d63e6f3d41c63b0bdc) Reviewed-on: http://git-master/r/411451 GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-05-21ASoC: Tegra: Add offload support for norrinRavindra Lokhande
- Add dai link for pcm and compress offload - Enable offload for norrin Change-Id: Ib938673fdd14faf7548dc8048bd6bfa6fab58baf Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/411554 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2014-05-21asoc: tegra: Support 24 bit, 192KHz formatVijay Mali
- Add 192Khz sample rate - Update clock rate for i2s clock - Update ahub clock Bug 1502003 Change-Id: I0013957e22a864670e67e3c808df270a8ca16fa1 Signed-off-by: Vijay Mali <vmali@nvidia.com> Reviewed-on: http://git-master/r/398989 (cherry picked from commit 6f3ec1ce0b301ebf2eb3533a3fd985f25132e4f2) Reviewed-on: http://git-master/r/411871 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-05-21asoc: rt5639: Add 192KHz sample rateVijay Mali
Bug 1502003 Change-Id: Ic90cf2781578adefdf108358ccff94676e6df146 Signed-off-by: Vijay Mali <vmali@nvidia.com> Reviewed-on: http://git-master/r/402848 (cherry picked from commit d90f64b19f2b8ef4f2e77134bc3d538e0c938b97) Reviewed-on: http://git-master/r/411870 GVS: Gerrit_Virtual_Submit Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-05-20ASOC: DPCM: Allow pause state as prev state for stop stateChandrakanth Gorantla
In case of seek, pause <-> stop <-> resume is the general sequence, so allow pause state to come before stop. Bug 1405523 Change-Id: Ib90d5c6cb780bdb5c9cedd33ae114f78603b2649 Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-on: http://git-master/r/401556 Reviewed-by: Deepa Madiregama <dmadiregama@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-05-14ASoC: Tegra: Fix concurrent pcm and compress playbackRavindra Lokhande
- Added path between BE and codec stream - use atomic reference count Bug 1495249 Change-Id: I895d22e1854c53f41362ed2a1cff63d88feb397b Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/405859 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2014-05-06tegra: Remove old SOC/Board supportDan Willemsen
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Change-Id: I06582980f2e9e88ab0e34bc5febc5d939fb77cc4 Reviewed-on: http://git-master/r/404934 (cherry picked from commit d1095251dadc17cb2c4f885f0d5d23359536f02b) Reviewed-on: http://git-master/r/405472 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2014-05-06ASoC: Tegra: Add compress offload volume controlDeepa Madiregama
Add alsa control for volume changes during compress offload playback. Bug 1498475 Change-Id: I5572338648a2fefdcf3095702bcbade35f1b0565 Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com> Reviewed-on: http://git-master/r/399682 Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-04-30Asoc:tegra:rt5639: Fix false headset intr issueSharad Gupta
When the device enters to LP0, resetting of the audio codec makes the HP detection GPIO pin high and causes a false interrupt. If the codec gets reset before the interrupt is disabled by the machine driver, device never goes to LP0 or wakes up from LP0. Added fix to avoid this condition. Bug 1499603 Reviewed-on: http://git-master/r/400786 (cherry picked from commit cb430a1dcc1eab8dc993c5042a4683d81edb1b8d) Change-Id: I5fd498c13a384b501243b13a7faef6aa069aa7ab Signed-off-by: Sharad Gupta <sharadg@nvidia.com> Reviewed-on: http://git-master/r/402750 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit
2014-04-28ASoC: Tegra: fix offload for 64bit platformRavindra Lokhande
Bug 1501400 Change-Id: I50d43d6d042b40475a0594e90495baee63c19c7c Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/399786 GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-04-23ASoc: Tegra: max98090: secondary mic only for t14xNaveen Kumar S
Secondary MIC available in tegra14x platforms only. Hence adding appropriate conditions. Also, DMIC3 and DMIC4 are declared for max98091 and not max98090. bug 1457218 Change-Id: Ieeaff6890a195a4620f80b17ea9a9e0a1ff975c9 Signed-off-by: Naveen Kumar S <nkumars@nvidia.com> Reviewed-on: http://git-master/r/394119 (cherry picked from commit 3964e8be2fa3bc3e406be5e4dccbf980cc97b1fb) Reviewed-on: http://git-master/r/396361 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2014-04-23asoc: tegra: add tegra machine driverArun Kannan
Add base machine driver for Tegra platforms without codec. Bug 1448381 Change-Id: Ibd391b878abadacaebd5ee1ee2d38a2eec5d526c Signed-off-by: Arun Kannan <akannan@nvidia.com> Reviewed-on: http://git-master/r/385846 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-04-23asoc: tegra: spdif: update registersAndy Park
Update registers to meet t12x spdif controller specs Bug 1448381 Change-Id: I67f9f1e7fe2a50028214a784d0aedabf3e3691d1 Signed-off-by: Andy Park <andyp@nvidia.com> Signed-off-by: Arun Kannan <akannan@nvidia.com> Reviewed-on: http://git-master/r/385845 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> GVS: Gerrit_Virtual_Submit
2014-04-22ASoC: Tegra: Fix concurrent offload playbackChandrakanth Gorantla
taking care of avp state and stop dma in case of multiple streams Bug 1392136 Change-Id: Icc192816a10e8fab698ed464c763ef25c75ecf36 Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-on: http://git-master/r/398627 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2014-04-22ASoC: Tegra: Decrease ucode sizeDeepa Madiregama
Decrease the ucode size for offload playback Change-Id: I0e758f6295e5aa18e46f89c8e13a7ac5f3447994 Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com> Reviewed-on: http://git-master/r/398626 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2014-04-14ASoC: Tegra: fix unchecked return valueDeepak Nibade
Fix Coverity issue of unchecked error return value of a function Coverity id : 26068 Bug 1416640 Change-Id: I21b560985b1e36a98f5ce0c8b8a2566dc7a02e25 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/395192 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-04-10ASoC: tegra: Fix GCC 4.9 compile errorDan Willemsen
Was a rebase error that I made in: asoc: tegra: Add support for K3.10 audio GCC error: sound/soc/tegra/tegra30_i2s.c: In function 'tegra30_i2s_hw_params': sound/soc/tegra/tegra30_i2s.c:669:32: error: right-hand operand of comma expression has no effect [-Werror=unused-value] reg = TEGRA30_I2S_CIF_TX_CTRL, val; ^ Change-Id: Iff8955270e3b5938dfd5e3d5eae949697853d239 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-on: http://git-master/r/394520 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-04-07ASoC: tegra_alt: Fix I2S shutdown sequenceArun Shamanna Lakshmi
1. Soft reset APBIF and wait for tx/rx fifo to be disabled/empty 2. Soft reset I2S post the DAPM widget power down Bug 1492370 Change-Id: Iadbfa86a6e1937e33c7bc920e0ea4847e18aa7c0 Signed-off-by: Arun Shamanna Lakshmi <aruns@nvidia.com> Signed-off-by: Songhee Baek <sbaek@nvidia.com> Reviewed-on: http://git-master/r/391633 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Sonny Jamuar <sjamuar@nvidia.com> Reviewed-by: Gajanan Bhat <gbhat@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-26asoc: tegra: Fix memory leakVijay Mali
Bug 1484645 Change-Id: Ic55505b6dc7fec7e57e3f95cfa8f73402ba587df Signed-off-by: Vijay Mali <vmali@nvidia.com> Reviewed-on: http://git-master/r/384329 (cherry-picked from commit 593dadabaa17b676c899ca159f76107697fd90c6) Reviewed-on: http://git-master/r/386304 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-26ASoC: tegra: fix uninitialized variables in set_fmtSharad Gupta
Reverts commit 7e79ded583aadc80d4256aeca789be3c1867c617. Fixes the audio playback on Norrin. Bug 1484889 Change-Id: I6e59af8f29c6636ccd00353b22c417cb9fa4dfcb Signed-off-by: Sharad Gupta <sharadg@nvidia.com> Reviewed-on: http://git-master/r/386327 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-03-21ASoC: Tegra: enable support for laguna erss boardsShreshtha Sahu
Enable max98090 support for laguna ers-s boards Bug 1377308 Bug 1457229 Change-Id: I8b0e81a6ff99a5673e4831cb2371c8b01e64890e Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com> Reviewed-on: http://git-master/r/362681 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2014-03-20soc: codecs: max98090: Add DT supportShreshtha Sahu
Add DT supports for MAX98090. Bug 1377308 Change-Id: I316e4df7b12b20b7f546ef949acde2ae4ee36ae3 Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com> Reviewed-on: http://git-master/r/362682 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
2014-03-19SoC: tegra-alt: vcm30t124b: Fix ak4618 hw_paramSonghee Baek
This change has three main changes. 1. Fix ak4618 hw_param to support only 48kHz. Any necessary rate conv is applied through asound.conf. 2. Map ak4817 hw_param ops to APBIF4,5,6,7 to set proper hw_param in codec dai and cpu dai. 3. Fix ADX1-OUT0 CPU DAI name, it causes recording failure on hw:0,4. Bug 1483326 Bug 1413475 Change-Id: I97da13f366bdcf5a77ad60acde8141af290d4cd6 Signed-off-by: Songhee Baek <sbaek@nvidia.com> Reviewed-on: http://git-master/r/383230 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com> Tested-by: Arun Shamanna Lakshmi <aruns@nvidia.com> Reviewed-by: Gajanan Bhat <gbhat@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-19ASoC: Tegra: Add offload support for ardbegRavindra Lokhande
Integrate offload platform driver interface with RT5639 codec which will add offload rendering support for ardbeg. Bug 1399922 Change-Id: I52ef0b1ff1a01592b83d7a4df83aa0954ac17260 Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/383071 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-03-19ASoC: Tegra: Modify compress/pcm offload callbackRavindra Lokhande
Change compress/pcm offload callback to support eos as argument. This argument will be used to convey end of stream information. Bug 1399922 Change-Id: I6fe4638f4aaed7d779a14e799d0b11b62704cd31 Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/383064 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-03-18Revert "ASoC: tegra: fix uninitialized variables in set_fmt"Deepak Nibade
This reverts commit 05687bd4a14b3970d1f903def34aa421634f31fe. Commit 05687bd4 from upstream kernel breaks audio on Norrin. (commit was merged in donwstream kernel while upgrading to K3.10.33 version) Revert this commit to fix the issue. Original Bug 1456092 Bug 1481593 Change-Id: Ic646c9239596815be0987e9f1c033ff1adbc3689 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/383074 GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-03-13Merge branch 'linux-3.10.33' into dev-kernel-3.10Deepak Nibade
Bug 1456092 Change-Id: Ic563f451abb08754fea0e2bbf0ce065ca2e6e770 Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
2014-03-13Merge branch 'linux-3.10.33' into dev-kernel-3.10Deepak Nibade
Bug 1456092 Change-Id: I3021247ec68a3c2dddd9e98cde13d70a45191d53 Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
2014-03-12ASoC: Tegra: Add offload support for RT5640Sumit Bhattacharya
Integrate offload platform driver interface with RT5640 codec which will add offload rendering support for dalmore. Add support for no_pcm mode in tegra pcm platform driver. Also add device specific stream name to I2s DAI so that it can be used as DPCM node. Bug 1399922 Change-Id: Icc01d7499d8e1585a76b93d6bc3337e7102194f6 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/362762 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-12ASoC: Tegra: Add offload rendering supportSumit Bhattacharya
Add tegra offload support for pcm and compress data rendering. Using this interface CPU can offload pcm or compress audio rendering to AVP. Bug 1399922 Change-Id: I0e750f5f6f1a6eb1f624f07d91a3cb47b11365e1 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/362761 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-09asoc: tegra: ignore delayed close of audio devicesVijay Mali
Ignore dapm delayed shutdown for music and voice devices.This helps close voice and music streams immediately after pcm-close. Delayed shutdown causes disabling dapm paths that are used by other devices. Bug 1456394 Change-Id: Ib6d597507ef2eebad04a6874d472fce326581cce Signed-off-by: Vijay Mali <vmali@nvidia.com> Reviewed-on: http://git-master/r/375572 (cherry picked from commit 2432dd430640bf8bb8037977d0a8b110fab59d78) Reviewed-on: http://git-master/r/377689 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-09Asoc: tegra: Fix audio mixing issueManoj Gangwal
There is hardware issue in t114 & t124 DAM. It does not handle mixing and down sampling simultaneously. This a work around to use 2 DAM for doing SRC and mixing separately. Bug 1461763 Change-Id: Ib9d728b0c2eba7a9c243d499cf2a0fb160e318e5 Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-on: http://git-master/r/376019 (cherry picked from commit b91b1fb99f16a9855703cb33a13e48753d7ec35d) Reviewed-on: http://git-master/r/378210 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-03-07Asoc:Avoid syncing dapm paths when ignore-suspend is setManoj Gangwal
This change will prevent re-syncing of dapm paths when ignore-suspend is set. Bug 1437986 Change-Id: I051e681ba0e2483148ff8c452af69ca12e1c9943 Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> (cherry picked from commit 73492253bb19987a3323f45391442b8398c23fed) Reviewed-on: http://git-master/r/378217 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-06ASoC: wm8958-dsp: Fix firmware block loadingLars-Peter Clausen
commit 548da08fc1e245faf9b0d7c41ecd8e07984fc332 upstream. The codec->control_data contains a pointer to the device's regmap struct. But wm8994_bulk_write() expects a pointer to the parent wm8998 device. The issue was introduced in commit d9a7666f ("ASoC: Remove ASoC-specific WM8994 I/O code"). Fixes: d9a7666f ("ASoC: Remove ASoC-specific WM8994 I/O code") Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06ASoC: sta32x: Fix array access overflowTakashi Iwai
commit 025c3fa9256d4c54506b7a29dc3befac54f5c68d upstream. Preset EQ enum of sta32x codec driver declares too many number of items and it may lead to the access over the actual array size. Use SOC_ENUM_SINGLE_DECL() helper and it's automatically fixed. Signed-off-by: Takashi Iwai <tiwai@suse.de> Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06ASoC: sta32x: Fix wrong enum for limiter2 release rateTakashi Iwai
commit b3619b288b621e63f66908045f48495869a996a6 upstream. There is a typo in the Limiter2 Release Rate control, a wrong enum for Limiter1 is assigned. It must point to Limiter2. Spotted by a compile warning: In file included from sound/soc/codecs/sta32x.c:34:0: sound/soc/codecs/sta32x.c:223:29: warning: ‘sta32x_limiter2_release_rate_enum’ defined but not used [-Wunused-variable] static SOC_ENUM_SINGLE_DECL(sta32x_limiter2_release_rate_enum, ^ include/sound/soc.h:275:18: note: in definition of macro ‘SOC_ENUM_DOUBLE_DECL’ struct soc_enum name = SOC_ENUM_DOUBLE(xreg, xshift_l, xshift_r, \ ^ sound/soc/codecs/sta32x.c:223:8: note: in expansion of macro ‘SOC_ENUM_SINGLE_DECL’ static SOC_ENUM_SINGLE_DECL(sta32x_limiter2_release_rate_enum, ^ Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06ASoC: sta32x: Fix cache syncLars-Peter Clausen
commit 70ff00f82a6af0ff68f8f7b411738634ce2f20d0 upstream. codec->control_data contains a pointer to the regmap struct of the device, not to the device private data. Use snd_soc_codec_get_drvdata() instead. The issue was introduced in commit 29fdf4fbbe ("ASoC: sta32x: Convert to regmap"). Fixes: 29fdf4fbbe (ASoC: sta32x: Convert to regmap) Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06ASoC: da732x: Mark DC offset control registers volatileMark Brown
commit 75306820248e26d15d84acf4e297b9fb27dd3bb2 upstream. The driver reads from the DC offset control registers during callibration but since the registers are marked as volatile and there is a register cache the values will not be read from the hardware after the first reading rendering the callibration ineffective. It appears that the driver was originally written for the ASoC level register I/O code but converted to regmap prior to merge and this issue was missed during the conversion as the framework level volatile register functionality was not being used. Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06ASoC: wm8770: Fix wrong number of enum itemsTakashi Iwai
commit 7a6c0a58dc824523966f212c76322d47c5b0e6fe upstream. wm8770 codec driver defines ain_enum with a wrong number of items. Use SOC_ENUM_DOUBLE_DECL() macro and it's automatically fixed. Signed-off-by: Takashi Iwai <tiwai@suse.de> Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-06ASoC: max98090: sync regcache on entering STANDBYDylan Reid
commit c42c8922c46d33ed769e99618bdfba06866a0c72 upstream. Sync regcache when entering STANDBY from OFF. ON isn't entered with OFF as the current state, so the registers were not being re-synced after suspend/resume. The 98088 and 98095 already call regcache_sync from STANDBY. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-05ASoC: tegra-alt: fix sample rate change in monoSonghee Baek
I2S hw doesn't support mono so we convert mono to stereo. So I2S bit count value should be same as stereo in mono case. Bug 1411049 Change-Id: I7db961049788846ee28d0baee5e81e1bd6d1d1dd Signed-off-by: Songhee Baek <sbaek@nvidia.com> Reviewed-on: http://git-master/r/373793 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Gajanan Bhat <gbhat@nvidia.com> Reviewed-by: Bob Johnston <bjohnston@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-03-03Asoc:Alc5639: Fix HS det. issue in BIAS OFF stateManoj Gangwal
- This is the fix for the IRQ based headset detection in BIAS OFF state. - Change the min codec state to BIAS OFF when it is in idle. Bug 1439253 Bug 1423334 Bug 1422595 Bug 1422552 Bug 1432969 Change-Id: If97867e5071a0c966eba6feec31836aba88a0c27 Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-on: http://git-master/r/361326 (cherry picked from commit 9822ab695fb87e5bbe5d264610dded10d9e6504c) Reviewed-on: http://git-master/r/374087 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2014-03-03Asoc: tegra: Add Dual Mic support for voice callManoj Gangwal
For dual mic support in voice call , codec also should run at BB sample rate i.e 16k 1) Remove the SRC from UL 2) Add SRC in DL to mix the system sound Bug 1454569 Bug 1467243 Change-Id: I1710cb0fd3872a98ac32a61612d26e6a1b4f738d Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-on: http://git-master/r/364308 (cherry picked from commit fa6206fc1a152fa2d29166ab4a2c61608c99669b) Reviewed-on: http://git-master/r/374101 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2014-02-18ASoC: vcm30t124: Restrict fs=48kHz for AD1937Arun Shamanna Lakshmi
The machine driver supports only 48kHz sampling rate at the input and output of AMX/ADX. Any necessary rate conv is applied through asound.conf Bug 1457522 Change-Id: I80da354bc68589e58d37a64005ae77876731cd7b Signed-off-by: Arun Shamanna Lakshmi <aruns@nvidia.com> Reviewed-on: http://git-master/r/366266 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Gajanan Bhat <gbhat@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-02-13ASoC : compress: Ensure proper hw_param is passedSumit Bhattacharya
Ensure proper sample rate and channel information is passed to BE DAI hw_param when called from compressed FE DAI. Bug 1399922 Change-Id: Iecd5f61ae84c91050a9c6f8ab2cd49f7699388b3 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/361956 Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-02-12ASoC: dapm: Make sure we only create one widget per DAI.Liam Girdwood
Sometimes more than 1 widget per DAI can be created when the DAI is embedded with a codec or platform component. Change-Id: I3208d2be35a7d1afc789c5623e7ae97f9f3667f8 Signed-off-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/361955 Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-02-06ASoC: wm5110: Extend SYSCLK patch file for rev DCharles Keepax
commit 34354792432b6e0a3b156819a1a19716c50d3473 upstream. Latest evaluation of the the device has given some patch file additions for improved performance. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-06ASoC: adau1701: Fix ADAU1701_SEROCTL_WORD_LEN_16 constantLars-Peter Clausen
commit e20970ada3f699c113fe64b04492af083d11a7d8 upstream. The driver defines ADAU1701_SEROCTL_WORD_LEN_16 as 0x10 while it should be b10, so 0x2. This patch fixes it. Reported-by: Magnus Reftel <magnus.reftel@lockless.no> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-06ASoC: tegra-alt: vcm30t124: Add dai link for spdifSonghee Baek
This change is for adding spdif dai in vcm30t124 machine driver. Bug 1423733 Change-Id: I1a0bfed96092d0b18b6b6b8ece2b742de3054630 Signed-off-by: Songhee Baek <sbaek@nvidia.com> Reviewed-on: http://git-master/r/344452 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bob Johnston <bjohnston@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-02-05ASoC: tegra-alt: fix checking error case.Songhee Baek
To register max9487, this machine driver uses i2c_new_device, i2c_new_device returns NULL when it is error case, not a error code. So, IS_ERR is not proper to check the error. Bug 1425688 Change-Id: I7ee323bfcbc546abb2b63dc7e35f9100ffd85290 Signed-off-by: Songhee Baek <sbaek@nvidia.com> Reviewed-on: http://git-master/r/362965 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Gajanan Bhat <gbhat@nvidia.com> Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com> Reviewed-by: Bob Johnston <bjohnston@nvidia.com> Reviewed-by: Sandeep Trasi <strasi@nvidia.com>