sink, source: Allow calling set_mute() during initialization 54/21954/1
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Mon, 14 Apr 2014 11:43:23 +0000 (14:43 +0300)
committerIsmo Puustinen <ismo.puustinen@intel.com>
Wed, 28 May 2014 09:40:04 +0000 (12:40 +0300)
commitc1a172e3835be04946e81649172e17af477d774e
tree911895ad23c5ca375875bc92e038aa7d3cb32251
parent8d7674db9b36b3cf7e7d56957a6ecfb84478ba63
sink, source: Allow calling set_mute() during initialization

Currently the alsa sink and source write directly to s->muted during
initialization, but I think it's better to avoid direct writes, and
use the set_mute() function instead, because that makes it easier to
figure out where s->muted is modified. This patch prevents the
set_mute() call from crashing in the state assertion.

Change-Id: I12220fb2668723931bebbe1484f115016f1edf25
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
src/pulsecore/sink.c
src/pulsecore/source.c