device-port: Create the profiles hashmap at initialization.
authorTanu Kaskinen <tanuk@iki.fi>
Mon, 4 Jun 2012 14:44:20 +0000 (17:44 +0300)
committerJaska Uimonen <jaska.uimonen@intel.com>
Thu, 24 Jan 2013 07:29:36 +0000 (09:29 +0200)
commit8ea12937cebed11be9bbd714fa9ae35562197c5d
tree33bab08e4e81b46ab22bf9a400547b93753300d6
parentea7adaf44b0f7d6bc0625b462d0d1e587501dbde
device-port: Create the profiles hashmap at initialization.

I doesn't make sense to require all callers of
pa_device_port_new() to create the hashmap themselves. There
are and there will be no cases where a port without any
profiles would be desired.
src/modules/alsa/alsa-mixer.c
src/pulsecore/device-port.c