Add rate and channels to HDA config#2007
Add rate and channels to HDA config#2007plbossart merged 2 commits intothesofproject:topic/sof-devfrom
Conversation
|
I wonder if we should add the FIFO size, since that is configurable by the kernel. Right now it's probably not needed for anything, but we're already extending the ABI and the FW does propagate the FIFO size information. |
| @@ -3064,7 +3064,7 @@ static int sof_link_hda_load(struct snd_soc_component *scomp, int index, | |||
| config->hdr.size = size; | |||
There was a problem hiding this comment.
@bardliao Can you add a mention in commit message that as "hda_tokens" array was empty, this error has been harmless.
| #define SOF_TKN_MUTE_LED_USE 1300 | ||
| #define SOF_TKN_MUTE_LED_DIRECTION 1301 | ||
|
|
||
| /* HDA */ |
There was a problem hiding this comment.
Typo in summary line: rate amd channels -> rate and channels
There was a problem hiding this comment.
I wonder whether it makes sense to keep 2nd and 3rd patches separate. The first one doesn't really make much sense on its own. And I don't think it's worth having the same explanation again in this commit, on why this is done.
If you keep these separate, maybe something more useful to commit description than
"FW needs to know rate and channels."
Maybe just add "Added support for rate and channel tokens for HDA DAI. Added in topology interface 3.16."
Items in hda_tokens are for &config->hda. So fix it to the right object. This error has been harmless as hda_tokens array was empty. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
FW interface for HDA DAI parameters was extended with information on sampling rate and channel count in version 3.16. Align kernel header with the FW change. This change is backwards compatible. Old firmware will ignore the values. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
|
Thanks @kv2019i , PR updated |
FW needs to know rate and channels for HDA dai.
This PR should not be merged before #1943