alsa-lib/src/pcm
Jaroslav Kysela 36aff79747 pcm: fix __snd_pcm_state() return value
The __snd_pcm_state() must return a valid state, not an error value
when the plugin callback is not defined. Use the first state
SND_PCM_STATE_OPEN - the other functions will return the error
code depending on this state.

Link: https://lore.kernel.org/alsa-devel/20201226213547.175071-10-alexhenrie24@gmail.com/
Reported-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2020-12-27 13:31:57 +01:00
..
scopes Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
interval.c pcm: snd_interval_refine_first/last: exclude value only if also excluded before 2018-07-03 12:47:32 +02:00
interval.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
interval_inline.h pcm: interval: Interpret (x x+1] correctly and return x+1 2018-10-24 12:07:33 +02:00
ladspa.h big ALSA LADSPA plugin rewrite for multiple channel LADSPA plugins 2005-12-13 14:08:58 +00:00
Makefile.am pcm: Remove home brew atomic operations 2016-07-11 15:25:30 +02:00
mask.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
mask.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
mask_inline.h pcm: add the missing <strings.h> include 2019-03-15 13:16:15 +01:00
pcm.c dlmisc, pcm: export the old symbols (for -flto) 2020-10-13 11:33:29 +02:00
pcm_adpcm.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_alaw.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_asym.c Set PCM name properly in empty and asym plugins 2007-11-26 12:29:37 +01:00
pcm_copy.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_direct.c pcm: dmix: make lockless operation optional 2020-07-07 11:56:41 +02:00
pcm_direct.h pcm: dmix: Fix semaphore usage with lockless operation 2020-07-07 11:57:03 +02:00
pcm_dmix.c pcm: fix the pcm_frames_diff -> pcm_frame_diff typo 2020-10-14 17:55:20 +02:00
pcm_dmix_generic.c pcm: dmix: Fix semaphore usage with lockless operation 2020-07-07 11:57:03 +02:00
pcm_dmix_i386.c pcm: dmix: Fix semaphore usage with lockless operation 2020-07-07 11:57:03 +02:00
pcm_dmix_i386.h pcm: dmix: assembly: give more freedom over the constraints 2020-05-06 22:27:40 +02:00
pcm_dmix_x86_64.c pcm: dmix: Fix semaphore usage with lockless operation 2020-07-07 11:57:03 +02:00
pcm_dmix_x86_64.h pcm: dmic: assembly: add x32 support. 2020-06-17 15:37:03 +02:00
pcm_dshare.c pcm: fix the pcm_frames_diff -> pcm_frame_diff typo 2020-10-14 17:55:20 +02:00
pcm_dsnoop.c pcm: fix the pcm_frames_diff -> pcm_frame_diff typo 2020-10-14 17:55:20 +02:00
pcm_empty.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_ext_parm.h pcm: extplug: Keep format and channels the same if requested 2018-12-10 11:53:41 +01:00
pcm_extplug.c pcm: copy extplug timestamp type from the slave pcm 2020-06-18 19:18:14 +02:00
pcm_file.c pcm: file plugin - implement safe_write 2020-10-15 12:54:29 +02:00
pcm_generic.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_generic.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_hooks.c core: Proper reference of internal snd_dlopen() 2018-01-04 15:29:57 +01:00
pcm_hw.c pcm: hw: Don't return in a void function 2019-06-12 08:52:36 +02:00
pcm_iec958.c pcm: iec958: set channel status bits according to rate and format 2020-07-14 12:52:07 +02:00
pcm_ioplug.c pcm: set the snd_pcm_ioplug_status() tstamp field 2020-12-02 15:29:26 +01:00
pcm_ladspa.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_lfloat.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_linear.c pcm: linear, route: handle linear formats with 20-bit sample on 4 bytes 2017-12-18 15:41:08 +01:00
pcm_local.h pcm: fix __snd_pcm_state() return value 2020-12-27 13:31:57 +01:00
pcm_meter.c pcm: meter / s16 - add protection for the maximum copied frames 2020-10-13 19:31:49 +02:00
pcm_misc.c pcm: add and describe SND_PCM_FORMAT_{S, U}20 2017-12-18 15:40:36 +01:00
pcm_mmap.c pcm: snd_pcm_mmap_readi - fix typo in comment 2020-10-29 20:34:25 +01:00
pcm_mmap_emul.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_mulaw.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_multi.c pcm_multi: remove dead assignment from _snd_pcm_multi_open 2020-12-27 09:28:24 +01:00
pcm_null.c pcm: null: Do not allow a period size of 0 2019-04-08 14:27:29 +02:00
pcm_params.c pcm: return -ENOSYS when ops or fast_ops callback is NULL 2019-07-24 15:16:32 +02:00
pcm_plug.c pcm: plug: add SND_PCM_FORMAT_{S, U}20 to linear_preferred_formats 2017-12-18 15:41:29 +01:00
pcm_plugin.c pcm: fix the snd_pcm_plugin_status() avail and delay fields 2020-10-09 20:02:22 +02:00
pcm_plugin.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_rate.c pcm: remove dead assignments from snd_pcm_rate_(commit_area|grab_next_period) 2020-12-27 09:27:26 +01:00
pcm_rate_linear.c pcm: the maximal rate is 768000Hz, fix the remain code 2019-10-25 13:43:31 +02:00
pcm_route.c pcm: add chmap option to route plugin 2020-03-31 22:32:41 +02:00
pcm_share.c Use __func__ instead of __FUNCTION__ 2019-06-12 08:52:07 +02:00
pcm_shm.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_simple.c pcm: the maximal rate is 768000Hz, fix the remain code 2019-10-25 13:43:31 +02:00
pcm_softvol.c pcm: softvol: use position offset macro of TLV data 2018-05-15 18:03:13 +02:00
pcm_symbols.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
plugin_ops.h pcm: fix wrong comments for some cases of linear interpolation of PCM samples 2017-12-22 10:23:42 +01:00