alsa: Don't try to use ELD controls with UCM
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 6 Feb 2015 22:15:34 +0000 (00:15 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Thu, 12 Feb 2015 13:06:59 +0000 (15:06 +0200)
commit82ec47898e77dca94a7d73e976363f745081d828
treeaa24fd3946858b5a5336780789f5e0d4bd533d56
parentff5e7b8707ef7758d8e4a73885694777af743835
alsa: Don't try to use ELD controls with UCM

This fixes a crash that occurred when trying to access non-existent
port data. Doing this:

    pa_alsa_port_data *data = PA_DEVICE_PORT_DATA(port);

is not a good idea when using UCM, because in the UCM mode ports don't
have any data, so the data pointer points to some random memory.
src/modules/alsa/module-alsa-card.c