mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Replace unsafe characters with _ in card name
Otherwise, they get misinterpreted as argument separators in USB-Audio PCM definitions, and thus prevent SPDIF blacklist entries from working. While at it, add my Logitec C910 webcam to the SPDIF blacklist. Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c6df827374
commit
4dc44bb34a
4 changed files with 36 additions and 2 deletions
|
|
@ -935,7 +935,7 @@ int snd_func_card_name(snd_config_t **dst, snd_config_t *root,
|
|||
}
|
||||
err = snd_config_get_id(src, &id);
|
||||
if (err >= 0)
|
||||
err = snd_config_imake_string(dst, id,
|
||||
err = snd_config_imake_safe_string(dst, id,
|
||||
snd_ctl_card_info_get_name(info));
|
||||
__error:
|
||||
if (ctl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue