mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Allow hint for ctl, hwdep, timer and seq
Like pcm and rawmidi, each object parser needs to accept the hint component. Now a new local function _snd_conf_generic_id() was introduced to replace each call of "comment" and "type" field checks. Also, the two existing identical functions for pcm and rawmidi are removed and the new function is used commonly. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
46d98392d0
commit
7d9972c6ad
12 changed files with 25 additions and 54 deletions
|
|
@ -262,8 +262,6 @@ struct _snd_pcm {
|
|||
snd1_pcm_areas_from_bufs
|
||||
#define snd_pcm_open_named_slave \
|
||||
snd1_pcm_open_named_slave
|
||||
#define snd_pcm_conf_generic_id \
|
||||
snd1_pcm_conf_generic_id
|
||||
#define snd_pcm_hw_open_fd \
|
||||
snd1_pcm_hw_open_fd
|
||||
#define snd_pcm_wait_nocheck \
|
||||
|
|
@ -882,7 +880,8 @@ snd_pcm_open_slave(snd_pcm_t **pcmp, snd_config_t *root,
|
|||
return snd_pcm_open_named_slave(pcmp, NULL, root, conf, stream,
|
||||
mode, parent_conf);
|
||||
}
|
||||
int snd_pcm_conf_generic_id(const char *id);
|
||||
|
||||
#define snd_pcm_conf_generic_id(id) _snd_conf_generic_id(id)
|
||||
|
||||
int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *name, int fd, int mmap_emulation, int sync_ptr_ioctl);
|
||||
int __snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue