Age | Commit message (Collapse) | Author |
|
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)
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
To fix the problem of no sound when recording from line in.
Signed-off-by: Lionel Xu <r63889@freescale.com>
|
|
Add ssi3 support for sound module, ssi3 not enabled by default.
Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
|
|
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>
|
|
System got panic sometimes when a playback stops, this patch is used to
fix the problem.
Signed-off-by: Lionel Xu <r63889@freescale.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
CS42888 codec support on 2.6.35 Kernel
Signed-off-by: William Lai <b04597@freescale.com>
|
|
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>
|
|
This patch contains driver fixes for mx25.
Contains all checkpatch and copyright fixes.
Signed-off-by: Alan Tull <r80115@freescale.com>
|
|
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>
|
|
Resolve the problem of playing wav streams with sample rate 8k,11k,16k
and 22k.
Signed-off-by: Lionel Xu <r63889@freescale.com>
|
|
Fix build error because kernel upgrade
Signed-off-by: Frank Li <Frank.Li@freescale.com>
|
|
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>
|
|
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>
|
|
In WM8350_FLL_CONTROL_1, keep FLL_RATE at default.
Don't mute outputs by default.
Signed-off-by: Alan Tull <r80115@freescale.com>
|
|
Add spi interface support to wm8580 codec.
Signed-off-by: Wallace Wang <r59996@freescale.com>
|
|
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>
|
|
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
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
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>
|
|
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Cc: stable@kernel.org
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
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>
|
|
|
|
|
|
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>
|
|
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
|
|
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>
|
|
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>
|
|
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>
|
|
|
|
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>
|
|
|
|
|