asoc: tegra: aic326x machine: register the sw dev before the card
authorNikesh Oswal <noswal@nvidia.com>
Wed, 8 Feb 2012 18:35:03 +0000 (10:35 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 23 Mar 2012 23:05:28 +0000 (16:05 -0700)
commit2e5dd03ab1412f1f91d9da8194371096e47bee96
tree3eb914d45176092a0c953e64f74265f680970ae2
parent2a4786511a30f9795cc86891d4ebb2aa1de7555c
asoc: tegra: aic326x machine: register the sw dev before the card

If sw dev is registered after the card then there would be a kernel
panic if we try to boot the device with Headset connected because
when the card is registered init of every dai link is called from where
we register the jack with codec driver and doing so will enable headset
interrupts which would try to set switch state for an unregistered switch
device

Change-Id: Ie951f41028a3459e4e13d021c80c3f830bbcc533
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/84536
Reviewed-by: Scott Peterson <speterson@nvidia.com>

Rebase-Id: R4e2f767707c51075da9326b212eaef15429610b0
sound/soc/tegra/tegra_aic326x.c