asoc: bolero: Update version query for bolero 2.1

Expose API from bolero driver to retrieve version
info by macro drivers. Update bolero driver to
get version from dtsi.

Change-Id: Idc3735721de90ee4f74319537b17a530d3c125a6
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam
2019-10-11 18:20:19 +05:30
부모 1543085859
커밋 f1623021b1
3개의 변경된 파일89개의 추가작업 그리고 32개의 파일을 삭제

파일 보기

@@ -68,12 +68,9 @@ static int regmap_bus_read(void *context, const void *reg, size_t reg_size,
reg_p = (u16 *)reg;
macro_id = bolero_get_macro_id(priv->va_without_decimation,
reg_p[0]);
if (macro_id < 0 || !priv->macros_supported[macro_id]) {
dev_err_ratelimited(dev,
"%s: Unsupported macro %d or reg 0x%x is invalid\n",
__func__, macro_id, reg_p[0]);
return ret;
}
if (macro_id < 0 || !priv->macros_supported[macro_id])
return 0;
mutex_lock(&priv->io_lock);
for (i = 0; i < val_size; i++) {
__reg = (reg_p[0] + i * 4) - macro_id_base_offset[macro_id];
@@ -121,12 +118,9 @@ static int regmap_bus_gather_write(void *context,
reg_p = (u16 *)reg;
macro_id = bolero_get_macro_id(priv->va_without_decimation,
reg_p[0]);
if (macro_id < 0 || !priv->macros_supported[macro_id]) {
dev_err_ratelimited(dev,
"%s: Unsupported macro-id %d or reg 0x%x is invalid\n",
__func__, macro_id, reg_p[0]);
return ret;
}
if (macro_id < 0 || !priv->macros_supported[macro_id])
return 0;
mutex_lock(&priv->io_lock);
for (i = 0; i < val_size; i++) {
__reg = (reg_p[0] + i * 4) - macro_id_base_offset[macro_id];