summaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2011-06-22ARM: tegra: Enable cdev1 clk from board fileSumit Bhattacharya
Enabling cdev1 clk or DAP Mclk from board file instead of codec soc file because Mclk needs to be enabled before codec initialization. Also exposing set_parent() for cdev clocks so that it is possible to enable them from board file. Bug 827709 Bug 839210 Bug 821178 Change-Id: I6e0e15be9f9a2da98ce2ba89e3390bef1e2b93a7 Reviewed-on: http://git-master/r/37631 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-06-10ASOC: tegra: Enable/disable regulator vmic when recording with d-micViraj Karandikar
Support recording with d-mic in audio only use case Reviewed-on: http://git-master/r/34551 (cherry picked from commit 58ff88e8ef9b805381a1bef40be276224a43e175) Change-Id: Iea9b509b805542f5089fb3399d7796d23d9270e5 Reviewed-on: http://git-master/r/35376 Tested-by: Viraj Karandikar <vkarandikar@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-06-10ASOC: tegra: Correct DAPM routes for Headset and Int micViraj Karandikar
Split Headset to Headset Out and Headset In Use IN1L for Int mic and Headset (for WM8903) Remove unused variables and warning Bug 816278 Bug 830213 Reviewed-on: http://git-master/r/30142 Cherry picked from commit 170ccc20d6227faaf196a920e7812792c305e2ff Change-Id: I19cf5994d59b84c309473e094b706205d89b58af Reviewed-on: http://git-master/r/35368 Tested-by: Viraj Karandikar <vkarandikar@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-05-18[tegra alsa] support digital mic on ventanaRavindra Lokhande
added code to support digital mic on wm8903 for ventana. By default analog mic is enabled. To enable digital mic write 1 and to disable write 0 to /sys/devices/platform/soc-audio/enable_digital_mic Change-Id: I36e239d10404a9bc8446e275e5c59e9829409608 Reviewed-on: http://git-master/r/29615 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-04-19ASOC: tegra: Fix BT_SCO capture device maskingSumit Bhattacharya
bug 816348 Change-Id: I6551a867fdfcddc6689d6fcc1daaee11d8879e7f Reviewed-on: http://git-master/r/28182 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-04-19ASOC: tegra: Disable Sidetone.Manjula Gupta
Removes the Sidetone enable code, sidetone should not be enabled for normal capture. For Bug: 808731 Change-Id: I7159c023624c9d3f759cf52510e8a48551454db1 Reviewed-on: http://git-master/r/28013 Tested-by: Manjula Gupta <magupta@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-04-13ASOC: TEGRA: Make alsa more configurableSumit Bhattacharya
This change mainly takes care of following things: 1) Codec_dai code will use dap apis to query the board specific dap tables to find the codec configuration needed for a particular routing and will configure codec accordingly. So long we were configuring codec hardcodedly. 2) Moved all codec and board specific routing codes to codec specific files from tegra_soc_controls.c. 3) Modifying the codec routing logic to make it simpler and robust. 4) Except DAP Mclk we will turn off all other audio related clocks when not in use. 5) I2s and SPDIF bit clock frequencies will be dynamically calculated based on the stream properties. 6) DAS power management and DAP MCLK related codes are moved to codec dai since they are more closely related to codec than i2s. Change-Id: I531558bec108af5828c8ff2ed932f4d25e00afdb Reviewed-on: http://git-master/r/24683 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-04-12ASOC: tegra: Check HP and mic jack status at initSumit Bhattacharya
Adding code to scan headphone and mix gpios during alsa init to check if headphone/mic jacks are connected during bootup or not. Also removing registering of headphone/mic DAPM pins with jack detection mechanism. We should not enable DAPM paths just depending on which jacks are connected. DAPM paths should be enabled/disabled only when libaudio change alsa routing paths. Change-Id: I2176176f71b35eaa0ad5405052a83b834cdca17e Reviewed-on: http://git-master/r/27176 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-04-11ASOC: tegra: Restore jack switch state after Suspendtegra-10.11.7Manjula Gupta
Adds a function to restore jack state after suspend, it will notify the upper layer about the current states of the jack after suspend. In suspend state the notifier function doesn't get triggered, leaving the system in an unknown state. This function will be called on resume after suspend. Fix for Bug: 804328 Change-Id: I89ab32a6d775904fb1a71725d4e1fbda89002431 Reviewed-on: http://git-master/r/26853 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Boris Suvorov <bsuvorov@nvidia.com> Tested-by: Boris Suvorov <bsuvorov@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
2011-04-07ARM: tegra: audio: Enable external speaker ampScottPeterson
Enable the external speaker amp on Ventana. Requires that the avdd_amp regulator be enabled. Bug 809015 Change-Id: I0ec741655ed9629f8ad45adc43f5dfcba7369c60 Reviewed-on: http://git-master/r/26653 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Tested-by: Ching Kuang (Roger) Hsieh <rhsieh@nvidia.com> Reviewed-by: Boris Suvorov <bsuvorov@nvidia.com> Tested-by: Boris Suvorov <bsuvorov@nvidia.com>
2011-03-29ASoC: Add post-CODEC bias level callback for machine driverMark Brown
Currently the machine driver can only do bias level configuration before the CODEC bias level is brought up. This means that the machine cannot do any configuration which depends on the CODEC bias level being maintained. Provide a post-CODEC callback which allows the machine driver to do things like enable the FLL on a CODEC which is brought down to BIAS_OFF when idle. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Cherry-picked from mainline kernel. Change-Id: Ib0a8533e3762dfc67ee21209a28e9a6603d31a37 Reviewed-on: http://git-master/r/23058 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-03-29ASoC: tegra: make dependency on switch conditionalAllen Martin
Make dependency on Android switch class driver conditional so driver compiles on configurations with switch disabled Change-Id: If0b3ad9b4582bd07b79f27ca3252eeb45050b7c8 Signed-off-by: Allen Martin <amartin@nvidia.com> Reviewed-on: http://git-master/r/24364 Reviewed-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-03-23[tegra ALSA] Check uninitialized codecXin Xie
bug 804615 Change-Id: I11d450febb9ab7b5576f2f67cbf03b8d953c3669 Reviewed-on: http://git-master/r/23885 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
2011-03-21arm: tegra: Fix the right channel audio issue.Vinod G
Bug 803444 Corrected the missing code to enable the Right channel with headset mode. Change-Id: I2728b9d5a07ad9dad9cc64517ef3f4bc4990a8df Reviewed-on: http://git-master/r/23418 Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Tested-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-03-17tegra-alsa: Integrate spdif driver with alsaSumit Bhattacharya
Bug 783013 Bug 788021 Change-Id: I97425d5a24095fe8e8e5b76b9a30eb621999e507 Reviewed-on: http://git-master/r/22330 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com>
2011-03-16ASoC: tegra: whistler boot failuretegra-10.11.ER2noswal
whistler not booting because switch device required by jack driver not initialised Change-Id: I447a9fd179f08f38fc9e2444650ce7511d2092ee Reviewed-on: http://git-master/r/22993 Tested-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-03-14[tegra ALSA] Enable mic jack detectionChao Jiang
Added support on Mic jack detection on Tegra. - External mic jack detection could be probed by trigger an interrupt via specific gpio or pull-up a generic gpio pin. The patch enabled the later option. - Tegra reference boards have gpio to switch external mic and internal mic. The switching is done in the patch automatically once jack happened. fixes bug 766757 Change-Id: If530f237d4564d1de6c019b206910f2a0ffe4163 Reviewed-on: http://git-master/r/22033 Reviewed-by: Chao Jiang <chaoj@nvidia.com> Tested-by: Chao Jiang <chaoj@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-03-08[tegra ALSA] Support built-in speakerChao Jiang
Added support for built-in speaker. Although audio subsystem on different boards have various topology, Tegra boards usually have amplifier connected to codec. The patch added a control interface to expose speaker control widget to user space. Amplifier could be driven automatically if internal speaker turned on. fixes bug 766757 Change-Id: Ic6b8d0c58830a71ff8d6c09d1268cbd97982d08b Reviewed-on: http://git-master/r/21985 Reviewed-by: Chao Jiang <chaoj@nvidia.com> Tested-by: Chao Jiang <chaoj@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-03-04ASoC: WM8903: Ignore no-touched pin explicitlyChao Jiang
Ignore no-touched pins. This will help to set up gpio pins safely. Change-Id: Iff9f3249b9e3594ede5c75cce59f38c2ad432f92 Reviewed-on: http://git-master/r/20895 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-03-04ASoC: WM8903: Expose gpio pins via GPIOLIBChao Jiang
Exposed gpio pins on wm8903 via GPIOLIB. This will help ALSA control drivers to manipulate the codec much more easier. Change-Id: I070eafa6e9a533cc0c285c1780d1b8393105def1 Reviewed-on: http://git-master/r/20883 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-03-04ASoC: WM8903: Add debugfs entries for wm8903Chao Jiang
Added debugfs entries for wm8903. Change-Id: I2b2801381a2e82fc4b8929853ba9653569059e33 Reviewed-on: http://git-master/r/20880 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-03-04[tegra alsa] reset vmid and bias for wm8903Ravindra Lokhande
reset vimd and bias registers for wm8903 codec when codec bias level is off. fix for bug 773327 Change-Id: Iad67afef69f8c016b5f732947ad991c400cb7fd4 Reviewed-on: http://git-master/r/20934 Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Tested-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-03-03tegra-alsa: return accurate pcm pointer positionSumit Bhattacharya
Bug 793968 Change-Id: Ia4ee5a83d18b409dd223f70fb1a5a78fad16a08e Reviewed-on: http://git-master/r/20403 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-02-22[tegra alsa] headphone detectionNikesh Oswal
added headphone detection logic for WM8753 on whistler Change-Id: I7c1c2a75480050ba03cb037393ead44761a7706f Reviewed-on: http://git-master/r/20298 Tested-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-02-22tegra-alsa: Cache das registers before suspendSumit Bhattacharya
Caching das registers before system suspend and restoring them during system resume. Also moved das power mode calls from tegra_pcm to tegra_i2s interface. Bug 792879 Bug 789967 Change-Id: I15a5f41a1aab6d74a8f5e29db25a93b26c4d4111 Reviewed-on: http://git-master/r/20292 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-02-22wm8903: Fix wm8903_resume() implementationSumit Bhattacharya
In wm8903_resume() codec should be powered up after restoring cached registers. Otherwise sequencer registers are getting overwritten after powering up of codec which was shutting down the codec during resume. Bug 792879 Bug 789967 Change-Id: Ic342a490f988ea1aa9597e6cd68e7d0a1000210a Reviewed-on: http://git-master/r/20270 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-02-18alsa: Set restrictions on period sizetegra-11.2.0Sumit Bhattacharya
Restrict period size to be multiple of 8 and period count to be integer. This is required to prevent audio breaks for playback through BT SCO. Bug 771510 Change-Id: If15631512bc5ce5a4358342b523da0a5a020cc2d Reviewed-on: http://git-master/r/19731 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-02-10[tegra ALSA] Added headphone jack detectionChao Jiang
Headphone jack detection is enabled with this patch. The jack will be reported via /sys/class/switch interface to user space. fixes bug 766757 Change-Id: I58908e7de1025b17cdf37079d5650aa5f503dcdd Reviewed-on: http://git-master/r/18707 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Chao Jiang <chaoj@nvidia.com> Tested-by: Chao Jiang <chaoj@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-02-09[tegra alsa] generic codec DAINikesh Oswal
- use proper name for generic codec DAI Change-Id: I29eacc43e6922b28f440596fdbb9c544e12537f6 Reviewed-on: http://git-master/r/18846 Tested-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-02-08[tegra alsa] use generic codec DAINikesh Oswal
- use generic codec DAI for BT-SCO usecase Change-Id: Ied03e0ce2617d7b9ce8c8fd176f0b601a8896796 Reviewed-on: http://git-master/r/18716 Tested-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-02-07tegra alsa: Implement generic codec interfaceSumit Bhattacharya
Change-Id: I210dea5af60e11326ad23bafa78e937d4932e58c Reviewed-on: http://git-master/r/17564 Reviewed-by: Sachin Nikam <snikam@nvidia.com> Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-02-03[tegra alsa] configure i2s2 using platform dataRavindra Lokhande
use platform data to configure i2s2. Change-Id: If655bc96853ee85114381b5ae979ba0984e25f65 Reviewed-on: http://git-master/r/18028 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
2011-01-25sound: tegra: Enabled Recording and fixed volumeNikesh Oswal
- Enabled Recording for WM8753. - Fixed low Volume in Play Back by enabling LDO7 - Fixed noise in PlayBack and Recording by using a bclk of 2.82 Mhz Bug 771506 Change-Id: I0c43adafa83969929cfdff700a71a68225ab4c22 Reviewed-on: http://git-master/r/16260 Tested-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Tested-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-01-20[tegra ALSA] use i2s platform data for i2s setupRavindra Lokhande
-i2s will be configured by using platform data passed to i2s driver. - removed i2s code from tegra_pcm.c file - clocks are enabled from i2s driver Change-Id: I4ed30903b16ae86173d7a802d1006f5be474531b Reviewed-on: http://git-master/r/16252 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
2011-01-19[tegra-alsa] Add support for second i2s deviceNikesh Oswal
Added support in WM8753 soc file for second i2s dai and corresponding voice dai Change-Id: I93c2e06411b374108f72dfa7a58273575c856560 Reviewed-on: http://git-master/r/16091 Tested-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-01-17[tegra ALSA] add support for second i2sRavindra Lokhande
-Added support for second i2s device. -Moved i2s related code to tegra_i2s.c -Added second i2s device in board file. Change-Id: Ifa659dbceda840a15b445ea997882a2d3ef8ca50 Reviewed-on: http://git-master/r/14726 Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Tested-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-01-16[ARM] sound: soc: tegra: wm8753 codec interfaceSachin Nikam
Adding support for Audio codec wm8753. This is an interface between sound and codec driver. Change-Id: Iabf5ab17b40617d62cfebda93a0742f77f4f9013 Reviewed-on: http://git-master/r/16014 Tested-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-01-13[tegra ALSA] Set default Mic gain to 19.2dBtegra-10.11.2Manjula Gupta
Setting deafult gain to 19.2dB for record, as there is no interface to change gain for the recorded audio setting it to 80% of max gain by default. This fixes the low volume level issue for the audio streams recorded through mic. For Bug 763227 Change-Id: Id141ed235c2a8d1ac3d26bc7d0ad03e26e7c8396 Reviewed-on: http://git-master/r/15790 Tested-by: Manjula Gupta <magupta@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Masood Shaikh <mshaikh@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-01-12[tegra ALSA] separated codec and control codeRavindra Lokhande
- separated codec and control code - codec specific code is added to tegra_soc_xxx - alsa controls code added to tegra_soc_controls Fixes bug 759167 Change-Id: Ib8cd19364b3d4a0cb726d20b4eb1a7fab4017bf1 Reviewed-on: http://git-master/r/15637 Tested-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-01-10[tegra alsa] Add routing supportSumit Bhattacharya
Add three alsa controls to expose selection of playback device, capture device and call mode.Alsa kernel will route pcm data to the selected output/input port. bug 771510 Change-Id: Ibdeebbd799b2ae36046a77327ec8b6a3b01553a9 Reviewed-on: http://git-master/r/14729 Tested-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-01-10merging android-tegra-2.6.36 into git-master/linux-2.6/android-tegra-2.6.36Nitin Kumbhar
Conflicts: arch/arm/mach-tegra/fuse.c drivers/misc/Makefile Change-Id: I300b925d78b31efe00c342190d8dbd50e2e81230
2011-01-08[ARM] Kconfig: Option to select audio codecSachin Nikam
This will provide option to select audio codec for your board. Bug 759167 Change-Id: I7a8a5fb6ee43df5eb439f0cbfbeb2bc9bdcf9794 Reviewed-on: http://git-master/r/15111 Tested-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-01-08[tegra ALSA] making use of das driverRavindra Lokhande
Removed direct call to das registers, instead using calls of das driver. Change-Id: I230a98950b06a9b3d36cd983353ad810b1d52290 Reviewed-on: http://git-master/r/15008 Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2011-01-07ALSA: hda: Use LPIB quirk for Dell Inspiron m101z/1120Daniel T Chen
commit e03fa055bc126e536c7f65862e08a9b143138ea9 upstream. Sjoerd Simons reports that, without using position_fix=1, recording experiences overruns. Work around that by applying the LPIB quirk for his hardware. Reported-and-tested-by: Sjoerd Simons <sjoerd@debian.org> Signed-off-by: Daniel T Chen <crimsun@ubuntu.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-07sound: Prevent buffer overflow in OSS load_mixer_volumesDan Rosenberg
commit d81a12bc29ae4038770e05dce4ab7f26fd5880fb upstream. The load_mixer_volumes() function, which can be triggered by unprivileged users via the SOUND_MIXER_SETLEVELS ioctl, is vulnerable to a buffer overflow. Because the provided "name" argument isn't guaranteed to be NULL terminated at the expected 32 bytes, it's possible to overflow past the end of the last element in the mixer_vols array. Further exploitation can result in an arbitrary kernel write (via subsequent calls to load_mixer_volumes()) leading to privilege escalation, or arbitrary kernel reads via get_mixer_levels(). In addition, the strcmp() may leak bytes beyond the mixer_vols array. Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-07ALSA: hda - Enable jack sense for Thinkpad Edge 11Manoj Iyer
commit 6027277e77df2d2893d906c42f5c9f9abcb731e0 upstream. Add a quirk entry for Thinkpad Edge 11 as well as other TP Edge models. Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-07ASoC: fix deemphasis control in wm8904/55/60 codecsDmitry Artamonow
commit 3f343f8512c7882a3637d9aea4ec6b3801cbcdc5 upstream. Deemphasis control's .get callback should update control's value instead of returning it - return value of callback function is used for indicating error or success of operation. Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-07ASoC: WM8580: Fix R8 initial valueSeungwhan Youn
commit a0968628097380be52db8b4664da98fc425546a5 upstream. Acc to WM8580 manual, the default value for R8 is 0x10, not 0x1c. Signed-off-by: Seungwhan Youn <sw.youn@samsung.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-07ASoC: Fix swap of left and right channels for WM8993/4 speaker boost gainUk Kim
commit ed8cc471d75365f8590c76f580def899d58028c0 upstream. SPKOUTL_BOOST start from third bit, SPKOUTLR_BOOST start from 0 bit. Signed-off-by: Uk Kim <w0806.kim@samsung.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-07ALSA: hda: Use model=lg quirk for LG P1 Express to enable playback and captureDaniel T Chen
commit 77c4d5cdb81d25a45fbdfb84dd3348121219a072 upstream. BugLink: https://launchpad.net/bugs/595482 The original reporter states that audible playback from the internal speaker is inaudible despite the hardware being properly detected. To work around this symptom, he uses the model=lg quirk to properly enable both playback, capture, and jack sense. Another user corroborates this workaround on separate hardware. Add this PCI SSID to the quirk table to enable it for further LG P1 Expresses. Reported-and-tested-by: Philip Peitsch <philip.peitsch@gmail.com> Tested-by: nikhov Signed-off-by: Daniel T Chen <crimsun@ubuntu.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>