hcontrol: fix compare_default function to handle also id.device and id.subdevice
authorJaroslav Kysela <perex@perex.cz>
Tue, 6 Oct 2009 08:46:54 +0000 (10:46 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 6 Oct 2009 08:46:54 +0000 (10:46 +0200)
commit0110d62043589f0e3344d7af7ed33ac52da6b596
tree7371f8568cb46f074803b1dd7a9c7b43f3dae071
parent0d81de0bca5cc7097c9a1b4465b95a054e5bc70b
hcontrol: fix compare_default function to handle also id.device and id.subdevice

In case when kcontrol differs only by device or subdevice numbers, the
find function can give wrong results.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/control/hcontrol.c