03 Apr, 2011
1 commit
-
pxa2xx_pcm_hw_free frees dma channel and sets prtd->dma_ch to -1,
but does not set prtd->params to NULL, so if pxa2xx_pcm_hw_params will
be called immediately, it leaves prtd->dma_ch initialized with -1,
and it results in oops in __pxa2xx_pcm_prepare. This bug is triggered
via SDL.This patch adds check for prtd->dma_ch to __pxa2xx_pcm_prepare and
cleans prtd->params, so now it works properly.Signed-off-by: Vasily Khoruzhick
Signed-off-by: Mark Brown
30 Mar, 2011
2 commits
-
Fix the initialization of .codec_dai_name in zylonite_dai initializer,
do not mix it with the initialization of .codec_name which is set
already a few lines above.Signed-off-by: Antonio Ospite
Acked-by: Eric Miao
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown -
Got typoed in the multi-component changes.
Signed-off-by: Mark Brown
Acked-by: Liam Girdwood
Cc: stable@kernel.org
27 Mar, 2011
2 commits
-
SSI counts in words, the DMA engine in bytes. (Wrong) factor got removed
in bf974a0 (ASoC i.MX: switch to new DMA api).Signed-off-by: Wolfram Sang
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown
Cc: stable@kernel.org -
They got accidently removed by f0fba2a (ASoC: multi-component - ASoC
Multi-Component Support). Reintroduce them and get rid of the
superfluous defines because the fiq-driver has its own hardcoded values.Signed-off-by: Wolfram Sang
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown
Cc: stable@kernel.org
24 Mar, 2011
1 commit
-
This stops code that handles widgets generically from attempting to access
registers for these widgets.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood
Cc: stable@kernel.org
23 Mar, 2011
1 commit
-
The regulator is optional depending on board design.
Signed-off-by: Mark Brown
Acked-by: Liam Girdwood
18 Mar, 2011
2 commits
-
Since not all registers need to be cached and the cache is entirely
optional anyway we shouldn't be checking that a register is in the
cached range. If the register is invalid then the actual I/O code
can determine that and report an error.Similarly, the step size can and should be enforced by the lower level
code if it's important.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
…/sound-2.6 into for-2.6.39
16 Mar, 2011
1 commit
-
…soc-2.6 into topic/asoc
11 Mar, 2011
6 commits
-
ASoC audio for mini2440 platform in current kenrel doesn't work.
First problem is samsung_asoc_dma device is missing in initialization.
Next problem is with codec. Codec is initialized but never probed
because no platform_device exist for codec driver. It leads to errors
during codec binding to asoc dai. Next problem was platform data which
was passed from board to asoc main driver but not passed to codec when
called codec_soc_probe().Following patch should fix issues. But not sure if in correct way.
Please review.Signed-off-by: Marek Belisko
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown
Cc: stable@kernel.org -
Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
MONO was renamed to MONO1.
Signed-off-by: Vasily Khoruzhick
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown
Cc: stable@kernel.org -
Signed-off-by: Vasily Khoruzhick
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown -
This patch adds ASoC support for the MAX9850 codec with headphone
amplifier.Supported features:
- Playback
- 16, 20 and 24 bit audio
- 8k - 48k sample rates
- DAPMSigned-off-by: Christian Glindkamp
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown -
Added a new API function snd_ctl_activate_id() for activate / inactivate
the control element dynamically.Signed-off-by: Takashi Iwai
Signed-off-by: Mark Brown
10 Mar, 2011
3 commits
-
Without this fix the driver won't instantiate properly on relevant
devices.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood
Cc: stable@kernel.org -
Without this fix the driver won't instantiate properly on relevant
devices.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood
Cc: stable@kernel.org
09 Mar, 2011
19 commits
-
Enable 192kHz sample rate for EP93xx.
Signed-off-by: Alexander Sverdlin
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown -
Improve EP93xx I2S clocks management.
Some freqs values are set not exact as they requested for MCLK and
original code was not able to find divisors for SCLK and LRCLK.
This code just picks up nearest value from 3 possible variants.
This patch makes 44100 and 192000 rates working and fixes
capture function (by selecting SCLK/LRCLK=64 where possible).
All other rates should work as before.Signed-off-by: Alexander Sverdlin
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown -
Manage I2S rates according to datasheet for CS4271 CODEC in EDB93xx
machine driver.Signed-off-by: Alexander Sverdlin
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown -
Manage mode and rate bits correctly, according to datasheet in CS4271 CODEC.
This is done to make capture work properly.Signed-off-by: Alexander Sverdlin
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown -
Conflicts:
sound/soc/codecs/wm8978.c
sound/soc/soc-dapm.c -
We're not only prefixing all controls, we're also prefixing the widget
names in the runtime data. This causes us to add the prefix twice - once
when using the widget name to generate the control name and once when
adding the control.Really we shouldn't be prefixing the widget names at all, the matching
code should be handing this as we always know which DAPM context a
widget came from and always display the widget name in terms of a DAPM
context. However, we're quite close to the merge window and that's
relatively invasive.Signed-off-by: Mark Brown
Reported-by: Jarkko Nikula
Acked-by: Jarkko Nikula
Acked-by: Liam Girdwood -
Now we've got multi-component we need to make sure that the DAPM context
(and hence register I/O context) we use to apply the pending updates at
the end of a DAPM sequence is the one we were processing rather than the
one that was used to initate the state change.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
Signed-off-by: Mark Brown
Acked-by: Liam Girdwood
Cc: stable@kernel.org -
Now we have a register write minimisation code in DAPM we don't need to
worry about the ordering of the enable and disable of the PGA and the
output stage.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
McBSP sidetone is needed in telephony applications. McBSP sidetone is a
configurable FIR filter that forms a loopback from McBSP input to output.
This patch enables the McBSP2 sidetone ALSA controls so that it can be used
on Nokia RX-51/N900.Sidetone feature can be tested with following commands:
(set up codec input and output paths)
# Enable and configure sidetone
amixer -D hw:0 set 'McBSP2 Sidetone' on
amixer set -D hw:0 'McBSP2 Sidetone Channel 0' 32767
echo 32767 >/sys/devices/platform/omap-mcbsp.2/st_taps
# Do not loop audio via CPU
arecord -f dat >/dev/null |aplay /dev/zeroSigned-off-by: Jarkko Nikula
Acked-by: Mark Brown
Signed-off-by: Liam Girdwood -
The "ldo" variable was dereferenced after free on the error path.
Signed-off-by: Dan Carpenter
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown -
Currently will ignore prefixes when creating DAPM controls. Since currently
all control creation goes through snd_soc_cnew() we can fix this by factoring
the prefixing into that function.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
Symmetric rate configuration can fail if the second stream starting tries
to apply the symmetric constraint before the first stream has got far
enough to pick a rate. Rather than try to enforce a nonsensical rate of
0Hz log a warning and allow the application to carry on. Things might go
wrong later on but the user will know about it and there's unlikely to be
lasting damage.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
Also respace the CODEC ops a bit for legibility.
Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
When multi component systems use DAIless amplifiers which require clocking
configuration it is at best hard to use the current clocking API as this
requires a DAI even though the device may not even have one. Address this
by adding set_sysclk() and set_pll() operations and APIs for CODECs.In order to avoid issues with devices which could be used either with or
without DAIs make the DAI variants call through to their CODEC counterparts
if there is no DAI specific operation. Converting over entirely would create
problems for multi-DAI devices which offer per-DAI clocking setup.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
Annoying as the __devinitdata is actually correct.
Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
Signed-off-by: Mark Brown
Acked-by: Liam Girdwood -
Allow a slight simplification of CODEC drivers by allowing DAPM routes and
widgets to be provided in a table. They will be instantiated at the end of
CODEC probe.Signed-off-by: Mark Brown
Acked-by: Liam Girdwood
08 Mar, 2011
2 commits
-
Remove warnings in ep93xx-i2s.c
Signed-off-by: Alexander Sverdlin
Acked-by: Ryan Mallon
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown -
Extend range of supported sample rates for CS4271 CODEC.
Signed-off-by: Alexander Sverdlin
Acked-by: Liam Girdwood
Signed-off-by: Mark Brown