OSDN Git Service

namehint: Fix the listing without device number
authorTakashi Iwai <tiwai@suse.de>
Thu, 30 Apr 2015 12:32:49 +0000 (14:32 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 Apr 2015 12:32:49 +0000 (14:32 +0200)
commitc8667e3db4a47b0379562341317f3e868a7b2d51
tree0fd82ffc18a82bbbb73bbc952223bab1184dd66a
parentbf98b4e3166c28343429119135644ba70c6e5277
namehint: Fix the listing without device number

The current code of snd_device_name_hint() has a bug when listing up
devices without the device index (e.g. ctl).  Because it assigns the
default device index 0 unconditionally and it has a check at the later
point to filter entries with dev >= 0, it ended up with empty
outputs.

The fix is simply to remove the bogus assignment of dev = 0.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/control/namehint.c