04 Sep, 2013
1 commit
-
As once the error interrupt is triggered, it can not be cleared.
So, disable it.No side effect found while testing on sama5d3xek and at91sam9x5ek
boards.Signed-off-by: Bo Shen
Acked-by: Nicolas Ferre
Signed-off-by: Mark Brown
22 Aug, 2013
1 commit
07 Aug, 2013
1 commit
-
Description of the Asoc machine driver for an at91sam9x5 based board
with a wm8731 audio DAC. Wm8731 is clocked by a crystal and used as a
master on the SSC/I2S interface. Its connections are a headphone jack
and an Line input jack.[Richard: this is based on an old patch from Nicolas that I forward
ported and reworked to use only device tree]Signed-off-by: Nicolas Ferre
Signed-off-by: Richard Genoud
Signed-off-by: Mark Brown
20 Jul, 2013
1 commit
-
Add wm8904 based audio machine driver for Atmel EK board
The following ek board based on it
- at91sam9n12ek
- sama5d3xek (d31, d33, d34, d35)Signed-off-by: Bo Shen
Signed-off-by: Mark Brown
16 Jul, 2013
1 commit
-
snd_pcm_stop() must be called in the PCM substream lock context.
Cc:
Acked-by: Mark Brown
Signed-off-by: Takashi Iwai
15 Jul, 2013
4 commits
-
Align atmel pcm to use ASoC generic dmaengine framework
DMA is fully device tree based
Signed-off-by: Bo Shen
Reviewed-by: Lars-Peter Clausen
Signed-off-by: Mark Brown -
as prepare callback for dma is acctually access ssc register
which better done in dai driver, so move it to dai prepare
callback functionSigned-off-by: Bo Shen
Reviewed-by: Lars-Peter Clausen
Signed-off-by: Mark Brown -
add error mask define, which will be used when execute DMA transfer
Signed-off-by: Bo Shen
Reviewed-by: Lars-Peter Clausen
Signed-off-by: Mark Brown -
move set dma data to startup callback function, if the set dma
data exist in hw_params callback, so the dma data only usable when
call hw_params, if want use it before hw_params callback, it will
cause NULL pointer access oopsSigned-off-by: Bo Shen
Reviewed-by: Lars-Peter Clausen
Signed-off-by: Mark Brown
13 May, 2013
1 commit
-
Since commit ab78029 (drivers/pinctrl: grab default handles from device
core) we can rely on device core for handling pinctrl so remove
devm_pinctrl_get_select_default() from the driver.Signed-off-by: Mark Brown
Tested-by: Bo Shen
Acked-by: Bo Shen
18 Apr, 2013
1 commit
-
…e/sound into for-next
ASoC: More updates for v3.10
The main additional change here is Lars-Peter's DMA work plus the
platform conversions which have been tested - getting this in mainline
will make life easier for development after the merge window. These
factor a large chunk of code out of the drivers for the platforms using
dmaengine, greatly simplifying development.
17 Apr, 2013
1 commit
-
Refactor the dmaengine PCM library to allow the DMA channel to be requested
before opening a PCM substream. snd_dmaengine_pcm_open() now expects a DMA
channel instead of a filter function and filter parameter as its parameters.
snd_dmaengine_pcm_close() is updated to not release the DMA channel. This allows
a dmaengine based PCM driver to request its channels before the substream is
opened.The patch also introduces two new functions, snd_dmaengine_pcm_open_request_chan()
and snd_dmaengine_pcm_close_release_chan(), which have the same signature and
behaviour of the old snd_dmaengine_pcm_{open,close}() and internally use the new
variants of these functions. All users of snd_dmaengine_pcm_{open,close}() are
updated to use snd_dmaengine_pcm_open_request_chan() and
snd_dmaengine_pcm_close_release_chan().Signed-off-by: Lars-Peter Clausen
Tested-by: Stephen Warren
Tested-by: Shawn Guo
Signed-off-by: Mark Brown
12 Apr, 2013
2 commits
04 Apr, 2013
1 commit
-
Usually device_fc should be set to false for audio DMAs. Initialize it in a
common place so drivers don't have to do this manually.Signed-off-by: Lars-Peter Clausen
Tested-by: Peter Ujfalusi
Acked-by: Nicolas Ferre
Signed-off-by: Mark Brown
27 Mar, 2013
1 commit
-
Signed-off-by: Kuninori Morimoto
Signed-off-by: Mark Brown
26 Mar, 2013
2 commits
-
We want to get rid of snd_dmaengine_pcm_{set,get}_data(). All instances of
snd_dmaengine_pcm_get_data() in the atmel pcm driver can easily be replaced with
snd_soc_dai_get_dma_data().Signed-off-by: Lars-Peter Clausen
Tested-by: Bo Shen
Acked-by: Bo Shen
Signed-off-by: Mark Brown -
If a PCM driver using the dmaengine PCM helper functions doesn't need to do
anything special in its pcm_close callback, snd_dmaengine_pcm_close can be used
directly for as the pcm_close callback and there is no need to wrap it in a
custom function.Signed-off-by: Lars-Peter Clausen
Tested-by: Bo Shen
Acked-by: Bo Shen
Signed-off-by: Mark Brown
04 Mar, 2013
1 commit
-
Add previously unsupported slave mode to the SSC peripheral when using
DSP/PCM Mode A format on the Atmel ARM platform.Signed-off-by: Zoltan Puskas
Signed-off-by: Mark Brown
05 Feb, 2013
4 commits
-
disable clock and correct sequence when unload
Signed-off-by: Bo Shen
Signed-off-by: Mark Brown -
correct the sequence when unload this module
Signed-off-by: Bo Shen
Signed-off-by: Mark Brown -
ssc private data has been set in ssc driver, this cause the error
private data set to ssc, remove itSigned-off-by: Bo Shen
Signed-off-by: Mark Brown -
When build as module, it reports following error, using this patch
fix itsound/soc/atmel/atmel-pcm-pdc.c:387: error: redefinition of 'atmel_pcm_pdc_platform_register'
sound/soc/atmel/atmel-pcm.h:95: note: previous definition of 'atmel_pcm_pdc_platform_register' was here
sound/soc/atmel/atmel-pcm-pdc.c:393: error: redefinition of 'atmel_pcm_pdc_platform_unregister'
sound/soc/atmel/atmel-pcm.h:99: note: previous definition of 'atmel_pcm_pdc_platform_unregister' was hereSigned-off-by: Bo Shen
Signed-off-by: Mark Brown
24 Dec, 2012
1 commit
-
Not very useful on non AT91/AVR32 platforms but it provides
more build coverage and prepares for ARM multiplatform.Also fixes a couple of format type warnings.
Signed-off-by: Joachim Eastwood
Acked-by: Nicolas Ferre
Signed-off-by: Mark Brown
09 Dec, 2012
1 commit
-
CONFIG_HOTPLUG is going away as an option. As result the __dev*
markings will be going away.Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.Signed-off-by: Bill Pemberton
Signed-off-by: Mark Brown
02 Dec, 2012
2 commits
-
Specify overrun bit in interrupt mask
Add dmaengine specific routinesSigned-off-by: Nicolas Ferre
[voice.shen@atmel.com: adapt to soc dmaengine framework]
Signed-off-by: Bo Shen
Signed-off-by: Mark Brown -
This patch is split original atmel-pcm.c into new atmel-pcm.c and
atmel-pcm-pdc.c two files. The new atmel-pcm.c is the share routine
while will be used for pdc or dma transfer.Using SND_ATMEL_SOC_PDC to select using PDC for audio transfer
Signed-off-by: Bo Shen
Signed-off-by: Mark Brown
16 Nov, 2012
3 commits
-
convert at91sam9g20ek with wm8731 to device tree support
Signed-off-by: Bo Shen
Signed-off-by: Mark Brown -
Remove unneeded code with the new method of dai and pcm register
Signed-off-by: Bo Shen
Signed-off-by: Mark Brown -
change the method for register dai and pcm
- let the atmel-ssc-dai no longer as a standalone platform device
- remap ssc and then register dai directly
- register pcm from dai directly
- modify the code which related with this changeSigned-off-by: Bo Shen
Signed-off-by: Mark Brown
06 Nov, 2012
1 commit
-
Signed-off-by: Bo Shen
Signed-off-by: Mark Brown
02 Feb, 2012
2 commits
-
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown -
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
20 Jan, 2012
1 commit
-
Signed-off-by: Joachim Eastwood
Signed-off-by: Mark Brown
11 Jan, 2012
1 commit
-
commit 739be96 "ASoC: Fix build dependency for SND_ATMEL_SOC_SSC"
introduces below build warnings:drivers/misc/Kconfig:212:error: recursive dependency detected!
drivers/misc/Kconfig:212: symbol ATMEL_SSC is selected by SND_ATMEL_SOC_SSC
sound/soc/atmel/Kconfig:9: symbol SND_ATMEL_SOC_SSC is selected by SND_AT91_SOC_SAM9G20_WM8731
sound/soc/atmel/Kconfig:18: symbol SND_AT91_SOC_SAM9G20_WM8731 depends on ATMEL_SSCSND_ATMEL_SOC_SSC needs ATMEL_SSC to pass compilation.
This patch remove the "select ATMEL_SSC" from SND_ATMEL_SOC_SSC to avoid above
warnings. And then ensures all the machine drivers that select SND_ATMEL_SOC_SSC
need to depend on ATMEL_SSC.Reported-by: Stephen Rothwell
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
08 Jan, 2012
1 commit
-
This is a follow up on 53dea36c70c1857 which fixes the other affected
pcm engines.Description from 53dea36c70c1857:
Don't rely on the codec's channels_min information to decide wheter or
not allocate a substream's DMA buffer. Rather check if the substream
itself was allocated previously.Without this patch I was seeing null-pointer dereferenc in atmel-pcm.
Signed-off-by: Joachim Eastwood
Signed-off-by: Mark Brown
06 Jan, 2012
1 commit
-
Make SND_ATMEL_SOC_SSC select ATMEL_SSC to fix below build errors:
LD .tmp_vmlinux1
sound/built-in.o: In function `atmel_ssc_remove':
sound/soc/atmel/atmel_ssc_dai.c:713: undefined reference to `ssc_free'
sound/built-in.o: In function `atmel_ssc_probe':
sound/soc/atmel/atmel_ssc_dai.c:700: undefined reference to `ssc_request'
sound/built-in.o: In function `atmel_ssc_set_audio':
sound/soc/atmel/atmel_ssc_dai.c:845: undefined reference to `ssc_request'
sound/soc/atmel/atmel_ssc_dai.c:851: undefined reference to `ssc_free'
make: *** [.tmp_vmlinux1] Error 1Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
23 Dec, 2011
1 commit
-
Missed .owner of struct snd_soc_card will prevent the module from being
removed from underneath its users.Reported-by: Lothar Waßmann
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
25 Nov, 2011
1 commit
-
Factor out some boilerplate code.
Signed-off-by: Axel Lin
Acked-by: Nicolas Ferre
Signed-off-by: Mark Brown
23 Nov, 2011
1 commit