codecs: add wcd9360 driver support in wcd9xxx core

Add changes to support wcd9360 audio codec driver in
wcd9xxx common files.

Change-Id: I5b9f9d592b6843d7887eb3954d079776ddf15764
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
这个提交包含在:
Vidyakumar Athota
2018-01-22 18:32:55 -08:00
提交者 Gerrit - the friendly Code Review server
父节点 9cbeb97832
当前提交 130934724f
修改 6 个文件,包含 253 行新增69 行删除

查看文件

@@ -1,4 +1,4 @@
/* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -88,6 +88,7 @@ static const int wcd9xxx_cdc_types[] = {
[WCD9330] = WCD9330,
[WCD9335] = WCD9335,
[WCD934X] = WCD934X,
[WCD9360] = WCD9360,
};
static const struct of_device_id wcd9xxx_of_match[] = {
@@ -327,7 +328,8 @@ int wcd9xxx_slim_write_repeat(struct wcd9xxx *wcd9xxx, unsigned short reg,
struct slim_ele_access slim_msg;
mutex_lock(&wcd9xxx->io_lock);
if (wcd9xxx->type == WCD9335 || wcd9xxx->type == WCD934X) {
if (wcd9xxx->type == WCD9335 || wcd9xxx->type == WCD934X ||
wcd9xxx->type == WCD9360) {
ret = wcd9xxx_page_write(wcd9xxx, &reg);
if (ret)
goto done;