All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/6] ALSA: compress: add support to change codec profile in gapless playback
@ 2020-07-21 17:00 ` Srinivas Kandagatla
  0 siblings, 0 replies; 46+ messages in thread
From: Srinivas Kandagatla @ 2020-07-21 17:00 UTC (permalink / raw)
  To: broonie
  Cc: vkoul, perex, tiwai, lgirdwood, alsa-devel, linux-kernel,
	ckeepax, Srinivas Kandagatla

For gapless playback it is possible that each track can have different
codec profile with same decoder, for example we have WMA album,
we may have different tracks as WMA v9, WMA v10 and so on
Or if DSP's like QDSP have abililty to switch decoders on single stream
for each track, then this call could be used to set new codec parameters.

Existing code does not allow to change this profile while doing gapless
playback.

This patchset adds new SNDRV_COMPRESS_SET_CODEC_PARAMS IOCTL along with
flags in capablity structure to allow userspace to set this new
parameters required which switching codec profile, either for gapless
or cross fade usecase.

thanks,
srini


Changes since v1:
- split patch into smaller chuncks,
- bump up the version
- added flags in compress capablity structure 
- added user for this new functionality.
- add this new call in Documentation.


Srinivas Kandagatla (6):
  ALSA: compress: move codec parameter check to a function
  ALSA: compress: add new ioctl for setting codec parameters
  ALSA: compress: add flags to snd_compr_caps to expose dsp caps
  ASoC: compress: add snd_soc_dai_compr_set_codec_params()
  ALSA: compress: bump the version
  ASoC: q6asm-dai: add support to set_codec_params

 .../sound/designs/compress-offload.rst        |  6 ++
 include/sound/compress_driver.h               |  5 ++
 include/sound/soc-component.h                 |  3 +
 include/sound/soc-dai.h                       |  5 ++
 include/uapi/sound/compress_offload.h         | 10 ++-
 sound/core/compress_offload.c                 | 72 +++++++++++++++++--
 sound/soc/qcom/qdsp6/q6asm-dai.c              | 33 +++++++++
 sound/soc/soc-compress.c                      | 30 ++++++++
 sound/soc/soc-dai.c                           | 14 ++++
 9 files changed, 170 insertions(+), 8 deletions(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2020-08-06 17:55 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 17:00 [RFC PATCH v2 0/6] ALSA: compress: add support to change codec profile in gapless playback Srinivas Kandagatla
2020-07-21 17:00 ` Srinivas Kandagatla
2020-07-21 17:00 ` [RFC PATCH v2 1/6] ALSA: compress: move codec parameter check to a function Srinivas Kandagatla
2020-07-21 17:00   ` Srinivas Kandagatla
2020-07-21 19:56   ` Pierre-Louis Bossart
2020-07-21 19:56     ` Pierre-Louis Bossart
2020-07-21 17:00 ` [RFC PATCH v2 2/6] ALSA: compress: add new ioctl for setting codec parameters Srinivas Kandagatla
2020-07-21 17:00   ` Srinivas Kandagatla
2020-07-21 20:05   ` Pierre-Louis Bossart
2020-07-21 20:05     ` Pierre-Louis Bossart
2020-07-22  8:59     ` Srinivas Kandagatla
2020-07-22  8:59       ` Srinivas Kandagatla
2020-07-22 15:36       ` Pierre-Louis Bossart
2020-07-22 15:36         ` Pierre-Louis Bossart
2020-07-23  4:47         ` Vinod Koul
2020-07-23  4:47           ` Vinod Koul
2020-07-23 13:17           ` Pierre-Louis Bossart
2020-07-23 13:17             ` Pierre-Louis Bossart
2020-07-21 17:00 ` [RFC PATCH v2 3/6] ALSA: compress: add flags to snd_compr_caps to expose dsp caps Srinivas Kandagatla
2020-07-21 17:00   ` Srinivas Kandagatla
2020-07-21 17:00 ` [RFC PATCH v2 4/6] ASoC: compress: add snd_soc_dai_compr_set_codec_params() Srinivas Kandagatla
2020-07-21 17:00   ` Srinivas Kandagatla
2020-07-21 17:00 ` [RFC PATCH v2 5/6] ALSA: compress: bump the version Srinivas Kandagatla
2020-07-21 17:00   ` Srinivas Kandagatla
2020-07-21 17:00 ` [RFC PATCH v2 6/6] ASoC: q6asm-dai: add support to set_codec_params Srinivas Kandagatla
2020-07-21 17:00   ` Srinivas Kandagatla
2020-07-21 20:09   ` Pierre-Louis Bossart
2020-07-21 20:09     ` Pierre-Louis Bossart
2020-07-22  8:59     ` Srinivas Kandagatla
2020-07-22  8:59       ` Srinivas Kandagatla
2020-07-22 14:04   ` Daniel Baluta
2020-07-22 14:04     ` Daniel Baluta
2020-07-23 12:38 ` [RFC PATCH v2 0/6] ALSA: compress: add support to change codec profile in gapless playback Takashi Iwai
2020-07-23 12:38   ` Takashi Iwai
2020-07-23 13:05   ` Vinod Koul
2020-07-23 13:05     ` Vinod Koul
2020-07-23 13:17     ` Takashi Iwai
2020-07-23 13:17       ` Takashi Iwai
2020-07-23 15:56       ` Vinod Koul
2020-07-23 15:56         ` Vinod Koul
2020-07-23 20:33         ` Takashi Iwai
2020-07-23 20:33           ` Takashi Iwai
2020-08-06 11:08           ` Vinod Koul
2020-08-06 11:08             ` Vinod Koul
2020-08-06 16:28             ` Takashi Iwai
2020-08-06 16:28               ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.