aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-04-08 16:07:23 +0200
committerTakashi Iwai <tiwai@suse.de>2015-04-08 16:07:23 +0200
commit6e8e199228884852ef307a4e889d205fd702ed47 (patch)
treede0d00fd71b82315ee2c3dcd45f56472e6071076
parent8239a38f5039a28c41065012efa40c8f8d5fa556 (diff)
downloadhda-emu-6e8e199228884852ef307a4e889d205fd702ed47.tar.gz
Fix -P x=y option handling
-rw-r--r--hda-emu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hda-emu.c b/hda-emu.c
index 485301f..c480914 100644
--- a/hda-emu.c
+++ b/hda-emu.c
@@ -1139,7 +1139,7 @@ static int override_pincfg(struct xhda_codec *codec, char *pincfg, int user)
if (strchr(pincfg, '=')) {
/* direct pincfg string */
int reg, val;
- if (sscanf(pincfg, "%i %i", &reg, &val) != 2) {
+ if (sscanf(pincfg, "%i=%i", &reg, &val) != 2) {
hda_log(HDA_LOG_ERR, "Invalid pincfg %s\n", pincfg);
return -EINVAL;
}