summaryrefslogtreecommitdiff
path: root/sound/soc/tegra
AgeCommit message (Collapse)Author
2012-02-23asoc: tegra: aic326x: add support for aic326x on cardhuNikesh Oswal
add support for aic326x on cardhu and also cleanup unused code of t30 voice call since it has never been tested as aic326x is not used on any t30 phone platform yet Change-Id: I32e916f53f6e73031d39bc09afef8ad7f872639b Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/84545 Reviewed-by: Scott Peterson <speterson@nvidia.com>
2012-02-23asoc: tegra: aic326x machine: configure codec as master for voice callNikesh Oswal
Change-Id: I970ab858399113e4ea0d079779a2cb368af90850 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/84539 Reviewed-by: Scott Peterson <speterson@nvidia.com>
2012-02-23asoc: tegra: aic326x machine: register the sw dev before the cardNikesh Oswal
If sw dev is registered after the card then there would be a kernel panic if we try to boot the device with Headset connected because when the card is registered init of every dai link is called from where we register the jack with codec driver and doing so will enable headset interrupts which would try to set switch state for an unregistered switch device Change-Id: Ie951f41028a3459e4e13d021c80c3f830bbcc533 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/84536 Reviewed-by: Scott Peterson <speterson@nvidia.com>
2012-02-23asoc: tegra: aic326x: turn the mic bias on for headset detctionNikesh Oswal
Change-Id: I3d2bb9de12f72fe7c860bdfe740a2d55676a8aa3 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/84533 Reviewed-by: Scott Peterson <speterson@nvidia.com>
2012-02-23asoc: tegra: aic326x: add dapm route for capture pathNikesh Oswal
Change-Id: I433c35f2ada14f273f85d67f8cf18612bd1e72ea Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/84531 Reviewed-by: Scott Peterson <speterson@nvidia.com>
2012-02-23asoc: tegra: aic326x: add support for voice call and bt voice callNikesh Oswal
Change-Id: I773a7c6769ca74d1a02e2d0b8236fdc20af3ecb8 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/84530 Reviewed-by: Scott Peterson <speterson@nvidia.com>
2012-02-23asoc: tegra: aic326x: support bt sco playback and recordingNikesh Oswal
support bt sco playback and recording with bt chip as master and ap-i2s as slave Change-Id: I0e1bcd6fa71a234a90c830195a7eb2015f71a3b0 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/84529 Reviewed-by: Scott Peterson <speterson@nvidia.com>
2012-02-23asoc: tegra: enable playback for TI aic326x codecNikesh Oswal
Change-Id: I39fc88a2647556b261767fa8ec990282ceb65103 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/84527 Reviewed-by: Scott Peterson <speterson@nvidia.com>
2012-02-16asoc: tegra: ALC5640 machine: Add support for HP detectManoj Gangwal
Add support for Headphone detect on Kai. Bug 928046 Change-Id: Ieffb3aed32e57ca3e43f6a1c8d049ac1b433867f Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-on: http://git-master/r/83408 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-02-16asoc: tegra: ALC5640 machine: Enable cdc_en regulatorManoj Gangwal
Add support for cdc_en regulator on kai. Bug 928574 Change-Id: I11590cbd5b7fc91238bde3c7dbe72736117d4457 Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> Signed-off-by: Hao Tang <htang@nvidia.com> Reviewed-on: http://git-master/r/83485 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-02-16asoc: tegra: ALC5640 machine:Add BT Sco supportManoj Gangwal
Changes made to add support of BT Sco for kai. Bug 936626 Change-Id: If01fe20ed94cc5634b581554b668c744fd822fc3 Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-on: http://git-master/r/83072 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-02-13ASoC: tegra: add capture pathRavindra Lokhande
added Line In and digital and analog mic to capture path. Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/78752 (cherry picked from commit 832552a5751502eaf1d3d917368c8d889badb353) Change-Id: I6304aa179a989becbfc3bf6b85e42d28fdbaabf9 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/82712 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2012-02-10asoc: tegra: ALC5639 machine: Add ALC5639 audio codecRakesh Iyer
Changes made to add support of ALC5639 codec for kai. Bug 931371 Signed-off-by: Rakesh Iyer <riyer@nvidia.com> Reviewed-on: http://git-master/r/77953 (cherry picked from commit 481fabd90e34b9a8246d494b0caefa212238c1c2) Change-Id: I1bcc882cb4b8f7bd257b737295061ea1e9e7e41c Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/82731 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Manoj Gangwal <mgangwal@nvidia.com>
2012-02-03asoc: tegra: set proper bit clk for I2S in slave DSP modeNikesh Oswal
Bug: 919350 Reviewed-on: http://git-master/r/77989 Change-Id: I9a8d9a1a4d029f1b312405200fcb485de0fc5767 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/78704 Reviewed-by: Automatic_Commit_Validation_User
2012-02-03asoc: tegra: whistler: add support for bt voice callNikesh Oswal
add support for bt voice call and also make bt as master and i2s as slave for bt-soc playback and record because for bt voice call modem is slave and bt is master Bug: 919350 Reviewed-on: http://git-master/r/77990 Change-Id: I5bbb6cc4b08c5ab1d700ce4d21bbdf9be606e551 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/78703 Reviewed-by: Automatic_Commit_Validation_User
2012-02-03arm: tegra: dma: read transfer count without stopping dma.Laxman Dewangan
Dma user must call the function tegra_dma_get_transfer_count() for knowing transferred count without stopping dma. Change-Id: I5e0060fd8163b285496442268548a90bdd0e294c Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/77800 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-01-30asoc:tegra: Support I2S slave modeScottPeterson
Support I2S slave mode. Disable pll_p_out1 and pll_a to reduce power when in slave mode. Slave mode disabled by default. Reviewed-on: http://git-master/r/76046 Change-Id: I873a11d54f1e037d99c86ff4cec06ee83064902a Signed-off-by: ScottPeterson <speterson@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77765 Reviewed-by: Automatic_Commit_Validation_User
2012-01-30asoc: tegra: max98088: implement an api to get voice call stateNikesh Oswal
Bug: 924817 Reviewed-on: http://git-master/r/77238 Change-Id: Ife3bb3439b4b00d042684500d7ffb6bc00100ba6 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77756 Reviewed-by: Automatic_Commit_Validation_User
2012-01-30asoc: tegra: wm8753: add support for voice callNikesh Oswal
Bug: 919350 Reviewed-on: http://git-master/r/76953 Change-Id: I95611af5e6c12e03cc22fc30c8147e3ef6852615 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77731 Reviewed-by: Automatic_Commit_Validation_User
2012-01-30asoc: tegra: ap20: add functions to enable/tristate the dasNikesh Oswal
Bug: 919350 Reviewed-on: http://git-master/r/76952 Change-Id: Iffc597141a3a5ea528089ce06bf57a4b012eefe8 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77730 Reviewed-by: Automatic_Commit_Validation_User
2012-01-30Revert "ASoC: Tegra: Acquire wake_lock during playback capture"Sumit Bhattacharya
This reverts commit 78d27b4b610fbe7d77e3cf43a3b82e15cf879d37. Bug 916409 Reviewed-on: http://git-master/r/76446 Change-Id: I4288dc4d90b393dd8dbefd7e997b9bfceb49d564 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77305 Reviewed-by: Automatic_Commit_Validation_User
2012-01-30ASoC: tegra: add max98095 audio codec supportRavindra Lokhande
Reviewed-on: http://git-master/r/75964 Change-Id: Iddc1a4ab042aaab00d7959f957b66fc879c76ccc Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/77302 Reviewed-by: Automatic_Commit_Validation_User
2012-01-10asoc: tegra: wm8903 machine: Handle card register failureManoj Gangwal
Add the support for handling the wm8903 sound card registration failure error. Bug 910788 Change-Id: Ib25f9ca4dd7f5ebd417700421625eb2f3bdc7b5e Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-on: http://git-master/r/73694 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit 505788de21a98bbc651a536a56f6594fa589252e) Reviewed-on: http://git-master/r/73963 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10asoc: tegra: ALC5640 machine: Add ALC5640 audio codecManoj Gangwal
Changes made to add support of ALC5640 codec for cardhu. Bug 910788 Change-Id: I134b95a20d1a377eeb534e263fb74c0871e2fd0f Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-on: http://git-master/r/71459 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> (cherry picked from commit 844ef13a8281fe307b1adddcdc440b7e191d8926) Reviewed-on: http://git-master/r/73956 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-10asoc: tegra: max98088 machine: set default bias level to standbyChandrakanth Gorantla
set default bias level to standby Change-Id: I89f375c88efae48fff43fe57e15659b40602dfac Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-on: http://git-master/r/73174 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> (cherry picked from commit d00767b6573367a6827f35c2339e46f68f75cbaf) Reviewed-on: http://git-master/r/73952 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
2012-01-04asoc: tegra: max98088 machine: manage disabling of pll_a clockNikesh Oswal
during suspend if bias is set to off then disable the pll_a and related clock only once this would prevent the kernel warnings Bug: 920911 Change-Id: Id85cba4548894572dfd17e51c8a55707bfba7105 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/72739 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-12-30Revert "ASoC: Tegra WM8753 machine: Disable regulator when not in use"Nikesh Oswal
We must keep the regulator ON always else spurious interrupts are generated. This reverts commit 0bdf658f5cd064e41cbbb12a6d1eff5fc0bd09f9. Bug: 916893 Bug: 918912 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Change-Id: I8effc272b71cf103da6f142b949091db9d953742 Reviewed-on: http://git-master/r/72364 Tested-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2011-12-30asoc: tegra: max98088 machine: add support for voice call recordingNikesh Oswal
Bug: 912897 Change-Id: I3bdc879d7eecea78eace7452fd9b157f68aeea48 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/72355 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2011-12-30asoc: tegra: handling of i2s capture in voice call recordingNikesh Oswal
stop the enabling/disabling of i2s capture from i2s dai in voice call recording usecase because this would be handled by the voice call management functions and also add parameters for voice call record usecase in i2s structures. Bug: 912897 Change-Id: I9df117300121218fe7f258fd8c79092ab3e1f8e1 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/72352 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-12-30asoc: tegra: fix compiler error without CONFIG_PMKen Chang
enclose the init fuction for i2s reg cache with CONFIG_PM Change-Id: I4828059e397c151a5ad853b6a45a553c480ac197 Signed-off-by: Ken Chang <kenc@nvidia.com> Reviewed-on: http://git-master/r/71581 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-12-22ASOC: tegra: voice call support during suspendNikesh Oswal
during voice call, prevent suspend of codec and audio modules, whereas for other mode they are allowed to suspend. Bug: 917672 Change-Id: I1e8ff06fa21084a0187d35258177f22ae112f1ce Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/71174 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-12-21asoc: tegra: modify stepreset on dam src tableSeongho Joo
set step value from 0 to 1 by the spec, with 0 it showed glitch. Bug 909514 Change-Id: Iebb0896592076fac5ffe71cec0806140228851d9 Reviewed-on: http://git-master/r/70960 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2011-12-21asoc: tegra: put the cache init code under macroNikesh Oswal
put the cache init code under CONFIG_PM macro this fixes the build breaks where CONFIG_PM macro is not defined Change-Id: I0d140d52d80a24298afeefcf4e81b3c6b65d465f Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/70939 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-12-15asoc: tegra: init cache values for dam/ahub/apbif registersNikesh Oswal
init cache values for dam/ahub/apbif register by reading the power on reset values in respective driver probe functions bug 911332 Change-Id: I693baeff3e076095d3c7f225f1768a4082f7d305 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/69679 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-12-15ASoC: Tegra: Add support for AP slave mode for Tegra30Sumit Bhattacharya
If AP is set as slave set audio_sync clock as source of i2s controller clock and use pll_a_out0 as i2s controller source in AP master mode. This change is needed to support AP slave mode reliably on Tegra30. Bug 911332 Change-Id: I91e54d1d297c58ad65baac86831bccfbaadf732c Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/69777 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Lokesh Pathak <lpathak@nvidia.com> Tested-by: Lokesh Pathak <lpathak@nvidia.com>
2011-12-15ASoC: Tegra: Pass "i2s" as con_id in clk_getSumit Bhattacharya
This is a preparation change for using dev_id and con_id fields for audio sync clocks. Use con_id field for i2s clock to get proper clock. Bug 911332 Change-Id: I6aa795624379c00075868d8529bff6e131299a40 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/69744 Reviewed-by: Lokesh Pathak <lpathak@nvidia.com> Tested-by: Lokesh Pathak <lpathak@nvidia.com>
2011-12-15ASoC: Tegra: Fix I2s probe failure pathSumit Bhattacharya
Don't free i2s context in I2s platform driver probe failure case since it is statically allocated. Change-Id: Ia1fb7e17493b8906a36e658ded925f0f414aae23 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/69729 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Nikesh Oswal <noswal@nvidia.com>
2011-12-15asoc: tegra: restore i2s/das/spdif registers after suspend for t20Nikesh Oswal
when system resumes from suspend state the i2s/das/spdif registers have power on reset values, this change restores the registers with their prior values from cache Bug: 904530 Change-Id: I35c14d95d2d6bf5bc116a1a80e21f4904c8969e5 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/69715 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-12-15ASoC: Tegra: Fix compiler warningsSumit Bhattacharya
Bug 912637 Change-Id: I05e2d3dcb903bf9d011f9b108a8f65f25ee1d3b5 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/68956 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2011-12-15asoc: tegra: init cache values for i2s registerKen Chang
init i2s->reg_cache[] by reading i2s regs in probe function. bug 911332 Change-Id: I58711b5b8a1866878e9de02144396883df6ff3da Signed-off-by: Ken Chang <kenc@nvidia.com> Reviewed-on: http://git-master/r/69081 Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2011-12-15ASoC: Tegra WM8753 machine: Disable regulator when not in useSumit Bhattacharya
On whistler audio regulator used to remain enabled always independent of whether audio playback/capture is going on or not. Only enable audio regulator when any playback/capture is going on using audio codec. Change-Id: Ifb8bf722434306a429aa08345215efde75c8ab38 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/68695 Reviewed-by: Lokesh Pathak <lpathak@nvidia.com> Tested-by: Lokesh Pathak <lpathak@nvidia.com>
2011-12-15ASoC: Tegra: return accurate pcm pointer positionSumit Bhattacharya
Use DMA driver tegra_dma_get_transfer_count api to get current DMA position and use it to return accurate PCM poiter position. Change-Id: I28906a1f2dd47dd91f03b8a79f53196752be6083 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/68692 Reviewed-by: Lokesh Pathak <lpathak@nvidia.com> Tested-by: Lokesh Pathak <lpathak@nvidia.com>
2011-12-15kernel: sound: soc: Enable voice call dai linkVinod G
Enabling the dai link for voice call devices. Change-Id: Ie89ae4cbc1ae987c56776706c5e4cf1bbd6c8f18 Reviewed-on: http://git-master/r/68575 Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Tested-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-12-15ASoC: Tegra: Acquire wake_lock during playback captureSumit Bhattacharya
Acquire wake_lock from alsa kernel when pcm playback/capture starts and hold it until playack/capture ends. It is needed to prevent device from going into suspend state in middle of audio playback. Change-Id: I71e5fae0268f73a3e57f8d886c1b228d46899ea4 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/68671 Reviewed-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-12-08asoc: tegra: call ahub resume from i2s driverNikesh Oswal
when writing into ahub connection registers for i2s i2s clocks must be enabled hence calling the ahub resume from i2s driver Bug: 908372 Change-Id: Ieb1312f5d98e54882ae0328fffcf7668649dc999 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/68412 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-12-08ASoC: Tegra: WAR to avoid incorrect mic detection eventSumit Bhattacharya
When 3-pin pin is interted in cardhu headset port mic short interrupts get asserted which also triggers mic detection interrupt. As a result ALSA detects presence of mic mistakenly. For cardhu register WM8903 mic short event for mic detection so that mic detection interrupt generated during mic short event gets cancelled. Bug 906524 Change-Id: Icfd9d9d26d171b075eac6e76f35227e43c928e0e Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/68229 Reviewed-by: Scott Peterson <speterson@nvidia.com> Tested-by: Scott Peterson <speterson@nvidia.com>
2011-12-08kernel: sound: soc: Fix TI codec reg access issue.Vinod G
Using snd_soc_write is causing some issue with TI codec. So register read and write are handled locally inside the codec calls. Added checking to continue card register based on codec availability, this help to use either TI codec or wm8753 codec being present in the board. bug 816608 Change-Id: Ie5edd1c70609991c28216bbc3a0ffcafd0f815ab Reviewed-on: http://git-master/r/68044 Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Tested-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-12-08kernel: soc: tegra: Add machine driver for TIcodec.Vinod G
Machine driver for TI codec AIC3262. bug 816608 Change-Id: I4b339b218ec4f2097518d001fb65778c2d8155d3 Reviewed-on: http://git-master/r/67818 Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Tested-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-11-30ASoC: Tegra: WM8903: Support switch classSumit Bhattacharya
Add support to convey HP and mic jack status to switch class. Bug 872652 Change-Id: I2d64c97ef8bf0ab3dfeec3c711ef0e8048bff133 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/55670 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Re41027a605ed344cd0dd90c1bc41656a04afb1c1
2011-11-30asoc: tegra: wm8753: add switch notifier codeNikesh Oswal
Bug: 862023 Change-Id: Ic4ca5d1ab4173147f2b2161a4b45f38d12c2fc78 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/57054 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rc79878ef186bfc5ccec7049ce99806f894c65aa3