topology: ssp: add polarity inversion option in SSP_CLOCK

alsatplg allows setting inverted bclk and fsync polarities
by setting either bclk_invert or fsync_invert to "true".
This patch adds a default parameter in the SSP_CLOCK m4
macro which allows setting inverted bclk and fsync polarities.

Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
This commit is contained in:
Dragos Tarcatu 2019-02-25 15:28:30 +02:00 committed by Liam Girdwood
parent c12d68cfa0
commit e9c81160ee
1 changed files with 4 additions and 3 deletions

View File

@ -2,11 +2,12 @@ divert(-1)
dnl SSP related macros
dnl SSP_CLOCK(clock, freq, codec_master)
dnl SSP_CLOCK(clock, freq, codec_master, polarity)
dnl polarity is optional
define(`SSP_CLOCK',
$1 STR($3)
$1_freq STR($2))
$1_freq STR($2)
`ifelse($4, `inverted', `$1_invert "true"',`')')
dnl SSP_TDM(slots, width, tx_mask, rx_mask)
define(`SSP_TDM',