2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 12:14:01 +08:00
linux-next/sound/soc
Takashi Iwai 29d1a873de ALSA: pcm: Introduce copy_user, copy_kernel and fill_silence ops
For supporting the explicit in-kernel copy of PCM buffer data, and
also for further code refactoring, three new PCM ops, copy_user,
copy_kernel and fill_silence, are introduced.  The old copy and
silence ops will be deprecated and removed later once when all callers
are converted.

The copy_kernel ops is the new one, and it's supposed to transfer the
PCM data from the given kernel buffer to the hardware ring-buffer (or
vice-versa depending on the stream direction), while the copy_user ops
is equivalent with the former copy ops, to transfer the data from the
user-space buffer.

The major difference of the new copy_* and fill_silence ops from the
previous ops is that the new ops take bytes instead of frames for size
and position arguments.  It has two merits: first, it allows the
callback implementation often simpler (just call directly memcpy() &
co), and second, it may unify the implementations of both interleaved
and non-interleaved cases, as we'll see in the later patch.

As of this stage, copy_kernel ops isn't referred yet, but only
copy_user is used.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-06-02 19:37:23 +02:00
..
adi
amd scripts/spelling.txt: add "disble(d)" pattern and fix typo instances 2017-03-09 17:01:09 -08:00
atmel ASoC: atmel-classd: fix audio clock rate 2017-03-07 15:20:32 +01:00
au1x
bcm ASoC: bcm: add depends on HAS_DMA 2016-11-02 14:57:05 -06:00
blackfin ASoC: blackfin: constify snd_soc_ops structures 2017-03-24 18:48:10 +00:00
cirrus
codecs Merge remote-tracking branches 'asoc/topic/wm8960', 'asoc/topic/wm8978' and 'asoc/topic/zte-tdm' into asoc-next 2017-04-30 22:16:48 +09:00
davinci ASoC: davinci - Fix possible NULL derefrence. 2017-01-27 11:58:54 +00:00
dwc ASoC: dwc: Disallow building designware_pcm as a module 2017-04-30 20:27:04 +08:00
fsl Merge remote-tracking branches 'asoc/topic/fsl-ssi', 'asoc/topic/hi6220' and 'asoc/topic/imx' into asoc-next 2017-04-30 22:16:01 +09:00
generic Merge remote-tracking branches 'asoc/topic/samsung', 'asoc/topic/sgtl5000', 'asoc/topic/simple', 'asoc/topic/sirf' and 'asoc/topic/ssm4567' into asoc-next 2017-04-30 22:16:26 +09:00
hisilicon ASoC: hisilicon: Use devm_snd_soc_register_component 2017-04-11 21:20:55 +01:00
img ASoC: img: remove unused ‘format’ 2016-12-15 11:22:52 +00:00
intel ASoC: Updates for v4.12 2017-05-02 08:25:25 +02:00
jz4740
kirkwood ASoC: constify snd_soc_ops structures 2016-10-24 18:34:55 +01:00
mediatek ASoC: mediatek: add I2C dependency for CS42XX8 2017-04-21 17:58:34 +01:00
mxs ASoC: mxs-saif: fix setting master base rate 2017-01-17 18:19:36 +00:00
nuc900
omap ASoC: omap: constify snd_soc_ops structures 2017-03-20 11:26:37 +00:00
pxa ASoC: pxa: constify snd_soc_ops structures 2017-03-15 13:34:16 +00:00
qcom ASoC: qcom: move clock names into LPASS variant struct 2017-04-21 18:07:45 +01:00
rockchip ASoC: rockchip: Enable 192khz in hw_params operation 2017-03-06 11:41:03 +01:00
samsung ASoC: samsung: Add Odroid ASoC machine driver 2017-04-21 18:27:58 +01:00
sh ALSA: declare snd_kcontrol_new structures as const 2017-05-30 10:29:25 +02:00
sirf ASoC: sirf: Added blank line after declarations 2017-03-07 14:31:51 +01:00
spear
sti ASoC: sti: Fix error handling if of_clk_get() fails 2017-04-30 21:30:52 +09:00
stm ASoC: stm32: add SAI driver 2017-04-26 16:45:54 +01:00
sunxi ASoC: sun8i-codec: Convert to use SND_SOC_DAPM_AIF_IN 2017-03-21 12:16:30 +00:00
tegra ASoC: tegra: Add blank line after declarations 2017-03-07 14:29:51 +01:00
txx9 ASoC: txx9: Added requiered spaces. 2017-03-07 15:18:35 +01:00
ux500 ASoC: ux500: Added blank line after declarations 2017-03-07 14:31:27 +01:00
xtensa
zte ASoC: zx-tdm: add zte's tdm controller driver 2017-02-21 15:11:17 -08:00
Kconfig Merge remote-tracking branches 'asoc/topic/sta529', 'asoc/topic/sti', 'asoc/topic/stm', 'asoc/topic/sunxi' and 'asoc/topic/tas2552' into asoc-next 2017-04-30 22:16:31 +09:00
Makefile Merge remote-tracking branches 'asoc/topic/sta529', 'asoc/topic/sti', 'asoc/topic/stm', 'asoc/topic/sunxi' and 'asoc/topic/tas2552' into asoc-next 2017-04-30 22:16:31 +09:00
soc-ac97.c ASoC: Fixup some small kernel-doc typos 2017-01-12 17:23:01 +00:00
soc-cache.c
soc-compress.c ASoC: compress: Add support for compress dai ops 2016-11-13 09:35:35 +00:00
soc-core.c scripts/spelling.txt: add regsiter -> register spelling mistake 2017-05-08 17:15:13 -07:00
soc-dapm.c ASoC: dapm: fix some pointer error handling 2017-01-20 13:11:02 +00:00
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: Revert "Drop SND_DMAENGINE_PCM_FLAG_CUSTOM_CHANNEL_NAME flag" 2017-01-23 18:16:33 +00:00
soc-io.c
soc-jack.c ASoC: jack: add snd_soc_codec_set_jack 2017-04-10 19:46:09 +01:00
soc-ops.c ASoC: Fixup some small kernel-doc typos 2017-01-12 17:23:01 +00:00
soc-pcm.c ALSA: pcm: Introduce copy_user, copy_kernel and fill_silence ops 2017-06-02 19:37:23 +02:00
soc-topology.c Merge remote-tracking branches 'asoc/topic/tegra', 'asoc/topic/tlv320aic23', 'asoc/topic/topology', 'asoc/topic/twl6040' and 'asoc/topic/txx9' into asoc-next 2017-04-30 22:16:37 +09:00
soc-utils.c ASoC: core: Add component pin control functions 2016-11-30 17:16:09 +00:00