7 years agoasoc: codecs: aic326x: enable the headset interrupts after jack registration
Nikesh Oswal [Wed, 8 Feb 2012 18:33:44 +0000]
asoc: codecs: aic326x: enable the headset interrupts after jack registration

Change-Id: I682ccc9ba44f82b8acf836c1703d5d54419da54b
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84535
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Ra9a55bac3bbda84008a65174407ad8947d2e1fac

7 years agoasoc: codecs: aic326x: change the init values of aic326x registers
Nikesh Oswal [Tue, 7 Feb 2012 20:56:42 +0000]
asoc: codecs: aic326x: change the init values of aic326x registers

change the init values of aic326x registers to keep unrequired
codec elements powered off to save power, these codec elements would
be turned on when required by dapm

Change-Id: Id843fae2ca1f30b77c402da7ac24e89fb04828b6
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84534
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Rc50f0662ab7f3a2a1b66f31228466ec5ecf2d5ce

7 years agoasoc: tegra: aic326x: turn the mic bias on for headset detction
Nikesh Oswal [Tue, 7 Feb 2012 18:24:53 +0000]
asoc: tegra: aic326x: turn the mic bias on for headset detction

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>

Rebase-Id: R2911283c200bcb1135dba7592fd66103b0f0fb00

7 years agoasoc: codecs: aic326x: add mixer controls for configuring CM modes
Nikesh Oswal [Tue, 7 Feb 2012 15:25:07 +0000]
asoc: codecs: aic326x: add mixer controls for configuring CM modes

add mixer controls for configuring CM modes and use the
non-inverting modes for speaker and receiver mixers

Change-Id: I247ccea17d08dc92ac035d6e8070fb146d26b7f5
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84532
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R91e6f6968debf4f634471d2f452f16bd874a1ce8

7 years agoasoc: tegra: aic326x: add dapm route for capture path
Nikesh Oswal [Tue, 7 Feb 2012 15:24:02 +0000]
asoc: tegra: aic326x: add dapm route for capture path

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>

Rebase-Id: Rdd17b0cb9f30923afbb087246c143c9047357f89

7 years agoasoc: tegra: aic326x: add support for voice call and bt voice call
Nikesh Oswal [Sat, 4 Feb 2012 06:16:15 +0000]
asoc: tegra: aic326x: add support for voice call and bt voice call

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>

Rebase-Id: Rc6c9d27fdbd75a378fad31d07f5d90b2c6e2d7a3

7 years agoasoc: tegra: aic326x: support bt sco playback and recording
Nikesh Oswal [Sat, 4 Feb 2012 05:11:08 +0000]
asoc: tegra: aic326x: support bt sco playback and recording

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>

Rebase-Id: Ra636b69e7851a4070d8f3b9ba1b60e65f8a98080

7 years agosound: soc: codecs: update the TI codec driver for K39
Nikesh Oswal [Fri, 3 Feb 2012 14:47:20 +0000]
sound: soc: codecs: update the TI codec driver for K39

Change-Id: If40c181227981696961d3c563008261e5324e807
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84528
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Re837191a3e98db7396584e73a842c8a74a9ebdf8

7 years agoasoc: tegra: enable playback for TI aic326x codec
Nikesh Oswal [Fri, 3 Feb 2012 14:42:59 +0000]
asoc: tegra: enable playback for TI aic326x codec

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>

Rebase-Id: R96ecd116602059a05f2d2e25835fe45e66029eac

7 years agoasoc: tegra: ALC5640 machine: Add support for HP detect
Manoj Gangwal [Mon, 13 Feb 2012 09:41:09 +0000]
asoc: tegra: ALC5640 machine: Add support for HP detect

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>

Rebase-Id: R60dad39051b136e21d143de0812cf2f13b6c0d4a

7 years agoasoc: rt5639: Write the right device id
Kerwin Wan [Sun, 12 Feb 2012 04:13:45 +0000]
asoc: rt5639: Write the right device id

The value of reset register of ALC5639 is 0x0008
instead of 0x000c.

bug 931371

Change-Id: I5fbf31411ddab2358d61f998f74a7b1f8c151312
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/83318
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Tested-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

Rebase-Id: R476483e1f7f2794fa55725800971a0d4398fa72b

7 years agoasoc: codecs: Add Suspend/Resume support for ALC5640
Manoj Gangwal [Fri, 10 Feb 2012 09:14:55 +0000]
asoc: codecs: Add Suspend/Resume support for ALC5640

- Added suspend/resume support for ALC5640
- Fix for I2S1 interface

Bug 936013

Change-Id: I60b0eb224e9475b722ecb9e2fb8bf0a6dae12767
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/83058
Reviewed-by: Johnny Qiu <joqiu@nvidia.com>
Tested-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rb431343f60dcf55b3e41368a67792ee10505c29e

7 years agoasoc: tegra: ALC5640 machine: Enable cdc_en regulator
Manoj Gangwal [Mon, 13 Feb 2012 14:05:02 +0000]
asoc: tegra: ALC5640 machine: Enable cdc_en regulator

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>

Rebase-Id: R72497c3e1b349fc6117a53724aa47d91d197359e

7 years agoasoc: tegra: ALC5640 machine:Add BT Sco support
Manoj Gangwal [Tue, 7 Feb 2012 12:43:28 +0000]
asoc: tegra: ALC5640 machine:Add BT Sco support

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>

Rebase-Id: Radd4c741488e562c976ad24566ce63e91be2de8b

7 years agoASoC: tegra: add capture path
Ravindra Lokhande [Wed, 1 Feb 2012 14:28:41 +0000]
ASoC: tegra: add capture path

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>

Rebase-Id: Ra181757fa6286fc8753782bea2a45db7c43b033b

7 years agoALSA:hda: add alsa control for query of device
Sayak Ghosh Choudhury [Tue, 31 Jan 2012 15:35:05 +0000]
ALSA:hda: add alsa control for query of device

alsa control is added to facilitate querying ac3 decode capability of
connected device. ac3 decode capability of the connected device is
updated in the ELD buffer. That information is updated in the
ALSA control structure.

Bug 909141
Bug 904553
Bug 920831

Change-Id: I81af196fc5dd85c5c87691393cf2f079611f9b47
Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com>
Reviewed-on: http://git-master/r/83067
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

Rebase-Id: R70cf80867ed43840fa8f5549e00613cd25ae9508

7 years agoasoc: codecs: Fix build break for ALC5639 codec
Rakesh Iyer [Mon, 30 Jan 2012 21:42:46 +0000]
asoc: codecs: Fix build break for ALC5639 codec

The vendor supplied driver has to be fixed to work on older kernels.

Bug 931371

Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/78278
(cherry picked from commit ffce206b2d67bb9618a97d08e88c6ae25ba79baa)

Change-Id: Ifd8712758307cd4f31526cc050c62a89187a7c8d
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/82733
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>

Rebase-Id: Ra8a2e2732df5ef3a5a851f3c4eb8e988623b8f84

7 years agoasoc: codecs: Add vendor supplied files for ALC5639 codec
Rakesh Iyer [Mon, 30 Jan 2012 21:40:40 +0000]
asoc: codecs: Add vendor supplied files for ALC5639 codec

Add files for ALC5639 codec as provided by vendor.

Bug 931371

Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/78277
(cherry picked from commit b45ab605accb68fd303deec5ed962f213047f9bf)

Change-Id: I6c19e13c3dfec394cef812a5be1bc2ee5d58751b
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/82732
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Manoj Gangwal <mgangwal@nvidia.com>

Rebase-Id: R6aa80918351ddc222bef432c7d6956d61492febd

7 years agoasoc: tegra: ALC5639 machine: Add ALC5639 audio codec
Rakesh Iyer [Sun, 29 Jan 2012 06:17:59 +0000]
asoc: tegra: ALC5639 machine: Add ALC5639 audio codec

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>

Rebase-Id: R9411f0640082c8f8448f45cbf4212b449ac278f6

7 years agoasoc: codecs: Add support for ALC5639 codec
Rakesh Iyer [Sun, 29 Jan 2012 06:14:33 +0000]
asoc: codecs: Add support for ALC5639 codec

Add support for ALC5639 codec present in the KAI A01 board.

Bug 931371

Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/77952
(cherry picked from commit 1747f1003be6413e0e173dee39b25afcbe522528)

Change-Id: I5180d4ed669c4100ca29e6ed508406e69a88fe88
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/82730
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>

Rebase-Id: R00f66549e081652ee8cf56351ff2116f738380e0

7 years agoarm: tegra: Add ALC5640 audio codec header file
Pritesh Raithatha [Thu, 9 Feb 2012 10:21:24 +0000]
arm: tegra: Add ALC5640 audio codec header file

Bug 927513

Change-Id: Ic594fe82f004c600dc369d8323a984c7e3ec4ee7
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/82729
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>

Rebase-Id: R0c65578818542c792b3c11644e5531e6506de177

7 years agoasoc: tegra: set proper bit clk for I2S in slave DSP mode
Nikesh Oswal [Mon, 30 Jan 2012 06:10:40 +0000]
asoc: tegra: set proper bit clk for I2S in slave DSP mode

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

Rebase-Id: R6469aa277ad30fcbe0604a099a46aebaf972ccef

7 years agoasoc: tegra: whistler: add support for bt voice call
Nikesh Oswal [Mon, 30 Jan 2012 06:16:34 +0000]
asoc: tegra: whistler: add support for bt voice call

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

Rebase-Id: Rcc73ff68874e5a7f7ca25c932b4ee8538df1a777

7 years agoarm: tegra: dma: read transfer count without stopping dma.
Laxman Dewangan [Fri, 27 Jan 2012 13:20:37 +0000]
arm: tegra: dma: read transfer count without stopping dma.

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>

Rebase-Id: Re945b9a775ee582c20ae71d0331da22bcc06ddcd

7 years agoasoc:tegra: Support I2S slave mode
ScottPeterson [Wed, 18 Jan 2012 01:32:11 +0000]
asoc:tegra: Support I2S slave mode

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

Rebase-Id: R09840c007957de6359b2cbebc04d79367e25b913

7 years agoasoc: tegra: max98088: implement an api to get voice call state
Nikesh Oswal [Wed, 25 Jan 2012 06:47:52 +0000]
asoc: tegra: max98088: implement an api to get voice call state

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

Rebase-Id: Rc2215c37300c49b7a9492eaa9332558fbcfaf6e0

7 years agotegra_audio: declare an api for getting voice call state
Nikesh Oswal [Wed, 25 Jan 2012 06:46:15 +0000]
tegra_audio: declare an api for getting voice call state

Bug: 924817

Reviewed-on: http://git-master/r/77236

Change-Id: Iea767c952cfac8cb1643e28b7e29e43ad298909e
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77755
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: R1b0df82cfcb688d3dd64147054ab9a5eb11992d9

7 years agoasoc: wm8903: Fix clock functions
ScottPeterson [Wed, 18 Jan 2012 00:51:20 +0000]
asoc: wm8903: Fix clock functions

Clock function for non-integral of sample
rate clocks does not work correctly and
generates incorrect sample rate.

Signed-off-by: ScottPeterson <speterson@nvidia.com>

Reviewed-on: http://git-master/r/75792

Change-Id: I39977c9e2b647d4eabc8d9209c2d05665f708ab0
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77752
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: Re4732d365852786f1559a28b7b5da76ddd1cf790

7 years agoasoc: codecs: wm8753: allow to change the dai mode even when codec is busy
Nikesh Oswal [Tue, 24 Jan 2012 06:50:22 +0000]
asoc: codecs: wm8753: allow to change the dai mode even when codec is busy

In Voice Call when ringtone stream is opened the codec is busy and the
call mode needs to be set before closing the ringtone stream hence we
put the logic in codec driver to enable dai mode change even when codec
is busy

Bug: 919350

Reviewed-on: http://git-master/r/76954

Change-Id: Iaf7176b3a7f72709140e29c2c6071ab4101ec418
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77732
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: R6de6624eb26e30c2b9df7c86449557072217a0cc

7 years agoasoc: tegra: wm8753: add support for voice call
Nikesh Oswal [Tue, 24 Jan 2012 06:49:32 +0000]
asoc: tegra: wm8753: add support for voice call

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

Rebase-Id: Re2081c2ba847e7e0969b34bbc7e4d9e46d0fe3c7

7 years agoasoc: tegra: ap20: add functions to enable/tristate the das
Nikesh Oswal [Tue, 24 Jan 2012 06:48:04 +0000]
asoc: tegra: ap20: add functions to enable/tristate the das

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

Rebase-Id: R3a79308bfadcdc95fcb3172e68e06dadb005302d

7 years agoASoC: tegra: add max98095 audio codec support
Ravindra Lokhande [Wed, 18 Jan 2012 14:58:49 +0000]
ASoC: tegra: add max98095 audio codec support

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

Rebase-Id: R52113fe957955166b10fb18ac1fc734c4c9c3c50

7 years agoASoC: WM8903: Use 2x of miniumum bitclk in master mode
Sumit Bhattacharya [Tue, 17 Jan 2012 13:56:18 +0000]
ASoC: WM8903: Use 2x of miniumum bitclk in master mode

Instead of using tight bitclk use 2x of minimum bitclk requirement
in codec master mode. This change is needed to have clean audio
in codec master mode on Tegra30 based cardhu platform.

Bug 915107

Change-Id: Ia59e1a906415ad8fd1ed324ab4dabef61746b62f
Reviewed-on: http://git-master/r/75706
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/76467
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: R613dc79c595945bcdd726d714cffdf92bb4f14c8

7 years agoALSA: HDA: Fix MODPOST errors
Sumit Bhattacharya [Tue, 17 Jan 2012 12:48:57 +0000]
ALSA: HDA: Fix MODPOST errors

Bug 923312

Change-Id: I7c68f261989d2ca1ef7b273b7d41a519bc91c868
Reviewed-on: http://git-master/r/75700
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/76466
Reviewed-by: Automatic_Commit_Validation_User

Rebase-Id: Re6280c8ae2fdfadb5fc6be30b38184b342bebad4

7 years agoALSA: HDA: change hd-audio as freezable workqueue
Haley Teng [Wed, 4 Jan 2012 14:31:17 +0000]
ALSA: HDA: change hd-audio as freezable workqueue

bug 921335

Change-Id: Ie5810536f1693a93c365a8cd9a51e4e9906d8c1a
Signed-off-by: Haley Teng <hteng@nvidia.com>
Reviewed-on: http://git-master/r/74904
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/75546
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R5df399f2c92098eb335aa08fc5f2973b7c860699

7 years agoasoc: tegra: wm8903 machine: Handle card register failure
Manoj Gangwal [Fri, 6 Jan 2012 09:34:49 +0000]
asoc: tegra: wm8903 machine: Handle card register failure

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>

Rebase-Id: R684a4ef3fa30f3ee3d8cf2809207ecac408d7039

7 years agoasoc: codecs: Remove suspend/resume for ALC5640
Manoj Gangwal [Thu, 5 Jan 2012 12:32:56 +0000]
asoc: codecs: Remove suspend/resume for ALC5640

Implementation of suspend/resume functionality
is not proper for ALC5640 codec , so remove it
temporarily.

Bug 910788

Change-Id: I243c327602a45a3084befd17a1e722e4d844e502
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/73478
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
(cherry picked from commit 3e24bcc4df716bd1e1f3772300aaa9988319f91a)
Reviewed-on: http://git-master/r/73962
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R9dd85b21c54915cea5bc617ea7dd7a177ad6c563

7 years agoasoc: tegra: ALC5640 machine: Add ALC5640 audio codec
Manoj Gangwal [Tue, 20 Dec 2011 15:31:20 +0000]
asoc: tegra: ALC5640 machine: Add ALC5640 audio codec

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>

Rebase-Id: Ra24ac935e75388fde0479279d3de6bba34addbba

7 years agoasoc: tegra: max98088 machine: set default bias level to standby
Chandrakanth Gorantla [Wed, 4 Jan 2012 11:24:21 +0000]
asoc: tegra: max98088 machine: set default bias level to standby

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>

Rebase-Id: R0ac625963660c8a67c6351727730605652caf99f

7 years agoasoc: tegra: max98088 machine: manage disabling of pll_a clock
Nikesh Oswal [Fri, 30 Dec 2011 10:33:03 +0000]
asoc: tegra: max98088 machine: manage disabling of pll_a clock

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>

Rebase-Id: R660a1e6ee4b8ccf1e71358cefdf61a126b894045

7 years agoRevert "ASoC: Tegra WM8753 machine: Disable regulator when not in use"
Nikesh Oswal [Wed, 28 Dec 2011 09:37:36 +0000]
Revert "ASoC: Tegra WM8753 machine: Disable regulator when not in use"

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>

Rebase-Id: Rd97b93adc69a7f0e23ff8cc9662c4abf39ad8699

7 years agoasoc: tegra: max98088 machine: add support for voice call recording
Nikesh Oswal [Wed, 28 Dec 2011 09:03:22 +0000]
asoc: tegra: max98088 machine: add support for voice call recording

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>

Rebase-Id: R1e070e8ab558ab34cfd259189b6a2684e48384ea

7 years agoasoc: tegra: handling of i2s capture in voice call recording
Nikesh Oswal [Wed, 28 Dec 2011 08:56:51 +0000]
asoc: tegra: handling of i2s capture in voice call recording

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>

Rebase-Id: R004f0ff546ec28e0e0b36c7332f5f9733fc71d50

7 years agoasoc: codecs: Add ALC5640 audio codec.
Manoj Gangwal [Tue, 20 Dec 2011 14:58:46 +0000]
asoc: codecs: Add ALC5640 audio codec.

Changes made to add support of ALC5640 codec
for cardhu and support wm8903 codec also without
need for code recompilation.

Bug 910788

Change-Id: Iace74293a44c38eaae516552f03d8bfa6bfe936f
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/71455
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Re6463a1f9f9eb686049e830efd5ff2a75298bf2c

7 years agoasoc: tegra: fix compiler error without CONFIG_PM
Ken Chang [Wed, 21 Dec 2011 05:14:47 +0000]
asoc: tegra: fix compiler error without CONFIG_PM

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>

Rebase-Id: R1b55a81dbab500c5ac28a4cc2ebc25dd92035416

7 years agoALSA: HDA: Disable all references of clocks at end of suspend
Sumit Bhattacharya [Thu, 15 Dec 2011 13:03:06 +0000]
ALSA: HDA: Disable all references of clocks at end of suspend

HDA driver used to enable clocks during suspend only if there is no
active clock. But this logic causes a race condition when hda codec
power work thread disables the active instance of hda clocks in
middle of suspend. To avoid this race condition always enable
HDA clocks at start of suspend operation and disable all active
references of HDA clocks at end of suspend. Since HDA driver
suspend also suspends all active codecs there is no chance of
getting HDA clock disable call after completion of suspend.

Bug 915436

Change-Id: I4956ba28488d6d445ea2d53fb2592897a2ad83bb
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/70315
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Rd18fd4b147208bd88343fe117381cb6045f194bc

7 years agoASoC: Add EQ and filter to max98095 CODEC driver
Peter Hsiang [Wed, 20 Apr 2011 01:20:40 +0000]
ASoC: Add EQ and filter to max98095 CODEC driver

This patch adds the equalizer and biquad filter controls.

Signed-off-by: Peter Hsiang <peter.hsiang@maxim-ic.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit dad31ec133adb20c8fd10bfd9379da3f08b8721e)

Change-Id: I5f0f1005cecc1ca28bac360a55a86de7b9cddfe1
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/69961
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R4e3b033d8e7c644dfc9d0cd47d461ed716bca49b

7 years agoASOC: tegra: voice call support during suspend
Nikesh Oswal [Tue, 20 Dec 2011 10:30:44 +0000]
ASOC: tegra: voice call support during suspend

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>

Rebase-Id: Ra2ee5219af9fe2db85c8e0f84e72a443ca42ddf7

7 years agoasoc: tegra: modify stepreset on dam src table
Seongho Joo [Mon, 19 Dec 2011 07:28:04 +0000]
asoc: tegra: modify stepreset on dam src table

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>

Rebase-Id: Re2229f74c8561c77edbd33521500cee2d42d7f1c

7 years agoasoc: tegra: put the cache init code under macro
Nikesh Oswal [Mon, 19 Dec 2011 04:53:47 +0000]
asoc: tegra: put the cache init code under macro

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>

Rebase-Id: Rbbf15efd4863dd818ae48827f2394d481c8d4f6e

7 years agoasoc: tegra: init cache values for dam/ahub/apbif registers
Nikesh Oswal [Tue, 13 Dec 2011 06:11:47 +0000]
asoc: tegra: init cache values for dam/ahub/apbif registers

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>

Rebase-Id: R481d2a3e0665e0ef8e48e5da738f8c6e486afd3a

7 years agoASoC: MAX98088: Fix compiler warning
Sumit Bhattacharya [Tue, 13 Dec 2011 16:27:04 +0000]
ASoC: MAX98088: Fix compiler warning

Change-Id: Ifd53d0cb0cd6022c3f526df3ba79cd4369796749
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/69783
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

Rebase-Id: R70101ea88ca753a320a5e7fbcce271a27aae5f7d

7 years agoASoC: Tegra: Add support for AP slave mode for Tegra30
Sumit Bhattacharya [Tue, 13 Dec 2011 15:37:56 +0000]
ASoC: Tegra: Add support for AP slave mode for Tegra30

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>

Rebase-Id: Rd8e79b84e20d306b18473806f6f3fb7b8243b681

7 years agoASoC: Tegra: Pass "i2s" as con_id in clk_get
Sumit Bhattacharya [Tue, 13 Dec 2011 12:02:23 +0000]
ASoC: Tegra: Pass "i2s" as con_id in clk_get

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>

Rebase-Id: R43b9a07d148dba9964c467a1a088a80b314bd5d2

7 years agoASoC: Tegra: Fix I2s probe failure path
Sumit Bhattacharya [Tue, 13 Dec 2011 10:45:48 +0000]
ASoC: Tegra: Fix I2s probe failure path

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>

Rebase-Id: R56c6b74e37f32892679316a24df20423150d93dc

7 years agoasoc: tegra: restore i2s/das/spdif registers after suspend for t20
Nikesh Oswal [Tue, 13 Dec 2011 09:40:28 +0000]
asoc: tegra: restore i2s/das/spdif registers after suspend for t20

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>

Rebase-Id: R42ddb17e0ee3a7156362b6cade46cbaa7829df9e

7 years agoasoc: max98088: shutdown codec in bias off state
Chandrakanth Gorantla [Fri, 11 Nov 2011 16:09:17 +0000]
asoc: max98088: shutdown codec in bias off state

set global shutdown bit to zero so that codec will shutdown in
bias off case

bug 899662

Change-Id: I86cf5d9567463166fc3ee0585083faba35dac301
Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-on: http://git-master/r/63858
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R56ab3d2da2423f3d5e291332544d27917ffecc25

7 years agoASoC: Tegra: Fix compiler warnings
Sumit Bhattacharya [Thu, 8 Dec 2011 10:56:59 +0000]
ASoC: Tegra: Fix compiler warnings

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>

Rebase-Id: Rb4a83dd9f06607009ba58b0e733aa3531eebccc9

7 years agoasoc: tegra: init cache values for i2s register
Ken Chang [Fri, 9 Dec 2011 00:05:51 +0000]
asoc: tegra: init cache values for i2s register

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>

Rebase-Id: R9cbdeee6b316f6cb6bb28c1cafd4a962b669c414

7 years agoASoC: Tegra WM8753 machine: Disable regulator when not in use
Sumit Bhattacharya [Wed, 7 Dec 2011 15:00:34 +0000]
ASoC: Tegra WM8753 machine: Disable regulator when not in use

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>

Rebase-Id: Re6ba0fcd9608f5b7f8f8b64215c53e8420053582

7 years agoASoC: Tegra: return accurate pcm pointer position
Sumit Bhattacharya [Wed, 7 Dec 2011 14:50:43 +0000]
ASoC: Tegra: return accurate pcm pointer position

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>

Rebase-Id: R8311543dd2275f796504378aa8b91617f2d84f0a

7 years agokernel: sound: soc: Enable voice call dai link
Vinod G [Wed, 7 Dec 2011 02:21:16 +0000]
kernel: sound: soc: Enable voice call dai link

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>

Rebase-Id: Ref6e52f5ee6c936b05d1342e68acd080c622fd4d

7 years agoASoC: WM8903: Disable irq before suspend
Sumit Bhattacharya [Wed, 7 Dec 2011 11:45:53 +0000]
ASoC: WM8903: Disable irq before suspend

When codec enters suspend mic bias gets turned off. As a result if a
mic is already plugged in a mic removal event gets triggered. Once
codec driver gets mic removal interrupt it sleeps for the duration
of debounce time which causes kernel power manager to abort suspend.

To avoid this scenario disable mic detect IRQ before powering off
codec and enable the same during resume.

Change-Id: Ic3c90d73c9f2742b6771f7e3fe0e3fb1f59e1cd9
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/68662
Reviewed-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Ra8199c6a52670e79e9e9eb6761987fe6a835272d

7 years agoasoc: tegra: call ahub resume from i2s driver
Nikesh Oswal [Tue, 6 Dec 2011 07:08:39 +0000]
asoc: tegra: call ahub resume from i2s driver

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>

Rebase-Id: R950896251c42c7556f4379351d81f311296674a3

7 years agokernel: sound: soc: Fix file permission issue
Vinod G [Tue, 6 Dec 2011 00:27:52 +0000]
kernel: sound: soc: Fix file permission issue

Change the executable permission on the files.

Change-Id: I8109f4e255847ec5453c98c47974a89e4cf56af9
Reviewed-on: http://git-master/r/68336
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Tested-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R38462bf5a0ac413c9827d61053c60867d274a482

7 years agoASoC: Tegra: WAR to avoid incorrect mic detection event
Sumit Bhattacharya [Mon, 5 Dec 2011 13:21:58 +0000]
ASoC: Tegra: WAR to avoid incorrect mic detection event

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>

Rebase-Id: Re1780ad2c6a5c2ee37ba07b20651203e8e33215e

7 years agokernel: sound: soc: Fix TI codec reg access issue.
Vinod G [Sat, 3 Dec 2011 00:32:50 +0000]
kernel: sound: soc: Fix TI codec reg access issue.

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>

Rebase-Id: R28cdb9f2a7d70f61a8dc643ddf250cd428b7a063

7 years agokernel: soc: tegra: Add machine driver for TIcodec.
Vinod G [Fri, 2 Dec 2011 02:29:56 +0000]
kernel: soc: tegra: Add machine driver for TIcodec.

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>

Rebase-Id: R1b0caddfe8f1334004c51cfe886b24d3936c0bd9

7 years agokernel: arm: tegra: Add soc machine specific data
Vinod G [Fri, 2 Dec 2011 02:27:46 +0000]
kernel: arm: tegra: Add soc machine specific data

Add the header to specify the soc machine driver data .
bug 816608

Change-Id: Idc1fab948763cd67433de29bda27fb95fccf8a20
Reviewed-on: http://git-master/r/67817
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Tested-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Rd5f3e4905f3df93641cb7e88b3dc4bf10005067b

7 years agoALSA: hda: Support disabling of clocks for Tegra
Sumit Bhattacharya [Mon, 28 Nov 2011 20:47:05 +0000]
ALSA: hda: Support disabling of clocks for Tegra

This change is basically a WAR. Tegra T30 HDA controller does not
support presence detect event generateion when all HDA clocks are
off. This change forcefully enables power disabling of HDA chip and
clocks while not in use. As a side effect Tegra HDA driver misses
the unsolicited HDMI plug in event when in power off mode. To overcome
this limitation whenever user space tries to open an HDMI pcm stream
Tegra HDA controller requests HDMI driver to setup presence detect
registers after enabling the chip and waits until it gets valid ELD
data.

Bug 904530

Change-Id: I8c8cb6fe7935ba8b16c421beca68cb1d7f576212
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/66972
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R3ee2f4a750922ed8bba16505401f995fa7ea508c

7 years agoALSA: hda: Disable platform clocks when not required
Sumit Bhattacharya [Mon, 28 Nov 2011 08:11:25 +0000]
ALSA: hda: Disable platform clocks when not required

Add support for disabling of platform driver clocks when HDA is idle
to reduce HDA power consumption. Take care of enabling of HDA clocks
before accessing any hardware register.

Bug 904530

Change-Id: I51be7990e900cef3dac376d9635c48cd1ffbfa99
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/66886
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R9405d7739b40c893d731929dfa30377e56121343

7 years agokernel: sound: Adding TI codec support
Vinod G [Wed, 30 Nov 2011 01:32:11 +0000]
kernel: sound: Adding TI codec support

Adding the code for supporting TI AIC3262 codec.
bug 816608

Change-Id: I19c3e03e8fd442c0c19a72a7efeddcd0ca05a7e1
Reviewed-on: http://git-master/r/67279
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Tested-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Racc01ace1da465b41d3d8c91b0ccfce6968ac47d

7 years agokernel: sound: soc: Adding mini dsp headers for TI
Vinod G [Tue, 29 Nov 2011 02:25:11 +0000]
kernel: sound: soc: Adding mini dsp headers for TI

Integrating the mini dsp headers to support the TI codec.

Change-Id: I2191627f96db9134a2cbd6258b9b958bccc0e6e7
Reviewed-on: http://git-master/r/67045
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R1afd379263506d2f17e5cdd0ca0398a8ba0a93b8

7 years agoASoC: Tegra: Fix AHUB pack mode mask for RX channel
Sumit Bhattacharya [Thu, 24 Nov 2011 08:43:27 +0000]
ASoC: Tegra: Fix AHUB pack mode mask for RX channel

Bug 906298

Change-Id: Ib7b0b96a709a8a2eb9f7849773ba549137adcbad
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/66640
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rf5964730f65740a3e87cf9dcc40840e81bc4723f

7 years agoasoc: tegra: max98088 machine: add power management functionality
Nikesh Oswal [Fri, 18 Nov 2011 09:30:09 +0000]
asoc: tegra: max98088 machine: add power management functionality

add code for handling register save/restore and clocks
disable/enable during suspend/resume

Bug: 862023

Change-Id: I7502fb4cd0db8be250e3fd9047d98e6ad5cafec1
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/65479
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: Rf83ed876bd330000b8778f832b0fddcfef954bb2

7 years agoasoc: tegra: add power management functionality in t30 drivers
Nikesh Oswal [Fri, 18 Nov 2011 09:29:12 +0000]
asoc: tegra: add power management functionality in t30 drivers

add code for handling register save/restore and clocks
disable/enable during suspend/resume

Bug: 862023

Change-Id: I1b709b6bf674c9a2d93c2a21c1f44bbadff64aab
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/65478
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R2383486dac0892e317dbd25044df59284031b6c4

7 years agoASoC: tegra wm8753 machine: Add suppport for Tegra20 BT SCO
Sumit Bhattacharya [Fri, 4 Nov 2011 22:03:32 +0000]
ASoC: tegra wm8753 machine: Add suppport for Tegra20 BT SCO

Add a new dai-link interface to wm8753 machine driver which can be
used for BT SCO playback and record on Tegra20. Also add code to
program Tegra20 DAS controller depending on active dai-link.

Bug 872652

Change-Id: I777b0c4806c05217c3ce89591e5d14ff2b4dcd7c
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/64439
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R08f0e7c075a874481cd97727d7b27011eba684c5

7 years agoASoC: tegra: max98088 machine: add bt voice call dai link
Nikesh Oswal [Wed, 9 Nov 2011 10:29:12 +0000]
ASoC: tegra: max98088 machine: add bt voice call dai link

Bug: 862023

Change-Id: I74f6d8e14ca9c48cbbe272384c0821e880e59697
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/63259
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Re4124a65167562191b9058455a20f941887fad54

7 years agoASoC: tegra: max98088 machine: add alsa control for voice call
Nikesh Oswal [Sun, 6 Nov 2011 04:47:54 +0000]
ASoC: tegra: max98088 machine: add alsa control for voice call

add alsa control for voice call and add voice call dai link

Bug: 862023

Change-Id: I1fb45e0c987e93e90f631b09d7146852c141816f
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62622
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Rd6168ccb88d9758be4919d16aa972fbd27e7ee46

7 years agoASoC: tegra: configure the dma request if dma data is set
Nikesh Oswal [Sun, 6 Nov 2011 04:42:31 +0000]
ASoC: tegra: configure the dma request if dma data is set

configure the dma request if dma data is set by the cpu
dai. In voice call use case we open a pcm device with
alsa driver which has a codec dai for configuring the
codec and a dummy cpu dai, which had no dma data since
we dont want any dma for this device as the flow
of data is directly between the baseband and codec.

Bug: 862023

Change-Id: Ia64dee48ff5e102b334f4a3d64286787e6db415b
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62621
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Rb144e52e059eb7240e09ac0d63825a490e3542af

7 years agoASoC: tegra: t30 add support for voice call
Nikesh Oswal [Tue, 8 Nov 2011 08:38:31 +0000]
ASoC: tegra: t30 add support for voice call

Bug: 862023

Change-Id: If22a815f3c941e07b4be91c485353087e45b7503
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62894
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R3cceb258be9da3e8bb45741705aabd65c6065c3c

7 years agoASoC: tegra: max98088 machine: connect playback path via the dam
Nikesh Oswal [Fri, 11 Nov 2011 11:31:45 +0000]
ASoC: tegra: max98088 machine: connect playback path via the dam

default playback path is established through the dam
so as to support mixing of system sounds during voice call and also
playing of connection and disconnection tones

Bug: 862023

Change-Id: Ia055e7372f4ca18d038db483c3657ee4bbbfb6ca
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/63816
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R38a4b7b469f5c8cffdc9c53a4a1fb07c13b5a531

7 years agoASoC: tegra: configure default playback path for t30
Nikesh Oswal [Tue, 8 Nov 2011 08:32:09 +0000]
ASoC: tegra: configure default playback path for t30

with these changes from the machine driver we can configure
the default playback path to go through the dam or bypass
the dam

Bug: 862023

Change-Id: I0c51dd167c6822c4583240ece14211a82734ee2e
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62891
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R7e756015a8436841c00295145ec45a23ec3ba8f7

7 years agoASoC: Tegra MAX98088 machine: Add support for Tegra30 BT SCO
Nikesh Oswal [Thu, 3 Nov 2011 09:19:21 +0000]
ASoC: Tegra MAX98088 machine: Add support for Tegra30 BT SCO

Bug: 862023

Change-Id: If5aaa1add08d1339a93a84c41ad1c98a24b63db5
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/62082
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: R7531465a6b899b9da52a2003cd6e07afb53961bf

7 years agoALSA: hda: Set samplerate to Tegra HDMI driver
Sumit Bhattacharya [Fri, 21 Oct 2011 11:20:30 +0000]
ALSA: hda: Set samplerate to Tegra HDMI driver

Set playback stream samplerate to Tegra HDMI driver.

Bug 872652

Change-Id: Ie288ebf448e2000a53024e47941dfdc7aa9ce276
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/64343
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R5f1e35081f70bcca2d6332abddda6883f883cbc8

7 years agoasoc: tegra: Remove HDMI-SPDIF path support
Sumit Bhattacharya [Fri, 21 Oct 2011 16:38:46 +0000]
asoc: tegra: Remove HDMI-SPDIF path support

HDMI-SPDIF path is not supported on Tegra30. Remove WAR added to
make HDMI-SPDIF path partially functional.
Also remove hda2codec_2x clock access from SPDIF driver since this
is only required for HDMI-SPDIF path.

Bug 872652

Change-Id: I4b0f7666fb53fa603c293154b05aaf62bb54e1bc
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/63315
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

Rebase-Id: Refd3a2026d80c2fe0f4e3835db18a94b17eba6a9

7 years agoALSA: hda: Add Nvidia Tegra HDMI support
Sumit Bhattacharya [Tue, 8 Nov 2011 21:38:00 +0000]
ALSA: hda: Add Nvidia Tegra HDMI support

Bug 872652

Change-Id: If6ad14d210c15c8692691af699e7c4c98790a4e3
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/64337
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R6fe8a46dea1729df7dbba25c926d6dd2b1232fc5

7 years agoALSA: hda: Add support for Tegra HDA platform driver interface
Sumit Bhattacharya [Tue, 8 Nov 2011 20:58:21 +0000]
ALSA: hda: Add support for Tegra HDA platform driver interface

Bug 872652

Change-Id: I10c18afb496a605d47a09c7c6dc924459b4728eb
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/64335
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: Rbaf53a2382f50c1a552bafd9d54840779160b055

7 years agoALSA: hda: Add hda platform driver support
Sumit Bhattacharya [Tue, 8 Nov 2011 15:35:52 +0000]
ALSA: hda: Add hda platform driver support

It is possible that some chips have a HD-audio controller which is not
installed on a PCI bus. Nvidia Tegra has Azalia HD-audio controller
but it uses proprietery interface to communicate with the controller.

This commit adds a platform driver interface support to HDA driver
which can be used by non-PCI bus based HDA controller.

Bug 872652

Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: I73fb55858387f511738a09de3f52e7d326353ebf
Reviewed-on: http://git-master/r/59504
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>

Rebase-Id: R51a3866f0cb9889d947d6c7045ad7e8976cb3e69

7 years agoASoC: Tegra WM8903 machine: Add support for Tegra30 BT SCO
Sumit Bhattacharya [Thu, 3 Nov 2011 07:14:55 +0000]
ASoC: Tegra WM8903 machine: Add support for Tegra30 BT SCO

Use BT SCO DAI-LINK interface for both Tegra20 and Tegra30. For Tegra30
use i2s3 for BT SCO connection.

Bug 872652
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: I93d90843133267c1aed3386de5e7d40938952f53
Reviewed-on: http://git-master/r/62051
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R9d90a88375ecd8bad6f4c39a1ce083b87751b846

7 years agoASoC: Tegra WM8903 machine: Add suppport for Tegra20 BT SCO
Sumit Bhattacharya [Mon, 24 Oct 2011 15:44:39 +0000]
ASoC: Tegra WM8903 machine: Add suppport for Tegra20 BT SCO

Add a new dai-link interface to wm8903 machine driver which can be
used for BT SCO playback and record on Tegra20. Also add code to
program Tegra20 DAS controller depending on active dai-link.

Bug 872652

Change-Id: I006a2542b20cfd94c246d19770aa836c2bbf4198
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/59060
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R36dfd3082c6119a452c0bab8858637b3f139f5e5

7 years agoASoC: Tegra: Tegra machine: Improve clk management logic
Sumit Bhattacharya [Fri, 11 Nov 2011 15:16:33 +0000]
ASoC: Tegra: Tegra machine: Improve clk management logic

Use tegra asoc util lock_rate API to lock pll_a, pll_a_out and mclk
settings whenever any DAI-link using these clocks is active. If any
dai-link fails to set clock due to another active dai-link it will
check if the current mclk rate is acceptable for it's purpose before
erroring out.

Also add  hw_param ops for SPDIF dai-link.

Bug 872652

Change-Id: I6ef1a3b69745bdf85cb88f5fbccfb05c37e33c5d
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/63856
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rdf4d19ce1ff150dd5835c891dfed0cea16150016

7 years agoASoC: Tegra: Don't allow PLL rate change while it is in use
Sumit Bhattacharya [Fri, 11 Nov 2011 13:31:19 +0000]
ASoC: Tegra: Don't allow PLL rate change while it is in use

Expose a new API to lock pll_a, pll_a_out0 and mclk rates. Any dai-link
which sets any of these clocks should call this API from hwparam() to
lock these rates and should release the lock once dai-link shutdown
is called. When lock is held by any dai-link request for change in any
of these clocks will not be granted.

Bug 872652

Change-Id: I583b4849acde7e588531e60c6c5cd5156badb4f2
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/63828
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R044806997c82a11115a6a110196ac82402aceca5

7 years agoASoC: tegra: Support Tegra20 mono playback/capture
Sumit Bhattacharya [Wed, 2 Nov 2011 22:05:02 +0000]
ASoC: tegra: Support Tegra20 mono playback/capture

Add support for Tegra20 mono playback/capture. Mono is only supported
using DSP mode.
Also reduce minimum period bytes limit to 128 to have an acceptable
latency value for 8kHz-mono playback/capture.

Bug 872652
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: I715a6995506f0ae036579d181392251a51d3a5c2
Reviewed-on: http://git-master/r/62016
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R06beebb87c426eb010f1fb28aa521af25d51e2a7

7 years agoASoC: Tegra wm8753 machine: Use DSP mode for mono on Tegra20
Sumit Bhattacharya [Fri, 4 Nov 2011 21:54:10 +0000]
ASoC: Tegra wm8753 machine: Use DSP mode for mono on Tegra20

Use DSP mode for playback and capture on Tegra20 platforms.

Bug 872652
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: Ib612702a300c454d262a8d69ab59f1ac0e64c79f
Reviewed-on: http://git-master/r/62513
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R1d74ddf730b97c881e37747e86b9c25c0a13e74a

7 years agoASoC: Tegra wm8903 machine: Use DSP mode for mono on Tegra20
Sumit Bhattacharya [Fri, 4 Nov 2011 21:51:50 +0000]
ASoC: Tegra wm8903 machine: Use DSP mode for mono on Tegra20

Use DSP mode for playback and capture on Tegra20 platforms.

Bug 872652
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: Iddf6d3b5dc83d509ddf857a8c3b0bb0ec13d9879
Reviewed-on: http://git-master/r/62512
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R48dbdcdad6191f354a63c4a01fb33668c43ac28a

7 years agoASoC: Tegra: Support mono playback/capture on Tegra30
Sumit Bhattacharya [Fri, 4 Nov 2011 21:01:54 +0000]
ASoC: Tegra: Support mono playback/capture on Tegra30

Program I2s and AHUB CIF channel counts based on hw params instead of
always setting CIF channel count to 2.

Bug 872652
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: I683e976d330ab001a36df6c368bb37fa733a788e
Reviewed-on: http://git-master/r/62502
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R1dbcdb946b95060a07a1744b4714e2588901f15d

7 years agoasoc: tegra: Add support for Tegra20 I2s PCM mode
Sumit Bhattacharya [Mon, 31 Oct 2011 12:51:56 +0000]
asoc: tegra: Add support for Tegra20 I2s PCM mode

Add support for Tegra20 I2s PCM mode which is required for playback or
record through BT SCO interface.

Bug 872652
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: Ia4ba1fc308f2e8adb3697ae600a1664aa14467e9
Reviewed-on: http://git-master/r/61232
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R058f7951f0d4bdb5cfe4d997326a2456cc8b105c

7 years agoASoC: Tegra: Add AHUB APIs to configure AHUB CIF channels
Sumit Bhattacharya [Fri, 4 Nov 2011 20:49:44 +0000]
ASoC: Tegra: Add AHUB APIs to configure AHUB CIF channels

Bug 872652
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: I0b777642681f5bf606a8faffb76142026902e538
Reviewed-on: http://git-master/r/62045
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>

Rebase-Id: R5bac01349656e799fed56b368265da13d6a4b02a

7 years agoASoC: Tegra: Support Tegra30 I2s DSP mode
Sumit Bhattacharya [Thu, 3 Nov 2011 05:48:51 +0000]
ASoC: Tegra: Support Tegra30 I2s DSP mode

Correct DSP-A/B mode logic and bitcnt calculation logic for DSP mode.
Also enable single slot for both I2s and DSP modes.

Bug 872652
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>

Change-Id: I9df935bfddde71b3c3a0df68cef73f530079176c
Reviewed-on: http://git-master/r/62024
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>

Rebase-Id: R8ef4810768bbc7d3d091cc08054e952763d9087f