summaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2011-11-30asoc: max98088: add control to enable/disable digital micNikesh Oswal
Bug: 862023 Change-Id: I1784a813ad8ef224f0587ba977518c2940b66e01 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/55674 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R960030914089aa1eefcbb0d8ac2eda28c8095785
2011-11-30ASoC: Tegra: WM8903: Support speaker and dmicSumit Bhattacharya
Complete DAPM route map for cardhu and ventana. Expose more alsa controls to facilitate codec routing. Properly handle speaker, internal mic and external mic routing events. Bug 872652 Change-Id: I4620d08ade1f455a4075d9822fcfd5e34474133f Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/55669 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R42bcced2737f035bb1888fac064ee20fa6371143
2011-11-30asoc: max98088: disable the irq when entering suspendNikesh Oswal
Bug: 862023 Change-Id: Ibaa3ffbb9e81736e45c2bccb0d6e1828cde4025b Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/55474 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rf4af409992ad20aa854736727df5060ce82435ed
2011-11-30asoc: tegra: max98088: add jack and switch notifier codeNikesh Oswal
Bug: 862023 Change-Id: I0302091654c5394733264712269be4fe0aefa39a Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/55466 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R3c915a05a2f6bc90ff24d9ee6625dcadd92f93e8
2011-11-30asoc: max98088: add headset/headphone detection codeNikesh Oswal
Bug: 862023 Change-Id: Ieb9247cef5feecf3e241d8980f9c4376cadf2965 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/55465 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Rebase-Id: Rf725fad369dbbe4d5f6eaa7b667170a127fa0a08
2011-11-30asoc: tegra: wm8753: add jack notifier codeNikesh Oswal
Bug: 862023 Change-Id: I1429549d5fd0d365075ca798430ab7a9274b0aa9 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/57052 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R22a1d25c0bb04f0fbd26b6305b2a90a66508740a
2011-11-30asoc: tegra: wm8753: correct dapm map and route entriesNikesh Oswal
Bug: 862023 Change-Id: I8e7e1ad90e0a38bd3380d1b4c3cabd6751906288 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/57050 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R6e5a92f713a6efd6539857ec0e0dea8881ca6553
2011-11-30asoc: wm8753: add headphone detection codeNikesh Oswal
Bug: 862023 Change-Id: I26789c9e5bc7ebd51f086a3be650186d8e541519 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/57035 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Rebase-Id: Rfe45465b2369c8cbb864233e33ff70367a5a1e2d
2011-11-30ASoC: Tegra: SPDIF: Set 2x spdif_out clock for T30Sumit Bhattacharya
It is a WAR to have better audio quality for HDMI audio over SPDIF. Bug 872652 Change-Id: I896589fd60980c155fae5900618734e1912b4a38 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/55143 Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Tested-by: Gerrit_Virtual_Submit Rebase-Id: Re1fbe68f78d561aea3f7d1f0492086ae0deea742
2011-11-30ASoC: Tegra: Modifiy I2s and AHUB clock managementSumit Bhattacharya
Remove redundant ref counting for I2s and AHUB clocks. For Tegra30 enable AHUB clocks before I2s registers are accessed. Disable clocks when they are not in use. Bug 872652 Change-Id: I7ec4e45cecd0391d0b5a2765214d6c03fa5cc339 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/55005 Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Tested-by: Gerrit_Virtual_Submit Rebase-Id: R886c4a1a472c6b68240f2899a0b0be94c7ac9966
2011-11-30ASoC: Tegra: Enable SPDIF DAI for Tegra30Sumit Bhattacharya
Bug 872652 Change-Id: Ia35ba728859bcba1bff1ce73c622203d027bc8f9 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/54989 Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Tested-by: Gerrit_Virtual_Submit Rebase-Id: Rd23d694c056cefb76669c510b1367128255f3835
2011-11-30ASoC: Tegra: SPDIF: Set audio sample rate to HDMISumit Bhattacharya
Set Audio Samplerate and source information to HDMI driver so that it can configure HDMI registers accordingly. Bug 872652 Change-Id: Ifdbf9a1d192a870d99846e936c6c215ee999473d Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/54972 Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Tested-by: Gerrit_Virtual_Submit Rebase-Id: Rec9f21701c5178208597024817f5751652528993
2011-11-30ASoC: Tegra: Spdif: Add Tegra30 spdif driverSumit Bhattacharya
Bug 872652 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Change-Id: I2c5006a68d590b9215db056a614566b926287fda Reviewed-on: http://git-master/r/54954 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Tested-by: Gerrit_Virtual_Submit Rebase-Id: R89c166fa6563318dcbb0ca6e25f7dcce6db3c134
2011-11-30asoc: tegra: fix register settings in ahub driverNikesh Oswal
Change-Id: I68d6425e0f5c82762e34ec0033f571be22ca5413 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: http://git-master/r/55232 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Reb05fe9c08d23665c2190fe057c0587ebc800d5b
2011-11-30ASoC: Tegra SPDIF: Set ch status and fifo attn bitsSumit Bhattacharya
Add code to enable channel status transmit and set channel status bits according to pcm stream sample rate. Set transmit attention level to 4-slot and remove redundant spdif clock refcounting code. Bug 872652 Change-Id: I1bb1928e263c033993fa1f4db7609b373976da62 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-on: http://git-master/r/53976 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Reaf4877ab3f05cd6c6e37908fc284bb93315f17f
2011-11-30ASoC: Tegra: Enable SPDIF DAI for Tegra20Sumit Bhattacharya
Bug 872652 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Change-Id: Ia58d12a6bf7d99b0679cf0dc5f0d727af06903c8 Reviewed-on: http://git-master/r/53812 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R0535370b359e6e69f554bb39f9d393c33a3557c9
2011-11-30ASoC: Tegra: Enable tegra20_spdif only for tegra2xSumit Bhattacharya
Bug 872652 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Change-Id: I5734ebc76c979aaf7c65144857af5377f50a81f2 Reviewed-on: http://git-master/r/53820 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rc3a878a59b4ffee22d87e8c44fae9bc5592882fe
2011-11-30ASoC: Tegra: Rename TEGRA_SPDIF to TEGRA20_SPDIFSumit Bhattacharya
Bug 872652 Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com> Change-Id: I6fd1a0662934eb713e5e113d548fc6976a798d07 Reviewed-on: http://git-master/r/53745 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rd8658a538045ebf7107d1a2268ef11720a2c51c5
2011-11-30ASoC: tegra: WM8753: Enable avddio_audio in ALSASumit Bhattacharya
Bug 862023 Change-Id: Ifed4a2b524369d59f475ac6380f95db4e8c9ed44 Reviewed-on: http://git-master/r/52523 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Rebase-Id: Re0f3994c5526f067af332d1626bf7005516aca5c
2011-11-30ASoC: tegra: Add MAX98088 machine driverSumit Bhattacharya
Bug 862023 Change-Id: I715ce95e3cece3fc8eeea81ab6b95ad6de3b2a1c Reviewed-on: http://git-master/r/50907 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R736182cd182138901b3f79b6fbfe3adee8ce7105
2011-11-30ASoC: tegra: WM8753: Add WM8753 machine driverSumit Bhattacharya
Bug 862023 Change-Id: I98842fef1c4617724159414132c772ae20495062 Reviewed-on: http://git-master/r/49873 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Raf35ea34cc87b64d96782a03fd296451b43c2646
2011-11-30ASoC: Tegra: Tegra3 requires SND_SOC_TEGRA30_AHUBSumit Bhattacharya
Bug 862023 Change-Id: Ie16d410c7021640898bfbc8fcf451d14e832af6f Reviewed-on: http://git-master/r/47155 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: Raa466f8f365399c0091a173752dfc9d1c83316f8
2011-11-30ASoC: Tegra: Support Cardhu board in tegra_wm8903.cStephen Warren
Cardhu is a Tegra30 tablet reference design. In terms of audio, it is extremely similar to Harmony/Ventana, except that the WM8903 codec is attached to a different I2C bus ID, and different I2S port. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: Re7572cfde2e359dfb8cf16a5eff38e271f25479d
2011-11-30ASoC: Tegra: Add Kconfig and Makefile support for Tegra30Stephen Warren
Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: R6c7ea5a4557593b11ab3cbe2da76ba74b19c8efc
2011-11-30ASoC: Tegra: Add tegra30-ahub driverStephen Warren
The AHUB (Audio Hub) is a mux/crossbar which links all audio-related devices except the HDA controller on Tegra30. The devices include the DMA FIFOs, DAM (Digital Audio Mixers), I2S controllers, and SPDIF controllers. Audio data may be routed between these devices in various combinations as required by board design/application. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: R5c2d6b0512231268c773be879cabb11a44d181b8
2011-11-30ASoC: Tegra: Add tegra30-i2s driverStephen Warren
This provides an ASoC DAI interface for Tegra 30's I2S controller. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: R7ff210416560aa776e2e751ceba765083f4ce6e5
2011-11-30ASoC: Tegra: utils: Add support for Tegra30 devicesStephen Warren
Tegra30 has some additional clocks that need to be manipulated, names some clocks differently, runs PLLs at different base rates, etc. The utility code needs to handle this. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: R295313c25d9eae15a7cc423953f50f9132790c9e
2011-11-30ASoC: Tegra: Complete Tegra->Tegra20 renamingStephen Warren
Rename Tegra20-specific Kconfig variables, module filenames, all internal symbol names, clocks, and platform devices, to reflect the fact the DAS and I2S drivers are for a specific HW version. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: Re5b72edd9dff4c93466b2db96dd40eb708343ccb
2011-11-30ASoC: Tegra: Rename Tegra20 I2S/DAS driver filesStephen Warren
Rename these files so they include a specific hardware version in their filenames. The contents is only touched minimally so that git's rename tracking operates correctly; renaming all symbols in the files results in a diff so large that the rename detection fails. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: Reba100e9e3080ff3b1ff455db4dc3ae166468744
2011-11-30ASoC: Tegra: Make Tegra20 drivers depend on Tegra20 supportStephen Warren
Without this, the Tegra20 drivers can be built into a kernel that's built for Tegra30. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: R35d2a776e6a245271c77e4c98e9e80f698e4a9aa
2011-11-30ASoC: Tegra: Introduce separate Kconfig variable for DAS driverStephen Warren
This is mainly for symmetry with a future Tegra30 driver, where the equivalent of the DAS (the AHUB) is useful separately from the I2S driver. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: R88e3410c1d13524fac081da2f5e39dc0a2161dee
2011-11-30ASoC: Tegra: Remove unnecessary includesStephen Warren
These includes aren't needed, and the files are about to be renamed. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: Ra771bcec753a844849744da8d7c67f403e7a1dcd
2011-11-30CHROMIUM: ASoC: Tegra: Double-buffer DMA in HWStephen Warren
Avoid audio FIFO underflow due to DMA ISR latency. MODE_ONESHOT works like this: * CPU tells DMA HW to make a transfer . * DMA HW performs the transfer, fires an interrupt, and goes idle. * Interrupt latency (including e.g. LP2 exit time) is seen here. * DMA driver ISR programs the next transfer, from a SW transfer queue. In that model, the interrupt latency must be hidden by the I2S FIFO, which is 16 samples IIRC, i.e. a very short time (~0.3mS @ 48KHz). MODE_CONTINUOUS_SINGLE works like this: * CPU tells DMA HW to make a transfer . * CPU tells DMA HW to make a second transfer. * DMA HW performs the transfer, fires an interrupt, and starts the second transfer immediately. * DMA driver ISR programs the next (third) transfer, while the second is in progress, from a SW transfer queue. Thus any DMA ISR latency is seen between transfer N completing and transfer N+2 starting (rather than N+1), since the HW itself already knows how to perform transfer N+1 before transfer N completes. Hence, the system is tolerant of much larger latencies. BUG=chromium-os-partner:3294 TEST=Seaboard clamshell: "aplay sin-500hz-48000-60s.wav" multiple times while system idle and power LED flickering indicating CPU power saving. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olofj@chromium.org> Rebase-Id: R4063e2abdf57f47ebe4dc63488056268747bea82
2011-11-30ASoC: Tegra: I2S: Modify clock management logicStephen Warren
Modify the clock management logic to match that implemented in the upcoming Tegra30 ASoC driver. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: R2e5a6c0989f3f91c95cf4e6ad890fc236bcd8fa5
2011-11-30ASoC: Tegra: Conflict with legacy audio APIsStephen Warren
Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: R2f3e8ab21f02ee24f59600862729a494ca054bda
2011-11-30arm: tegra: dma: Adding client name with dma allocation.Laxman Dewangan
By changing the dma allocation API to take the client name, it is easy to track who is allocated the DMA channels when we run out of the DMA channels. Original-Change-Id: I016011cfd74089fed0da1bc0f121800017ce124a Reviewed-on: http://git-master/r/28031 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Original-Change-Id: I048bcb87f95ee6d8ad2fdce993a1758dc5071666 Rebase-Id: Rf6d68d90cb4a8e91be3ec921cadc116f3a36184c
2011-11-26ALSA: hda - fix ELD memory leakWu Fengguang
Backported from commit b95d68b8179764e29558b75cec35ef4a6a98925b. memset(eld) clears eld->proc_entry which will leak the struct snd_info_entry when unloading module. Fix it by - memset only the fields before eld->eld_buffer - set eld->eld_valid to true _after_ all eld fields have been filled Cc: Pierre-louis Bossart <pierre-louis.bossart@intel.com> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-26ALSA: hda - Fix the connection selection of ADCs on Cirrus codecsTakashi Iwai
commit 05ee7964a470d29889ac48cc8274c1b5a1904a11 upstream. spec->cur_adc isn't set until cs_capture_pcm_prepare() is called although the driver tries to select the connection at init time and at auto-mic switch. This results in the access to the widget NID 0, which is obviously invalid, also a wrong capture source. This patch fixes the issue by issuing the connect-select verb conditionally at appropriate places. Reported-and-tested-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-21ALSA: usb-audio - Fix the missing volume quirks at delayed initTakashi Iwai
commit dcaaf9f2c16b56f8bb316881fcd3f15c18fc71e7 upstream. In the recent usb-audio driver, the initialization of volume ranges may be delayed when the device doesn't respond well at the probing time. But the volume quirks for certain devices are applied only in mixer_ctl_feature_info() thus only at the very first probe and will be missing when the volume range is initialized later. This patch moves the volume quirk code to be always called from the volume-range extraction (get_min_max()), so that the quirks are properly applied in the later init time. Reported-and-tested-by: Alexey Fisher <bug-track@fisher-privat.net> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-21ALSA: usb-audio - Check the dB-range validity in the later read, tooTakashi Iwai
commit 9fcd0ab130579d9742538340edda3225f2b49a3e upstream. When the initial check of dB-range failed due to the read error, try to check again at the later read, too. When an invalid dB range is found, remove TLV flags and notify the mixer info change. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-21ASoC: Don't use wm8994->control_data in wm8994_readable_register()Mark Brown
commit 8eeea521d9d0fa6afd62df8c6e6566ee946117fa upstream. The field is no longer initialised so this will crash if running on wm8958. Reported-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-21ALSA: hda - Don't add elements of other codecs to vmaster slaveTakashi Iwai
commit aeb4b88ec0a948efce8e3a23a8f964d3560a7308 upstream. When a virtual mater control is created, the driver looks for slave elements from the assigned card instance. But this may include the elements of other codecs when multiple codecs are on the same HD-audio bus. This works at the first time, but it'll give Oops when it's once freed and re-created via reconfig sysfs. This patch changes the element-look-up strategy to limit only to the mixer elements of the same codec. Reported-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-21ALSA: hda - fix internal mic on Dell Vostro 3500 laptopJulian Wollrath
commit f7f9bdfadfda07afb904a9767468e38c2d1a6033 upstream. Fix the not working internal mic on Dell Vostro 3500 laptop by introducing the new model dell-vostro-3500. Signed-off-by: Julian Wollrath <jwollrath@web.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-11ASoC: Ensure we always delay for WM8962 FLL when starting from SYSCLKMark Brown
commit 0b7dd6ad92b6cace35dc5d06d6e236c2751c85dc upstream. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-11ASoC: Ensure the WM8962 oscillator and PLLs start up disabledMark Brown
commit 2af8de8c39cf58e5a5e40a9d5d71332da98e6ba7 upstream. Since there is no current software control for these they would otherwise be left enabled, consuming power. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-11ASoC: Ensure WM8962 PLL registers are resetMark Brown
commit 4f4488abc97c1c27ff029f887944e6a6da1f5733 upstream. The WM8962 has a separate software reset for the PLL registers. Ensure that these are reset also on startup. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-11ASoC: WM8904: Set `invert' bit for Capture SwitchHong Xu
commit 5a7c5f26df3c0122814dfa1c13ef6dfbdbffdb86 upstream. Set `invert' bit for Capture Switch. Otherwise analogue is muted when Capture Switch is ON. Signed-off-by: Hong Xu <hong.xu@atmel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-11ASoC: Leave input audio data bit length settings untouched in wm8711_set_dai_fmtAxel Lin
commit d558cfc30064a97c2c65dbd2b3a4f5a1dea7ec1b upstream. Current implementation in wm8711_set_dai_fmt always clear BIT[3:2] (the Input Audio Data Bit Length Select) of WM8711_IFACE(07h) register. Input Audio Data Bit Length Select bits are set by wm8711_hw_params, we should leave BIT[3:2] untouched in wm8711_set_dai_fmt. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-11ASoC: wm8711: Fix wrong mask for setting input audio data bit length selectAxel Lin
commit 04c57163c8edfbc50e022737014069998ba4fc5f upstream. The Input Audio Data Bit Length Select is controlled by BIT[3:2] of WM8711_IFACE(07h) register. Current code incorrectly masks BIT[1:0] which is for Audio Data Format Select. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-11ALSA: hda - Fix a regression for DMA-position check with CA0110Takashi Iwai
commit 69f9ba9b0cad67bc03f0a096f7f274de795ca844 upstream. The regression-fix in 3.1 for the check of DMA-position validity caused yet another regression for CA0110. As usual, this hardware seems working only with LPIB properly. Adding the appropriate driver-caps bit to force LPIB fixes the problem. Reported-and-tested-by: Andres Freund <andres@anarazel.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>