summaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2018-06-21Merge tag 'tegra-l4t-r21.7' into toradex_tk1_l4t_r21.7-nextMarcel Ziswiler
Merge NVIDIA's latest Linux for Tegra aka L4T R21.7 Linux kernel changes from git://nv-tegra.nvidia.com/linux-3.10.git commit: e78bb38b883c42edf81766a1d557aed74458e08f Conflicts involved missing 24-bit LVDS support and a single whitespace aka tab difference in drivers/video/tegra/dc/sor.c. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2018-04-19ALSA: usb-audio: Fix double-free in error paths after ↵Vladis Dronov
snd_usb_add_audio_stream() call create_fixed_stream_quirk(), snd_usb_parse_audio_interface() and create_uaxx_quirk() functions allocate the audioformat object by themselves and free it upon error before returning. However, once the object is linked to a stream, it's freed again in snd_usb_audio_pcm_free(), thus it'll be double-freed, eventually resulting in a memory corruption. This patch fixes these failures in the error paths by unlinking the audioformat object before freeing it. Based on a patch by Takashi Iwai <tiwai@suse.de> [Note for stable backports: this patch requires the commit 902eb7fd1e4a ('ALSA: usb-audio: Minor code cleanup in create_fixed_stream_quirk()')] Bug 1823317 Bug 1935735 Change-Id: I4f65a902a19e7b21e8bc0fa21efd833c8360a3cf Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1283358 Reported-by: Ralf Spenneberg <ralf@spenneberg.net> Cc: <stable@vger.kernel.org> # see the note above Signed-off-by: Vladis Dronov <vdronov@redhat.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Gagan Grover <ggrover@nvidia.com> Reviewed-on: http://git-master/r/1259999 (cherry picked from commit 14e09c3233fb7578c778b70ec3933ba5cadfccb6) Reviewed-on: https://git-master.nvidia.com/r/1690292 GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com> Tested-by: Amulya Yarlagadda <ayarlagadda@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2018-03-19ASoC: tegra: check ucode upper limitRavindra Lokhande
Check ucode size for upper limit. Bug 1901435 Bug 1954563 Bug 1917589 Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Signed-off-by: Xia Yang <xiay@nvidia.com> Change-Id: I2f455771147bb4466d154878d2461e472647c4fb Reviewed-on: https://git-master.nvidia.com/r/1575925 Reviewed-on: https://git-master.nvidia.com/r/1674399 GVS: Gerrit_Virtual_Submit Tested-by: Amulya Yarlagadda <ayarlagadda@nvidia.com> Tested-by: James Huang <jamehuang@nvidia.com> Reviewed-by: James Huang <jamehuang@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2016-06-29arm: tegra: initial support for apalis tk1Apalis_TK1_LinuxImageV2.6Beta2_20160701Marcel Ziswiler
This patch adds support for the Toradex Apalis TK1 acomputer on module which can be used on different carrier boards. The module consists of a Tegra TK1 SoC, a PMIC solution, 2 GB of DDR3L RAM, a bunch of level shifters, an eMMC, a TMP451 temperature sensor chip, an I210 gigabit Ethernet controller and a SGTL5000 audio codec. Furthermore, there is a Kinetis MK20DN512 companion micro controller for analogue, CAN and resistive touch functionality which is not yet supported. This is known to boot into either a basic Angstrom/OpenEmbedded/Yocto or L4T/JetPack Ubuntu based image. The following things are known to work to a certain extend: - analogue/digital audio - debug UART1 - DVFS power management incl. low power core migration - eMMC - gigabit Ethernet - GPIOs - HDMI (incl. HDA audio) - I2C - LVDS - PCIe - SATA - SD/MMC cards - temperature sensor - USB host ports The rest is untested. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
2016-06-29apalis-tk1: make hda 2nd sound card hackMarcel Ziswiler
Hack HDA driver to make it the 2nd rather than the first sound card as the first one should be the SGTL5000 which is always present on our T30 and TK1 modules. Especially on Ixora where there is no HDA codec on the carrier board HDA being the first sound card does not make much sense even more though as there was no primary device (e.g. device=hw:0,0). Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com> (cherry picked from commit fff75b252e0aed1d8be2b62234624f726c153776)
2016-06-29apalis-tk1: integrate sgtl5000 audio codecMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
2015-01-13ASoC: tegra: unset audio_engineBibek Basu
If firmware is not found in case of error, set audio_engine to NULL so that kernel does not panic while further processing Bug 200067781 Change-Id: Ia854c978bd33a2615ab27715e83b4d78a1dbab3a Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/670625 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2015-01-07ASoC: Tegra: correct the print loglevelBibek Basu
Some info prints are wrongly processed as err print Bug 200042283 Change-Id: I490b4782e5d26d06c0f3c7104ab8c68b94f31888 Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/668854 GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-10-07ASoC: tegra: fix avp module removeShreshtha SAHU
- avp module remove should not try to release client if avp pcm open was never called and client was never allocated - avp module remove should deregister offload ops Bug 200043253 Change-Id: I11a6d65afab4d88aa5669553809e99fd69cfd000 Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: http://git-master/r/554153 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Zheng Liu <zhliu@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com>
2014-10-01soc: codecs: max98090: free_irq during module removeShreshtha SAHU
Bug 1550880 Change-Id: I54697780893c17a1c117483fd9bf271ba31209d4 Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: http://git-master/r/551902 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-10-01soc: tegra: max98090: laguna: fix error return pathsShreshtha SAHU
- Remove switch_dev_unregister and call tegra_asoc_switch_unregister instead in error return path corresponding to tegra_asoc_switch_register. - Skip max97236 registration for laguna erss platorm. Issues surfaced out on making max98090 as removable KO module. Bug 1550880 Change-Id: I6a6c0185a3980efab3592f0733bda214aac4fc81 Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: http://git-master/r/551901 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-10-01asoc: rt5639: fix missing regmap_exit during removeShreshtha SAHU
without regmap_exit in remove, next modprobe of modprobe used to complain of "Failed to create debugfs directory" due to stale debugfs directory. Bug 200038898 Change-Id: Ie6373f40b50c1307ee7d114dc0f44164c4b426eb Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: http://git-master/r/542646 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-09-19asoc: rt56xx: fix missing device_remove_fileShreshtha SAHU
added missing device_remove_file during device remove this resulted failure in modprobe of module Bug 200038187 Bug 200037087 Change-Id: Ibbe8cf92162144d438f5b563bf6d2b9787acc04e Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: http://git-master/r/499745 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Zheng Liu <zhliu@nvidia.com> Reviewed-by: Winnie Hsu <whsu@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-09-16ASoC: Tegra: Fix double regulator disableShreshtha SAHU
digital_reg was disabled second time instead of codec_reg Bug 200036995 Change-Id: I8e9b3aeafa613a5a58063b88ee81bf3d0aaf4e43 Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: http://git-master/r/498837 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
2014-09-05tegra: sound: export symbols for module accessZheng Liu
Export symbols so the sound driver can be built as a module. Bug 1536426 Change-Id: I86fa8800df1988f630b4e45d4cbf1733c039c837 Signed-off-by: Zheng Liu <zhliu@nvidia.com> Reviewed-on: http://git-master/r/494120 GVS: Gerrit_Virtual_Submit Reviewed-by: Allen Martin <amartin@nvidia.com>
2014-08-06kernel: make controls access read onlyRahool Paliwal
This makes controls HDA Decode Capability, HDA Maximum PCM Channels for HDA and AVP DMA channel id for Tegra Soc read only. Bug 200023797 Change-Id: I3271470354b02f3d1b3aab8fa3963ad19d281f41 Signed-off-by: Rahool Paliwal <rpaliwal@nvidia.com> Reviewed-on: http://git-master/r/441855 GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-07-16sound: tegra: ahub: add clock settings for T124Bryan Wu
Several additional audio clocks need to be initialized before accessing any audio register, otherwise system will just hard hang. Probably fastboot bootloader initialize these clocks, which actually should be handled in driver. We found this issue for U-Boot bringup. Bug 1482099 Change-Id: Ia7a7c0115bc92a4e98e6f337cf8efc7b2f7a72a0 Signed-off-by: Bryan Wu <pengw@nvidia.com> Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com> Reviewed-on: http://git-master/r/408429 (cherry picked from commit 2929886db14e9d2ac0e75b282126397970fbf9c9) Reviewed-on: http://git-master/r/427929 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Winnie Hsu <whsu@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
2014-07-09ASoC: Tegra: Add effects capture for norrinDeepa Madiregama
- Add dai link for effects capture Bug 1399923 Change-Id: Ie361aad3cedb1c47b8800fc9eac221e4fcaccc97 Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com> Reviewed-on: http://git-master/r/433496 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2014-07-09ASoC: Tegra: Add support for effects captureDeepa Madiregama
Add capture node to get the effects data from AVP Bug 1399923 Change-Id: I854de0966a40fe7867001a25058626da63b87b92 Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com> Reviewed-on: http://git-master/r/414091 Reviewed-by: Emad Mir <emir@nvidia.com> Tested-by: Emad Mir <emir@nvidia.com>
2014-07-07ASoC: Tegra: support raw aac for compress offloadSayak Ghosh Choudhury
raw aac support is added for compress decoding on avp. Bug 200013486 Change-Id: I355bc8b1636811fb51abb4c4c6ca23f207ec5064 Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com> Reviewed-on: http://git-master/r/427720 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-06-30ASoC: Tegra: Refactor offload to handle multiple BERavindra Lokhande
- Added virtual mixer and switch to support multiple BE - One FE can be connected to multiple BE, mixer control can be used to select the path - Fix crash if no path is selected Change-Id: Ibbf03ef1e1826acd92402b8275d72a580e643e66 Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/428950 GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-06-13ASoC: Tegra: Simplify eos detection logicRavindra Lokhande
Bug 200008134 Change-Id: I3f39c15a91fb76958b739636eddb6d8480898d21 Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/422171 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-06-13asoc: rt5639: lower verbose level of hp_amp_power()Shreshtha Sahu
hp_amp_power is called multiple times during widget power on and power on/off info is helpful in debugging. so moving print from info to debug. Bug 200010480 Change-Id: Id8db60f1617cd7a5d939ffcf8192201658d6fe96 Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com> Reviewed-on: http://git-master/r/422579 Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com> Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
2014-06-12Asoc: Alc5639:Fix/Improve Headset detection.Vinod Subbarayalu
-Update from vendor to fix/improve Headset detection. Bug 1514488 Bug 200004866 Change-Id: I7b8ca45b7f30c964013a34c8cdd5734efb544c81 Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com> Reviewed-on: http://git-master/r/419207 Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com> Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
2014-06-10Merge commit 'refs/changes/82/419382/1' of ssh://git-master:12001/linux-3.10 ↵Mandar padmawar
into promotion_build Change-Id: I9418a05ad5c56b2e902249218bac2fa594d99f56
2014-06-09Update from Realtek to resolve speaker pop noise coming back from LP0Rene Houle
Bug 200006476 Change-Id: I8269a39840a4e887f8c0405457f9484fd2956e9b Signed-off-by: Rene Houle <rhoule@nvidia.com> Reviewed-on: http://git-master/r/418512 Reviewed-by: Pierre Gervais <pgervais@nvidia.com>
2014-06-05Merge branch 'linux-3.10.40' into rel-21Ishan Mittal
Bug 200004122 Conflicts: drivers/cpufreq/cpufreq.c drivers/regulator/core.c sound/soc/codecs/max98090.c Change-Id: I9418a05ad5c56b2e902249218bac2fa594d99f56 Signed-off-by: Ishan Mittal <imittal@nvidia.com>
2014-05-23soc: codecs: max98090: fix interrupt registrationShreshtha Sahu
This patch clears previous interrupt and installs interrupt handler at the end of device probe. Also it enables jack detection only after handler is installed. This prevents, false/stale interrupt generation and hence device access by interrupt handler even before device probe has completed. Bug 1464724 Change-Id: I5988b500bb5e197c095eb64e254829635115994c Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com> Reviewed-on: http://git-master/r/398891 (cherry picked from commit 9368b1bb2d85286b8ef890d63e6f3d41c63b0bdc) Reviewed-on: http://git-master/r/411451 GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2014-05-21ASoC: Tegra: Add offload support for norrinRavindra Lokhande
- Add dai link for pcm and compress offload - Enable offload for norrin Change-Id: Ib938673fdd14faf7548dc8048bd6bfa6fab58baf Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/411554 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2014-05-21asoc: tegra: Support 24 bit, 192KHz formatVijay Mali
- Add 192Khz sample rate - Update clock rate for i2s clock - Update ahub clock Bug 1502003 Change-Id: I0013957e22a864670e67e3c808df270a8ca16fa1 Signed-off-by: Vijay Mali <vmali@nvidia.com> Reviewed-on: http://git-master/r/398989 (cherry picked from commit 6f3ec1ce0b301ebf2eb3533a3fd985f25132e4f2) Reviewed-on: http://git-master/r/411871 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-05-21asoc: rt5639: Add 192KHz sample rateVijay Mali
Bug 1502003 Change-Id: Ic90cf2781578adefdf108358ccff94676e6df146 Signed-off-by: Vijay Mali <vmali@nvidia.com> Reviewed-on: http://git-master/r/402848 (cherry picked from commit d90f64b19f2b8ef4f2e77134bc3d538e0c938b97) Reviewed-on: http://git-master/r/411870 GVS: Gerrit_Virtual_Submit Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2014-05-20ASOC: DPCM: Allow pause state as prev state for stop stateChandrakanth Gorantla
In case of seek, pause <-> stop <-> resume is the general sequence, so allow pause state to come before stop. Bug 1405523 Change-Id: Ib90d5c6cb780bdb5c9cedd33ae114f78603b2649 Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-on: http://git-master/r/401556 Reviewed-by: Deepa Madiregama <dmadiregama@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-05-14ASoC: Tegra: Fix concurrent pcm and compress playbackRavindra Lokhande
- Added path between BE and codec stream - use atomic reference count Bug 1495249 Change-Id: I895d22e1854c53f41362ed2a1cff63d88feb397b Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/405859 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2014-05-06tegra: Remove old SOC/Board supportDan Willemsen
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Change-Id: I06582980f2e9e88ab0e34bc5febc5d939fb77cc4 Reviewed-on: http://git-master/r/404934 (cherry picked from commit d1095251dadc17cb2c4f885f0d5d23359536f02b) Reviewed-on: http://git-master/r/405472 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2014-05-06ASoC: Tegra: Add compress offload volume controlDeepa Madiregama
Add alsa control for volume changes during compress offload playback. Bug 1498475 Change-Id: I5572338648a2fefdcf3095702bcbade35f1b0565 Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com> Reviewed-on: http://git-master/r/399682 Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-05-06ALSA: hda/realtek - Add support of ALC288 codecKailang Yang
commit 7c66593286bcd153e4868383e675673a27071bd5 upstream. Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06ALSA: hda - Fix silent speaker output due to mute LED fixupTakashi Iwai
commit 415d555e6b398b00fc1733f0113065a54df9106a upstream. The recent fixups for HP laptops to support the mute LED made the speaker output silent on some machines. It turned out that they use the NID 0x18 for the speaker while it's also used for controlling the LED via VREF bits although the current driver code blindly assumes that such a node is a mic pin (where 0x18 is usually so). This patch fixes the problem by only changing the VREF bits and keeping the other pin ctl bits. Reported-and-tested-by: Hui Wang <hui.wang@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06ALSA: ice1712: Fix boundary checks in PCM pointer opsTakashi Iwai
commit 4f8e940095536bc002a81666a4107a581c84e9b9 upstream. PCM pointer callbacks in ice1712 driver check the buffer size boundary wrongly between bytes and frames. This leads to PCM core warnings like: snd_pcm_update_hw_ptr0: 105 callbacks suppressed ALSA pcm_lib.c:352 BUG: pcmC3D0c:0, pos = 5461, buffer size = 5461, period size = 2730 This patch fixes these checks to be placed after the proper unit conversions. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06ALSA: hda - Enable beep for ASUS 1015EW. Trevor King
commit a4b7f21d7b42b33609df3f86992a8deff80abfaf upstream. The `lspci -nnvv` output contains (wrapped for line length): 00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04) Subsystem: ASUSTeK Computer Inc. Device [1043:115d] Signed-off-by: W. Trevor King <wking@tremily.us> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06ASoC: cs42l73: Fix mask bits for SOC_VALUE_ENUM_SINGLEBrian Austin
commit 1555b652970e541fa1cb80c61ffc696bbfb92bb7 upstream. The mask bits values were wrong for the SOC_VALUE_ENUM_SINGLE for the mono mix controls. Reported-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06ASoC: cs42l52: Fix mask bits for SOC_VALUE_ENUM_SINGLEBrian Austin
commit d31a33dd7792c7d6c11fda226a3b9e4fb7f86f95 upstream. The mask bits values were wrong for the SOC_VALUE_ENUM_SINGLE for the PCM/ADC Swap controls Reported-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06ASoC: cs42l51: Fix SOC_DOUBLE_R_SX_TLV shift values for ADC, PCM, and Analog ↵Brian Austin
kcontrols commit 7272e051157ccd5871b5d939548d0ba5a94a2965 upstream. The shift values for the ADC,PCM, and Analog kcontrols were wrong causing wrong values for the SOC_DOUBLE_R_SX_TLV macros Fixed the TLV for aout_tlv to show -102dB correctly Fixes: 1d99f2436d (ASoC: core: Rework SOC_DOUBLE_R_SX_TLV add SOC_SINGLE_SX_TLV) Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-30Asoc:tegra:rt5639: Fix false headset intr issueSharad Gupta
When the device enters to LP0, resetting of the audio codec makes the HP detection GPIO pin high and causes a false interrupt. If the codec gets reset before the interrupt is disabled by the machine driver, device never goes to LP0 or wakes up from LP0. Added fix to avoid this condition. Bug 1499603 Reviewed-on: http://git-master/r/400786 (cherry picked from commit cb430a1dcc1eab8dc993c5042a4683d81edb1b8d) Change-Id: I5fd498c13a384b501243b13a7faef6aa069aa7ab Signed-off-by: Sharad Gupta <sharadg@nvidia.com> Reviewed-on: http://git-master/r/402750 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit
2014-04-28ASoC: Tegra: fix offload for 64bit platformRavindra Lokhande
Bug 1501400 Change-Id: I50d43d6d042b40475a0594e90495baee63c19c7c Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/399786 GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2014-04-28ALSA: compress: add support for 32bit calls in a 64bit kernelRavindra Lokhande
compress offload does not support calls from a 32bit userspace in a 64 bit kernel. This patch adds support for ioctls from a 32bit userspace in a 64bit kernel Change-Id: I145f8414d27fbdda534375b607295edde18072f8 Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-on: http://git-master/r/399784 GVS: Gerrit_Virtual_Submit Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
2014-04-23ASoc: Tegra: max98090: secondary mic only for t14xNaveen Kumar S
Secondary MIC available in tegra14x platforms only. Hence adding appropriate conditions. Also, DMIC3 and DMIC4 are declared for max98091 and not max98090. bug 1457218 Change-Id: Ieeaff6890a195a4620f80b17ea9a9e0a1ff975c9 Signed-off-by: Naveen Kumar S <nkumars@nvidia.com> Reviewed-on: http://git-master/r/394119 (cherry picked from commit 3964e8be2fa3bc3e406be5e4dccbf980cc97b1fb) Reviewed-on: http://git-master/r/396361 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2014-04-23asoc: tegra: add tegra machine driverArun Kannan
Add base machine driver for Tegra platforms without codec. Bug 1448381 Change-Id: Ibd391b878abadacaebd5ee1ee2d38a2eec5d526c Signed-off-by: Arun Kannan <akannan@nvidia.com> Reviewed-on: http://git-master/r/385846 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2014-04-23asoc: tegra: spdif: update registersAndy Park
Update registers to meet t12x spdif controller specs Bug 1448381 Change-Id: I67f9f1e7fe2a50028214a784d0aedabf3e3691d1 Signed-off-by: Andy Park <andyp@nvidia.com> Signed-off-by: Arun Kannan <akannan@nvidia.com> Reviewed-on: http://git-master/r/385845 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> GVS: Gerrit_Virtual_Submit
2014-04-22ASoC: Tegra: Fix concurrent offload playbackChandrakanth Gorantla
taking care of avp state and stop dma in case of multiple streams Bug 1392136 Change-Id: Icc192816a10e8fab698ed464c763ef25c75ecf36 Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-on: http://git-master/r/398627 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2014-04-22ASoC: Tegra: Decrease ucode sizeDeepa Madiregama
Decrease the ucode size for offload playback Change-Id: I0e758f6295e5aa18e46f89c8e13a7ac5f3447994 Signed-off-by: Deepa Madiregama <dmadiregama@nvidia.com> Reviewed-on: http://git-master/r/398626 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Chandrakanth Gorantla <cgorantla@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>