dai: Always overwrite hw frame_fmt in dai_comp_get_hw_params

This value is always set in dai_new() function, value 0 represents
SOF_IPC_FRAME_S16_LE so such an check doesn't give any value.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2020-07-14 13:40:39 +02:00 committed by Janusz Jankowski
parent cbce6fef38
commit b7881f260f
1 changed files with 1 additions and 2 deletions

View File

@ -230,7 +230,6 @@ static int dai_comp_get_hw_params(struct comp_dev *dev,
* frame_fmt hardware parameter as DAI component is able to convert
* stream with different frame_fmt's (using pcm converter)
*/
if (dd->frame_fmt)
params->frame_fmt = dd->frame_fmt;
return 0;