osxaudio: Avoid making a duplicate structure in caps for mono/stereo case
authorArun Raghavan <arun@centricular.com>
Tue, 7 Apr 2015 10:10:14 +0000 (15:40 +0530)
committerArun Raghavan <git@arunraghavan.net>
Tue, 14 Jul 2015 12:19:50 +0000 (17:49 +0530)
commit8f0f9763758f00b16524c3efc38e56a24c3da3d2
treeb6bfb3d7840098da29b701cb2e2bed08bb82a3b8
parent691ecebe227d27914cd6efb1ff86d2d42679d3f3
osxaudio: Avoid making a duplicate structure in caps for mono/stereo case

For 1ch or 2ch devices, we just need to set the caps to allow both
options since CoreAudio will up/downmix appropriately.

Also fixes the condition for the 2ch case to be exact, rather than at
least 2 channels since the downmix will not take place in the >stereo
case.
sys/osxaudio/gstosxcoreaudio.c