mirror of https://github.com/thesofproject/sof.git
BDW: refine ssp start function
Set Tx|Rx Enable for starting playback|capture Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
This commit is contained in:
parent
5af786cfc8
commit
933f275d43
|
@ -439,11 +439,13 @@ static void ssp_start(struct dai *dai, int direction)
|
|||
SSCR1_TSRE | SSCR1_EBCEI);
|
||||
ssp_update_bits(dai, SSCR0, SSCR0_SSE, SSCR0_SSE);
|
||||
ssp_update_bits(dai, SSCR0, SSCR0_TIM, 0);
|
||||
ssp_update_bits(dai, SSTSA, SSTSA_TSEN, SSTSA_TSEN);
|
||||
} else {
|
||||
ssp_update_bits(dai, SSCR1, SSCR1_RSRE | SSCR1_EBCEI,
|
||||
SSCR1_RSRE | SSCR1_EBCEI);
|
||||
ssp_update_bits(dai, SSCR0, SSCR0_SSE, SSCR0_SSE);
|
||||
ssp_update_bits(dai, SSCR0, SSCR0_RIM, 0);
|
||||
ssp_update_bits(dai, SSRSA, SSRSA_RSEN, SSRSA_RSEN);
|
||||
}
|
||||
|
||||
/* enable port */
|
||||
|
|
|
@ -198,7 +198,8 @@ extern const struct dai_ops ssp_ops;
|
|||
#define SFIFOTT_TX(x) ((x) - 1)
|
||||
#define SFIFOTT_RX(x) (((x) - 1) << 16)
|
||||
|
||||
#if defined CONFIG_APOLLOLAKE || defined CONFIG_CANNONLAKE
|
||||
#if defined CONFIG_APOLLOLAKE || defined CONFIG_CANNONLAKE ||\
|
||||
defined CONFIG_HASWELL || defined CONFIG_BROADWELL
|
||||
#define SSTSA_TSEN BIT(8)
|
||||
#define SSRSA_RSEN BIT(8)
|
||||
|
||||
|
|
Loading…
Reference in New Issue