All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2 v2] Open Alsa dshare without channel binding
@ 2019-07-24 10:12 Adam Miartus
  2019-07-24 10:12 ` [PATCH 1/2] alsa: pcm: return -ENOSYS when ops or fast_ops callback is NULL Adam Miartus
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Adam Miartus @ 2019-07-24 10:12 UTC (permalink / raw)
  To: patch; +Cc: alsa-devel

The general idea of this patch is to be able to open the device without
defined bindings. As a result, it allows starting the audio clock of
underlying device without blocking a channel.

This might be useful for creating a dummy dsnoop pcm for hardware that
requires running clock early at system start. This clock is then present
even without application streaming audio data.

Patch n.1 is intended to check for null pointer of pcm callbacks,
it is not intended to alter any current functionality, properly defined
plugins should not suffer from this change

Patch n.2 is not intended to alter any current functionality, only
extend it

V2 of the patch, changes from V1:
  - instead of creating new "pcm_unsupported.c" with ops and fast_ops
    callbacks returning -ENOSYS, callback == NULL is checked directly
    in core implementation and error is returned when pcm has no
    callback defined

Adam Miartus (2):
  alsa: pcm: return -ENOSYS when ops or fast_ops callback is NULL
  alsa: dshare: allow missing bindings

 src/pcm/pcm.c        | 134 +++++++++++++++++++++++++++++++++++++++++----------
 src/pcm/pcm_dshare.c |  29 ++++++-----
 src/pcm/pcm_local.h  |  20 ++++++++
 src/pcm/pcm_mmap.c   |  15 ++++--
 src/pcm/pcm_params.c |  10 +++-
 5 files changed, 166 insertions(+), 42 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2019-07-24 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-24 10:12 [PATCH 0/2 v2] Open Alsa dshare without channel binding Adam Miartus
2019-07-24 10:12 ` [PATCH 1/2] alsa: pcm: return -ENOSYS when ops or fast_ops callback is NULL Adam Miartus
2019-07-24 10:13 ` [PATCH 2/2] alsa: dshare: allow missing bindings Adam Miartus
2019-07-24 13:20 ` [ALSA patch] [PATCH 0/2 v2] Open Alsa dshare without channel binding 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.