Loading asoc/codecs/sdm660_cdc/msm-digital-cdc.c +9 −3 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2015-2017, 2020, The Linux Foundation. All rights reserved. * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include <linux/module.h> #include <linux/init.h> Loading Loading @@ -1141,8 +1142,10 @@ static int msm_dig_cdc_event_notify(struct notifier_block *block, break; case DIG_CDC_EVENT_SSR_UP: regcache_cache_only(msm_dig_cdc->regmap, false); if ((msm_dig_cdc->regmap) != NULL && (msm_dig_cdc->regmap->lock) != NULL && (msm_dig_cdc->regmap->lock_arg) != NULL) { regcache_mark_dirty(msm_dig_cdc->regmap); } mutex_lock(&pdata->cdc_int_mclk0_mutex); pdata->digital_cdc_core_clk.enable = 1; ret = afe_set_lpass_clock_v2( Loading @@ -1156,7 +1159,10 @@ static int msm_dig_cdc_event_notify(struct notifier_block *block, } mutex_unlock(&pdata->cdc_int_mclk0_mutex); if ((msm_dig_cdc->regmap) != NULL && (msm_dig_cdc->regmap->lock) != NULL && (msm_dig_cdc->regmap->lock_arg) != NULL) { regcache_sync(msm_dig_cdc->regmap); } mutex_lock(&pdata->cdc_int_mclk0_mutex); pdata->digital_cdc_core_clk.enable = 0; Loading dsp/q6lsm.c +11 −1 Original line number Diff line number Diff line Loading @@ -2036,7 +2036,17 @@ static int q6lsm_mmapcallback(struct apr_client_data *data, void *priv) return 0; } if (data->payload_size < (2 * sizeof(uint32_t))) { /* The payload_size can be either 4 or 8 bytes. It has to be verified whether the payload_size is atleast 4 bytes. If it is less, returns errorcode. The opcode for 4 bytes is 0x12A80 The opcode for 8 bytes is 0x110E8. */ if (data->payload_size < (2 * sizeof(uint16_t))) { pr_err("%s: payload has invalid size[%d]\n", __func__, data->payload_size); return -EINVAL; Loading Loading
asoc/codecs/sdm660_cdc/msm-digital-cdc.c +9 −3 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2015-2017, 2020, The Linux Foundation. All rights reserved. * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ #include <linux/module.h> #include <linux/init.h> Loading Loading @@ -1141,8 +1142,10 @@ static int msm_dig_cdc_event_notify(struct notifier_block *block, break; case DIG_CDC_EVENT_SSR_UP: regcache_cache_only(msm_dig_cdc->regmap, false); if ((msm_dig_cdc->regmap) != NULL && (msm_dig_cdc->regmap->lock) != NULL && (msm_dig_cdc->regmap->lock_arg) != NULL) { regcache_mark_dirty(msm_dig_cdc->regmap); } mutex_lock(&pdata->cdc_int_mclk0_mutex); pdata->digital_cdc_core_clk.enable = 1; ret = afe_set_lpass_clock_v2( Loading @@ -1156,7 +1159,10 @@ static int msm_dig_cdc_event_notify(struct notifier_block *block, } mutex_unlock(&pdata->cdc_int_mclk0_mutex); if ((msm_dig_cdc->regmap) != NULL && (msm_dig_cdc->regmap->lock) != NULL && (msm_dig_cdc->regmap->lock_arg) != NULL) { regcache_sync(msm_dig_cdc->regmap); } mutex_lock(&pdata->cdc_int_mclk0_mutex); pdata->digital_cdc_core_clk.enable = 0; Loading
dsp/q6lsm.c +11 −1 Original line number Diff line number Diff line Loading @@ -2036,7 +2036,17 @@ static int q6lsm_mmapcallback(struct apr_client_data *data, void *priv) return 0; } if (data->payload_size < (2 * sizeof(uint32_t))) { /* The payload_size can be either 4 or 8 bytes. It has to be verified whether the payload_size is atleast 4 bytes. If it is less, returns errorcode. The opcode for 4 bytes is 0x12A80 The opcode for 8 bytes is 0x110E8. */ if (data->payload_size < (2 * sizeof(uint16_t))) { pr_err("%s: payload has invalid size[%d]\n", __func__, data->payload_size); return -EINVAL; Loading