asoc: codecs: Check for core votes count before accessing registers
Check for core votes count before accessing swrm registers to avoid NOC errors. Change-Id: I5689d6a6db0886ed4cc791738a28290f3d953412 Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Este commit está contenido en:
@@ -84,6 +84,7 @@ int bolero_tx_clk_switch(struct snd_soc_component *component);
|
||||
int bolero_register_event_listener(struct snd_soc_component *component,
|
||||
bool enable);
|
||||
void bolero_wsa_pa_on(struct device *dev);
|
||||
bool bolero_check_core_votes(struct device *dev);
|
||||
#else
|
||||
static inline int bolero_register_res_clk(struct device *dev, rsc_clk_cb_t cb)
|
||||
{
|
||||
@@ -158,5 +159,10 @@ static inline int bolero_register_event_listener(
|
||||
static void bolero_wsa_pa_on(struct device *dev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline bool bolero_check_core_votes(struct device *dev)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif /* CONFIG_SND_SOC_BOLERO */
|
||||
#endif /* BOLERO_CDC_H */
|
||||
|
Referencia en una nueva incidencia
Block a user