All of lore.kernel.org
 help / color / mirror / Atom feed
* [alsa-lib][PATCH v3 0/4] add SNDRV_PCM_FORMAT_{S, U}20
@ 2017-12-14 13:50 Maciej S. Szmigiero
  2017-12-17  8:37 ` Takashi Sakamoto
  0 siblings, 1 reply; 6+ messages in thread
From: Maciej S. Szmigiero @ 2017-12-14 13:50 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai; +Cc: alsa-devel, Takashi Sakamoto

This format is similar to an existing 20-bit PCM format
SNDRV_PCM_FORMAT_{S,U}20_3, however it occupies 4 bytes instead of 3.

Changes from v1: Split the monolithic submission into separate
commits. (Note that v2 wasn't tagged as such.)

Changes from v2: Add commas at the end of two possible last entries of
the snd_pcm_format_t enum so diffs will be more readable when new PCM
formats are added in the future, remove asserts from
snd_pcm_linear_{get,put}_index().

Maciej S. Szmigiero (4):
  asound.h: add SNDRV_PCM_FORMAT_{S,U}20
  pcm: add and describe SND_PCM_FORMAT_{S,U}20
  pcm: linear, route: handle linear formats with 20-bit sample on 4
    bytes
  pcm: plug: add SND_PCM_FORMAT_{S,U}20 to linear_preferred_formats

 include/pcm.h          | 20 ++++++++++++++++++--
 include/sound/asound.h |  9 +++++++++
 src/pcm/pcm.c          | 10 ++++++++++
 src/pcm/pcm_linear.c   | 14 +++++++++++---
 src/pcm/pcm_local.h    |  4 ++++
 src/pcm/pcm_misc.c     | 41 ++++++++++++++++++++++++++++++++++++++---
 src/pcm/pcm_plug.c     | 11 +++++++++++
 src/pcm/pcm_route.c    |  6 ++++--
 src/pcm/plugin_ops.h   | 50 ++++++++++++++++++++++++++++++++++++++++++++++----
 9 files changed, 151 insertions(+), 14 deletions(-)

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

end of thread, other threads:[~2017-12-19  7:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-14 13:50 [alsa-lib][PATCH v3 0/4] add SNDRV_PCM_FORMAT_{S, U}20 Maciej S. Szmigiero
2017-12-17  8:37 ` Takashi Sakamoto
2017-12-17 12:58   ` Maciej S. Szmigiero
2017-12-18 14:20   ` Takashi Sakamoto
2017-12-18 14:48     ` Takashi Iwai
2017-12-19  7:41       ` Takashi Sakamoto

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.