asoc: aic326x machine: handle switch unregistration
authorNikesh Oswal <noswal@nvidia.com>
Wed, 14 Mar 2012 12:12:56 +0000 (17:12 +0530)
committerSimone Willett <swillett@nvidia.com>
Fri, 23 Mar 2012 20:58:33 +0000 (13:58 -0700)
commit78acd20afb42512133bc9d7a40e43f7cc2bbea75
tree0090729fb74b41fe4cf9630ed5e8db3793491423
parent941b25aa5081674617065426f9edd71309846b6c
asoc: aic326x machine: handle switch unregistration

If switch registration is success and later card registration
fails then we must unregister the switch

Change-Id: I140b3fb0890f41fea653100bcff450f10294cd9d
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90058
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
sound/soc/tegra/tegra_aic326x.c