Completed conf. Better name for snd_card_get_index. Cleaned card access

This commit is contained in:
Abramo Bagnara 2000-08-25 14:33:53 +00:00
parent 845d917797
commit b5576ef229
10 changed files with 144 additions and 89 deletions

View file

@ -523,7 +523,7 @@ static int _snd_pcm_open_hw(snd_pcm_t **handlep, snd_config_t *conf,
err = snd_config_string_get(n, &str);
if (err < 0)
return -EINVAL;
card = snd_card_name(str);
card = snd_card_get_index(str);
if (card < 0)
return card;
}
@ -569,7 +569,7 @@ static int _snd_pcm_open_plug(snd_pcm_t **handlep, snd_config_t *conf,
err = snd_config_string_get(n, &str);
if (err < 0)
return -EINVAL;
card = snd_card_name(str);
card = snd_card_get_index(str);
if (card < 0)
return card;
}