-
Notifications
You must be signed in to change notification settings - Fork 11
audioreach-driver: Remove header dependencies and fix compilation warnings #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…nings Remove unnecessary header dependencies to improve build compatibility with Debian-based systems. Clean up the audioreach driver code to address compilation warnings including missing function prototypes and undefined symbols. These changes have been tested and verified on QCS6490-RB3gen2 and Lemans-EVK development boards. Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
quic-aditrath
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| return qcs6490_snd_wcd_jack_setup(rtd, &data->jack, &data->jack_setup); | ||
| } | ||
|
|
||
| static int qcs6490_snd_startup(struct snd_pcm_substream *substream) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not getting the context of this change. How is it related to debian compilation? I thought we are just duplicating definitions from header files which are not residing in /inc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in existing machine driver in upstream, the startup snd-ops function defined in sound/soc/qcom/sdw.c and not in machine driver, the function declarations done in sound/soc/qcom/sdw.c not in Include.
As part of independed machine driver compilation startup defined in machine driver since it's driver specific snd ops.
| ret = fifo_pop(&backup); | ||
| if (ret < 0) | ||
| AUDIO_PKT_ERR("Failed to pop backup ports from FIFO\n"); | ||
| dev_dbg(dev, "Failed to pop backup ports from FIFO\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there AUDIO_PKT_DBG macro? Is AUDIO_PKT_ERR defined to allow log level change at run-time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AUDIO_PKT_DBG macro not available and there is no log level AUDIO_PKT_ERR.
|
Please help rebase the PR, Observing conflicts in audioreach-driver/q6apm_audio_pkt.c file |
|
sure will rebase the PR by resolving conflicts |
Remove unnecessary header dependencies to improve build compatibility with Debian-based systems. Clean up the audioreach driver code to address compilation warnings including missing function prototypes and undefined symbols.
These changes have been tested and verified on QCS6490-RB3gen2 and Lemans-EVK development boards.