]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00295423-3 ASoC: fsl_ssi: Don't disable SSIEN if SSI is already enabled
authorNicolin Chen <Guangyu.Chen@freescale.com>
Mon, 6 Jan 2014 08:55:07 +0000 (16:55 +0800)
committerNicolin Chen <Guangyu.Chen@freescale.com>
Thu, 16 Jan 2014 11:27:49 +0000 (19:27 +0800)
commit6f77992ba7b282df9168de9cea1c9f3374cf23b0
tree71144ad8889e6a2135a435323015f71055407669
parent51eb47421c36dbb4d7542cd79f6f2e63e9e0df4a
ENGR00295423-3 ASoC: fsl_ssi: Don't disable SSIEN if SSI is already enabled

If disabling SSI when SSI is already in the working state, the whole running
substream would be broken. Thus we here replace it to a safer way -- saving
the current SSIEN value and restore it afterward.

This patch also adds a slot number checking code before setting slot number.

Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
(cherry picked from commit 2f71335a5b39afec4cf976b45683e5de1baed31d)
sound/soc/fsl/fsl_ssi.c