shared/vcp: Fix issues of audio location and descriptor
authorNitin Jadhav <nitin.jadhav@nxp.com>
Tue, 25 Jul 2023 13:47:41 +0000 (16:47 +0300)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:03 +0000 (19:04 +0530)
commit8f67d54af051814737c1542f90e1b32517432442
treea9ed3b116e249088be2baac9fbc4eb023fb6ea78
parent0ca5d8d33e80d2ce5b76daac3408042e00a43682
shared/vcp: Fix issues of audio location and descriptor

Issues
- Audio output descriptor & location read functions requires code
correction.
- During reading audio location descriptor value was checked
instead of the pointer. DBG statement wrongly accessed value
to print the log that caused the crash.

Fix
- Corrected audio output descriptor read variable
- Corrected the audio location debug printing function
- Allocated the memory as a char pointer to the audio descriptor variable.
- Corrected the audio descriptor pointer checking condition
src/shared/vcp.c