diff options
author | Simon Glass <sjg@chromium.org> | 2018-12-03 04:37:23 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-12-13 16:32:49 -0700 |
commit | 7153ad834f72da49eadf8b5e66d593f88514be7c (patch) | |
tree | f81b3793882be83af227f26e27992e06b608a485 /drivers/sound/wm8994.c | |
parent | ccf0425e3208cbc17f08411651c1197da3b38f3a (diff) |
dm: sound: Drop codec_type
This field is not really used. It is always set to a known value. Drop it
to simplify the code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/sound/wm8994.c')
-rw-r--r-- | drivers/sound/wm8994.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c index 34bc4eb516f..2e84e92a2e0 100644 --- a/drivers/sound/wm8994.c +++ b/drivers/sound/wm8994.c @@ -847,8 +847,6 @@ static int get_codec_values(struct sound_codec_info *pcodec_info, return -1; } - pcodec_info->codec_type = CODEC_WM_8994; - if (error == -1) { debug("fail to get wm8994 codec node properties\n"); return -1; @@ -875,14 +873,6 @@ int wm8994_init(const void *blob, enum en_audio_interface aif_id, g_wm8994_i2c_dev_addr = pcodec_info->i2c_dev_addr; wm8994_i2c_init(pcodec_info->i2c_bus); - if (pcodec_info->codec_type == CODEC_WM_8994) { - g_wm8994_info.type = WM8994; - } else { - debug("%s: Codec id [%d] not defined\n", __func__, - pcodec_info->codec_type); - return -1; - } - ret = wm8994_device_init(&g_wm8994_info, aif_id); if (ret < 0) { debug("%s: wm8994 codec chip init failed\n", __func__); |