summaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2010-12-22ENGR00136035 MX28 ALSA: Pcm read error during arecording and aplayingLionel Xu
Reslove the pcm read error when opening arecord and aplay at the same time. Signed-off-by: Lionel Xu <r63889@freescale.com> (cherry picked from commit c8d1b31e0fde30874d352c216a44ec1ad05424e1)
2010-10-21ENGR00132832-2 SSI: fix ssi errors caused by dual fifo sdma scriptZeng Zhaoming
MX5 dual fifo breaks mx50 ssi, because new sdma script only support mx51 and mx53. Fix it setting ssi fifo according to cpu model. Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
2010-10-19ENGR00132153 sgtl5000: do not enforce symmetry if rate is unknownAlan Tull
If a playback and a record stream are started together, the alsa userspace may not not do the necessary ioctl calls for the audio driver stack to know the sample rate and sample size of the first stream before starting the second stream, i.e.: arecord -D plughw:0 -d 10 -f S16_LE -r 44100 -c 2 -traw | aplay -D plughw:0 -f S16_LE -r 44100 -c 2 -traw Normally we want to the driver to make sure that the second stream does not request a different playback rate/bit size from the first stream. But at that point, the driver thinks that the sample rate and sample size are 0. So in that case do not enforce constraints. This still allows for usecases where play is started first and then record is started after a delay while playback continues. Signed-off-by: Alan Tull <alan.tull@freescale.com>
2010-10-18ENGR00131932-2 ssi, sound: Upgrade SDMA scripts to v1.1.0 versionZeng Zhaoming
New sdma script support double ssi fifo. This feature is not enabled by default in mx51 and mx53 configs. Enable double ssi fifo for audio, if underrun/overrun happens, It is possible to cuase stereo channel swapped and can't be recovered. Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
2010-10-15ENGR00132525-3 sgtl5000: audio clock gatingAlan Tull
Turn off audio clock when possible. Empirical data says that we need to leave the clocks on for 300 mSec after all codec writes are done so schedule work to do that. Signed-off-by: Alan Tull <alan.tull@freescale.com> audio clock gating debug
2010-10-15ENGR00132169 MX28 ALSA: arecord from LINE IN has no soundLionel Xu
To fix the problem of no sound when recording from line in. Signed-off-by: Lionel Xu <r63889@freescale.com>
2010-10-14ENGR00131925-2 ssi, sound: Add SSI3 supportZeng Zhaoming
Add ssi3 support for sound module, ssi3 not enabled by default. Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
2010-09-29ENGR00131984 MXS ALSA: No audio output after repeatedly pause/playing with gplayLionel Xu
Sometimes there is no sound heard after repeatedly pause/playing a mp3 file with gplay, appropriate delay time should be added after each playing to avoid the impact to next play. Signed-off-by: Lionel Xu <r63889@freescale.com>
2010-09-29ENGR00131404 MXS DMA: Fix occasional system panic when playback finishLionel Xu
System got panic sometimes when a playback stops, this patch is used to fix the problem. Signed-off-by: Lionel Xu <r63889@freescale.com>
2010-09-25ENGR00131711-4 CS42888: Driver enhancementWilliam Lai
Retrieve the mclk feed to CS42888, the regulator supplied to CS42888, and pwdn function via platform data, eliminating machine specific infor in the driver. Signed-off-by: William Lai <b04597@freescale.com>
2010-09-25ENGR00131711-3 ESAI: Output the extal clock directlyWilliam Lai
Output the extal clock directly for the HCKT, without any divider. This clock's sample rate is same as ckih on the board. Signed-off-by: William Lai <b04597@freescale.com>
2010-09-25ENGR00127009 MX23 ALSA: Resolve the occasional DMA stuck when recordingLionel Xu
Sometimes the DMA for audioin will get stuck when recording, this patch is used to resolve the problem. Signed-off-by: Lionel Xu <r63889@freescale.com>
2010-09-25ENGR00126331 MX28 ALSA: fix 11Khz and 22KHz stream playback issueAisheng.Dong
For playing 11Khz and 22Khz stream, currently the DMA may be in an abnormal state during mxs_pcm_close phase which causes the SAIF clock to be disabed unexpectedly. Thereafter audio codec will be unable work again and system hangs. Add reset operation for DMA before release it to make sure in a right state to avoid this issue. Signed-off-by: Aisheng.Dong <b29396@freescale.com>
2010-09-25ENGR00131479-1 CS42888: Playback and record support on 35kernelWilliam Lai
CS42888 codec support on 2.6.35 Kernel Signed-off-by: William Lai <b04597@freescale.com>
2010-09-25ENGR00131389-2 switch ssi to fsl ssi driverLily Zhang
1. Switch ssi to fsl ssi driver instead of kernel upstream driver 2. Fix build break 3. remove "area->vm_ops->open" calling in imx-pcm.c to support IRAM playback Signed-off-by: Lily Zhang <r58066@freescale.com> Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
2010-09-25ENGR00131832-2 MX25: Upgrade kernel to 2.6.35Alan Tull
This patch contains driver fixes for mx25. Contains all checkpatch and copyright fixes. Signed-off-by: Alan Tull <r80115@freescale.com>
2010-09-08ENGR00127270 ALSA: Fix 35kernel upgrade cause DMA request failFrank Li
Fix DMA request fail. Fix warning when request irq. 35kernel check proc pathname when request irq. char "/" is path split char. Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-09-08ENGR00125326 MX28 ALSA: Can't play streams with sample rate 8k to 22kLionel Xu
Resolve the problem of playing wav streams with sample rate 8k,11k,16k and 22k. Signed-off-by: Lionel Xu <r63889@freescale.com>
2010-09-07ENGR00127171-5 Kernel Upgrade: Fix all drivers build error for mx23/mx28Frank Li
Fix build error because kernel upgrade Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-09-01ENGR00126692-3: Upgrade kernel to 2.6.35Dinh Nguyen
This patch contains changes to /drivers files Contains all checkpatch and copyright fixes. Acked-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
2010-08-25ENGR00118016-3 wm8580: update to 2.6.31Alan Tull
wm8580 is using regulators that can't change state. The regulator driver doesn't handle this case well so it crashes during regulator_bulk_enable. Eventually this will be fixed in the regulator driver. For now, remove regulators from list in wm8580 driver. Fix spi_rw err. hw_write needs to return transferred data length. Signed-off-by: Alan Tull <r80115@freescale.com> Signed-off-by: Wallace Wang <r59996@freescale.com>
2010-08-25ENGR00118016-2 wm8350: update to 2.6.31Alan Tull
In WM8350_FLL_CONTROL_1, keep FLL_RATE at default. Don't mute outputs by default. Signed-off-by: Alan Tull <r80115@freescale.com>
2010-08-25soc: add wm8580 spi supportWallace Wang
Add spi interface support to wm8580 codec. Signed-off-by: Wallace Wang <r59996@freescale.com>
2010-08-13ALSA: hda - Add PC-beep whitelist for an Intel boardTakashi Iwai
commit e096c8e6d5ed965f346d94befbbec2275dde3621 upstream. An Intel board needs a white-list entry to enable PC-beep. Otherwise the driver misdetects (due to bogus BIOS info) and ignores the PC-beep on 2.6.35. Reported-and-tested-by: Leandro Lucarella <luca@llucax.com.ar> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-07-29Merge branch 'fix/hda' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 * 'fix/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: ALSA: hda - Add a PC-beep workaround for ASUS P5-V ALSA: hda - Assume PC-beep as default for Realtek ALSA: hda - Don't register beep input device when no beep is available ALSA: hda - Fix pin-detection of Nvidia HDMI
2010-07-29ALSA: hda - Add a PC-beep workaround for ASUS P5-VTakashi Iwai
ASUS P5-V provides a SSID that unexpectedly matches with the value compilant with Realtek's specification. Thus the driver interprets it badly, resulting in non-working PC beep. This patch adds a white-list for such a case; a white-list of known devices with working PC beep. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-07-28ALSA: hda - Assume PC-beep as default for RealtekTakashi Iwai
Enable PC-beep as default for hardwares that aren't compliant with the SSID value Realtek requires. In such a case, better to enable the beep to avoid a regression. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-07-28ALSA: hda - Don't register beep input device when no beep is availableTakashi Iwai
We check now the availability of PC beep and skip the build of beep mixers, but the driver still registers the input device. This should be checked as well. Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-07-28ALSA: hda - Fix pin-detection of Nvidia HDMITakashi Iwai
The behavior of Nvidia HDMI codec regarding the pin-detection unsol events is based on the old HD-audio spec, i.e. PD bit indicates only the update and doesn't show the current state. Since the current code assumes the new behavior, the pin-detection doesn't work relialby with these h/w. This patch adds a flag for indicating the old spec, and fixes the issue by checking the pin-detection explicitly for such hardware. Tested-by: Wei Ni <wni@nvidia.com> Cc: <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-07-26SOUND: Au1000: Fix section mismatchRalf Baechle
WARNING: sound/soc/au1x/snd-soc-au1xpsc-i2s.o(.data+0xa8): Section mismatch in reference from the variable au1xpsc_i2s_driver to the function .init.text:au1xpsc_i2s_drvprobe() The variable au1xpsc_i2s_driver references the function __init au1xpsc_i2s_drvprobe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console, Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2010-07-21Merge branch 'fix/asoc' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 * 'fix/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: ASoC: Select wm_hubs automatically for WM8994 ASoC: Remove duplicate AUX definition from WM8776 ASoC:: remove a redundant snd_soc_unregister_codec call in wm8988_register ASoC: wm8727: add a missing return in wm8727_platform_probe ASoC: fsi: fixup wrong value setting order of TDM ASoC: fsi: fixup clock inversion operation
2010-07-20ASoC: Select wm_hubs automatically for WM8994Chanwoo Choi
Otherwise all machine drivers need to do so. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-07-17ASoC: Remove duplicate AUX definition from WM8776Mark Brown
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Cc: stable@kernel.org
2010-07-14ASoC:: remove a redundant snd_soc_unregister_codec call in wm8988_registerAxel Lin
snd_soc_unregister_codec is called twice if snd_soc_register_dai fail. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-07-14ASoC: wm8727: add a missing return in wm8727_platform_probeAxel Lin
otherwise the error path will always be executed. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-07-13ASoC: fsi: fixup wrong value setting order of TDMKuninori Morimoto
channel size should be set before setting register value Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-07-13ASoC: fsi: fixup clock inversion operationKuninori Morimoto
Clock inversion should be specified by each flags bit. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-07-12Merge branch 'fix/hda' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 * 'fix/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: ALSA: hda - Restore cleared pin controls on resume
2010-07-09ALSA: hda - Restore cleared pin controls on resumeTakashi Iwai
Many codecs now clear the pin controls at suspend via snd_hda_shutup_pins() for reducing the click noise at power-off. But this leaves some pins uninitialized, and they'll be never recovered after resume. This patch adds the proper recovery of cleared pin controls on resume. Also it adds a check of bus->shutdown so that pins won't be cleared at module unloading. Reference: Kernel bug 16339 http://bugzilla.kernel.org/show_bug.cgi?id=16339 Cc: <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-07-08Merge branch 'fix/misc' into for-linusTakashi Iwai
2010-07-08Merge branch 'fix/hda' into for-linusTakashi Iwai
2010-07-05ALSA: hda - Enable beep on Realtek codecs with PCI SSID overrideTakashi Iwai
When the PCI SSID gives an overriding SKU assno, PC-beep bit isn't detected (since it's located over 16bit), resulting in no PC beep. Also, many devices seem ignoring the requirement by Realtek's spec for SSID numbers, and it also confuses the PC beep detection. This patch assumes the PC beep is available on every machine with PCI SSID override. It's a regression fix from 2.6.34. Reference: Kernel bug 16251 http://bugzilla.kernel.org/show_bug.cgi?id=16251 Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-06-27Merge branch 'for-linus' of ↵Linus Torvalds
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: ALSA: usb/endpoint, fix dangling pointer use ALSA: asihpi - Get rid of incorrect "long" types and casts. ASoC: DaVinci: Fix McASP hardware FIFO configuration ALSA: hda - Fix line-in for mb5 model MacBook (Pro) 5,1 / 5,2 ALSA: usb-audio: fix UAC2 control value queries ALSA: usb-audio: parse UAC2 sample rate ranges correctly ALSA: usb-audio: fix control messages for USB_RECIP_INTERFACE ALSA: usb-audio: add check for faulty clock in parse_audio_format_rates_v2() ALSA: hda - Don't check capture source mixer if no ADC is available
2010-06-23ALSA: usb-audio - Add volume resolution quirk for some Logitech webcamsAlexey Fisher
Some programs like Skype trying to set capture volume automatically. Normally it will tray, carefully step by step lover or higher, set the volume. In real word it work not really well, because devises and vendors lie about real audio settings. For example most Logitech webcams have 6400 or 3500 steps for capture volume. They do not tell that actual resolution is 384. So we have only 7 or 18 real steps. In this patch I set real resolution only for tested devices. Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-06-22ALSA: hda - Add Macbook 5,2 quirkLuke Yelavich
BugLink: https://bugs.launchpad.net/bugs/463178 Set Macbook 5,2 (106b:4a00) hardware to use ALC885_MB5 Cc: <stable@kernel.org> Signed-off-by: Luke Yelavich <luke.yelavich@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-06-22ALSA: hda - Fix uninitialized variableTakashi Iwai
Fix the following compile warning. kctl should be NULL-initialized. sound/pci/hda/patch_realtek.c: In function ‘alc_build_controls’: sound/pci/hda/patch_realtek.c:2550:23: warning: ‘kctl’ may be used uninitialized in this function Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-06-21Merge branch 'fix/misc' into for-linusTakashi Iwai
2010-06-21ALSA: usb/endpoint, fix dangling pointer useJiri Slaby
Stanse found that in snd_usb_parse_audio_endpoints, there is a dangling pointer dereference. When snd_usb_parse_audio_format fails, fp is freed, and continue invoked. On the next loop, there is "fp && fp->altsetting == 1 && fp->channels == 1" test, but fp is set from the last iteration (but is bogus) and thus ilegally dereferenced. Set fp to NULL before "continue". Signed-off-by: Jiri Slaby <jslaby@suse.cz> Acked-by: Daniel Mack <daniel@caiaq.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-06-20Merge branch 'fix/misc' into for-linusTakashi Iwai
2010-06-20Merge branch 'fix/asoc' into for-linusTakashi Iwai