Age | Commit message (Collapse) | Author |
|
Few boards which uses wm8903 has independent regulators
for spk and mic while others do not have it.
For the boards which do not have independent regulators
we should avoid getting their regulators otherwise we
would get the following error messages:
"tegra-snd-wm8903 tegra-snd-wm8903.0: No speaker regulator found"
"tegra-snd-wm8903 tegra-snd-wm8903.0: No digital mic regulator found"
Bug 956562
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Change-Id: Ide1ce141b5d45d56e834dc82a7cf5a7adc6c3e80
Reviewed-on: http://git-master/r/91548
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
|
|
Return -ENODEV instead of -EAGAIN if hdmi_pcm_open() fails. There is
a chance of user space getting hung while trying to open pcm device
if -EAGAIN is returned.
Bug 949659
Change-Id: If4ff4078d8e0d882859ac97742e7d48d2e6c230c
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/91819
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
|
|
alsa control is added to facilitate querying dts decode capability of
connected device. dts decode capability of the connected device is
updated in the ELD buffer. That information is updated in the
ALSA control structure. In addition to that, the code is amended to
handle other pass through decoder mode support.
Bug 943017
Change-Id: If8da7dfb24be3b86592191f5586b70492282b438
Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com>
Reviewed-on: http://git-master/r/91813
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
Removing legacy i2s/spdif driver from tree.
These files are added to support customer projects prior
to moving over to alsa driver for audio.
There is no intention of using them and hence removing it.
Change-Id: I864dbc50e2e76ac16f40542460f63c8c8a0eff71
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/91758
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
|
|
use common platform data instead of using codec specific platform
data for different codecs
Change-Id: I88ecb08f3945e0d9c5162ec2b2d3279a4da50099
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/91686
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
|
|
add voice call, bt voice call, voice call with system sound mix,
bt voice call with system sound mix, voice call recording,
bt voice call recording functionalities for ti aic326x on ap30
Change-Id: Ia94c1586c30d0636d8de738ff6cbb716f4f79d16
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90123
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
check for revision id, it must be 0x40 as per the datasheet,
if its not 0x40 then dont allow the card to register by failing
in the codec probe. This functionality will be required when the
same board support multiple codecs. Also register the irq only
after validating the codec.
Change-Id: I8553b85d534428c7137ec2d03e2f814b898609a6
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90061
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
If card fails to instantiate then unregister the card
Change-Id: Ibcc0d505a8df48c1f924a3d8688dc23e362d5e8d
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90060
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
|
|
If switch registration is success and later card registration
fails then we must unregister the switch
Change-Id: I140b3fb0890f41fea653100bcff450f10294cd9d
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90058
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
Change-Id: I1b41c408b65b79f12b20a5efb7c0d2e3245bad6a
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90057
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
This change resolves the control name (Line Out Switch) conflict between
wm8903 codec driver and tegra machine driver.
Bug 956506
Change-Id: Iab049c7fb2fdde0d481d07d8e1bbdbeea1a831d9
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/91510
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
|
|
Suspend and resume code included for headphone detection. Earlier,
it was causing problem in HP detection when device enters into LP0
state and headphone is plugged in. (Bug 937153)
Change-Id: If625f0e7b857b40b0535f8bc8d1c262650886fa7
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Reviewed-on: http://git-master/r/89975
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
Added machine driver for P1852 board.
The driver supports a plug/play architecture where the
details of the codec_driver/codec_dai will come from the top level
board config file.
Bug 948478
Change-Id: Id34a34b224e02b61475ca17253c1b13893a09e6c
Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/89474
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
|
|
Fixing the typos in the member of cardhu_controls.
Bug 946932
Change-Id: I26f2a5a60f40d55846a89aaa76dab00741e018d0
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/88824
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
|
|
Change-Id: I0b2b50c007d9e7b722b2c4bbc0282c51a8d18b00
Reviewed-on: http://git-master/r/88239
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
|
|
change M/S configuration for bt, with BT as Slave and Modem
as Master
Change-Id: Ifae5ca228f3bcf0f882f47e79448c10bcc33ec4d
Reviewed-on: http://git-master/r/89127
Tested-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
Improve the resume time of the HD Audio driver by replacing selected
msleep() functions with mdelay(). msleep() return times are not
deterministic.
Signed-off-by: ScottPeterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/86896
(cherry picked from commit eccbe7983d1b010cc60b49bfb13d041b3a0957d3)
Change-Id: I261ba51e7f8414bca50076ae73473114a308645c
Reviewed-on: http://git-master/r/88090
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Tested-by: Scott Peterson <speterson@nvidia.com>
|
|
update the TIAIC326x driver for voice call
Change-Id: I1443b462b5b7e049fe4cbf39215aea6eeb955500
Reviewed-on: http://git-master/r/88012
Tested-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
change M/S configurations as modem has been made master
on whistler
Change-Id: Iae0cf3f85c43116b13ceb1ff5dfa4a9b121a5d62
Reviewed-on: http://git-master/r/88014
Tested-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
i2s bitclk for dsp mode was kept 4 times the minimum requirement
for bcm4330 bt chip on whistler we require only 2 times the minimum
requirement because modem is also configured similarly and for bt call
both the bit clocks should match
Change-Id: I6a84b22c9fbd66b4e60832933b508fe8cf21f387
Reviewed-on: http://git-master/r/88013
Tested-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
Fix for pop noise 'cut' from internal speaker while booting
on kai board.
Bug 929049
Change-Id: I9c3fe7e05d869709f50036042e70abc91722885e
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/87685
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
|
|
Set I2s FIFO attention level based on sample size and channel count.
Also set playback DMA destination bus width and capture DMA source bus
width based on sample size. These changes are needed to have proper
BT SCO playback and record which uses 16bit-mono format.
Bug 934101
Bug 874428
Bug 927978
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/84817
(cherry picked from commit 3ca2eb665af450d7e8f3bf6f2471e31203052641)
Change-Id: I95c10716eaa990adb8b6ae535ce6acfca122a609
Reviewed-on: http://git-master/r/87192
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
Remove snd_hda_power_up()/snd_hda_power_down() sequence from HDA codec
resume since it add around 90ms delay. This code was not essential
for HDA driver to work properly after suspend-resume cycle.
Bug 932606
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/80040
(cherry picked from commit 2ed8667c2bdfd4c8cbe371530b066b537aa9ae62)
Change-Id: I0ffb120eb0a54f6c4e20aaf96c5ac2d0f5ab6949
Reviewed-on: http://git-master/r/87188
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
Fix headset switch name for kai.
Bug 945640
Change-Id: I61b0a7c58a97bd3f2b976d521a5298a48a27798c
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/87136
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
|
|
Add support for headset detection on kai board.
Bug 937914
Change-Id: Ic69f5ffda45f71c3f566533ef74fd2a94d82894c
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/86601
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
|
|
Add support for headset detection for ALC5639/40
codec for kai board.
Bug 937914
Change-Id: I0bb9e913601c37a1cc8f7094fbdd3885aeec92b3
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/86348
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Tested-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
|
|
When monitor is plugged in instead of reading the complete ELD buffer
only read the relavant bytes required to update pcm info. Go through
the complete ELD buffer once LPCM sad ELD information is updated in
ELD structure. This is required to reduce the delay in getting a valid
PCM information which in turn delays opening of HDMI PCM stream.
Also if a valid LPCM SAD ELD information is not available when
hdmi_pcm_open is called then instead of looping inside hdmi_pcm_open
return error to unblock other operations. User space should retry to
open HDA PCM device after some time.
Bug 931930
Bug 913739
Bug 906076
Change-Id: Iaaef3f0e361ae406c92605b056bd4dff9c2b7856
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/83143
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
bug 940617
Change-Id: I83f43820761d0227d7a594123d22fe79089e2e15
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/86280
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
|
|
Invert the gpio output because GPIO_EXT_MIC_EN is active low.
Bug 937914
Change-Id: Ifeccda092d7834dfdd39e3d1df616bda7bf516bc
Reviewed-on: http://git-master/r/86038
Reviewed-by: Liangchuan Mi <lmi@nvidia.com>
Tested-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Kerwin Wan <kerwinw@nvidia.com>
|
|
Change-Id: Ia6fac687a6b302fa49b6f8a7cfd74abfde5b45f9
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84544
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
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>
|
|
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>
|
|
configure ASI2 as master and add missing dapm widgets and routes
Change-Id: If2f9c8361888ec40147cd5537f435c91e50cbcc8
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84538
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
Change-Id: Ie8ef49b2a76e27e07835fb61bce23ddf69c0b1f9
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84537
Reviewed-by: Scott Peterson <speterson@nvidia.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
- 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>
|
|
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>
|
|
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>
|
|
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>
|