mirror of https://github.com/thesofproject/sof.git
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:
parent
cbce6fef38
commit
b7881f260f
|
@ -230,8 +230,7 @@ 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;
|
||||
params->frame_fmt = dd->frame_fmt;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue