mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
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:
committed by
Alin Jerpelea
parent
d9b95c5ca0
commit
44e8772ee9
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user