diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-04-30 14:52:35 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-30 14:52:35 +0200 |
commit | 7d9972c6ad154bc55ccecb555ec84c01a694a050 (patch) | |
tree | b53cf4b1b3bf4f71fffd7352b3dda3fa30996cd3 /src/hwdep | |
parent | 46d98392d0f832e46693c8c06b4927a5eb6f4b28 (diff) | |
download | alsa-lib-7d9972c6ad154bc55ccecb555ec84c01a694a050.tar.gz |
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>
Diffstat (limited to 'src/hwdep')
-rw-r--r-- | src/hwdep/hwdep_hw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/hwdep/hwdep_hw.c b/src/hwdep/hwdep_hw.c index 4314e32b..12528c55 100644 --- a/src/hwdep/hwdep_hw.c +++ b/src/hwdep/hwdep_hw.c @@ -158,9 +158,7 @@ int _snd_hwdep_hw_open(snd_hwdep_t **hwdep, char *name, const char *id; if (snd_config_get_id(n, &id) < 0) continue; - if (strcmp(id, "comment") == 0) - continue; - if (strcmp(id, "type") == 0) + if (_snd_conf_generic_id(id)) continue; if (strcmp(id, "card") == 0) { err = snd_config_get_integer(n, &card); |