Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
intel: ssp: support zero mclk_rate in hw_config#7840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -8,7 +8,6 @@ include(`ssp.m4') | ||
| ifdef(`SSP_INDEX',`', | ||
| `define(SSP_INDEX, `2')') | ||
| define(`BT_MCLK', 38400000) | ||
| define(`SSP_NAME', concat(concat(`SSP', SSP_INDEX),`-BT')) | ||
| # variable that need to be defined in upper m4 | ||
| @@ -61,17 +60,17 @@ define(`data_names', DAI_DATA_NAMES(LIST(` ', "ssp_data1", "ssp_data2", "ssp | ||
| # Note WB is put as default in the list | ||
| define(`ssp_config_list_1', LIST(`', | ||
| `MULTI_SSP_CONFIG(hw_config1, HW_CONFIG_ID, DSP_A, SSP_CLOCK(mclk, BT_MCLK, codec_mclk_in),' | ||
| `MULTI_SSP_CONFIG(hw_config1, HW_CONFIG_ID, DSP_A, SSP_CLOCK(mclk, 0, codec_mclk_in),' | ||
| `SSP_CLOCK(bclk, 256000, codec_master, inverted),' | ||
| `SSP_CLOCK(fsync, 16000, codec_master),' | ||
| `SSP_TDM(1, 16, 1, 1),' | ||
| `SSP_MULTI_CONFIG_DATA(ssp_data1, 16))', | ||
| `MULTI_SSP_CONFIG(hw_config2, eval(HW_CONFIG_ID + 1), DSP_A, SSP_CLOCK(mclk, BT_MCLK, codec_mclk_in),' | ||
| `MULTI_SSP_CONFIG(hw_config2, eval(HW_CONFIG_ID + 1), DSP_A, SSP_CLOCK(mclk, 0, codec_mclk_in),' | ||
| `SSP_CLOCK(bclk, 128000, codec_master, inverted),' | ||
| `SSP_CLOCK(fsync, 8000, codec_master),' | ||
| `SSP_TDM(1, 16, 1, 1),' | ||
| `SSP_MULTI_CONFIG_DATA(ssp_data2, 16))', | ||
| `MULTI_SSP_CONFIG(hw_config3, eval(HW_CONFIG_ID + 2), DSP_A, SSP_CLOCK(mclk, BT_MCLK, codec_mclk_in),' | ||
| `MULTI_SSP_CONFIG(hw_config3, eval(HW_CONFIG_ID + 2), DSP_A, SSP_CLOCK(mclk, 0, codec_mclk_in),' | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
| ||
| `SSP_CLOCK(bclk, 1536000, codec_slave),' | ||
| `SSP_CLOCK(fsync, 48000, codec_slave),' | ||
| `SSP_TDM(2, 16, 3, 0),' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config->ssp.mclk_rate
if it is zero, previous logic will goto out, current does not, is this expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, in previous logic, you need to specify a mclk id and rate even the codec does not need it. Here we use the zero to specify this situation.