audio: Fix caps initialization in pcm_enqueuebuffer()

Summary:
- I noticed that caps is not correctly initialized.
- This commit fixes this issue.

Impact:
- None

Testing:
- Tested with spresense:wifi_smp + nxplayer

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2024-09-26 16:05:48 +09:00 committed by Alin Jerpelea
parent d9b95c5ca0
commit 44e8772ee9
1 changed files with 1 additions and 0 deletions

View File

@ -1092,6 +1092,7 @@ static int pcm_enqueuebuffer(FAR struct audio_lowerhalf_s *dev,
if (headersize > 0)
{
struct audio_caps_s caps;
memset(&caps, 0, sizeof(caps));
/* Configure the lower level for the number of channels, bitrate,
* and sample bitwidth.