diff options
author | Adrian Alonso <aalonso@freescale.com> | 2011-12-19 16:35:06 -0600 |
---|---|---|
committer | Adrian Alonso <aalonso@freescale.com> | 2011-12-20 14:28:32 -0600 |
commit | bbe91203a71a1dca80905645c430c5ede8764b1d (patch) | |
tree | b583b32b0568b8ee0d3211972bf26b2837f80c44 /include | |
parent | 848523319c780451cceceb2a053f4c599fb2bad7 (diff) |
ENGR00170627 imx-cs42888: overwrite codec_name if passed as platform data
* Overwrite codec_name if passed as platform data
* Add codec_name in mxc_audio_platform_data
* Codec name follows the naming convention
<codec>.<i2c-channel>-<codec i2c address> i.e. cs42888.0-0048
* For IMX6Q-ARD this name convention doesn't follow previous settings for
imx6q platforms codec is on different i2c channel and can't be resolved
by CONFIG macros on imx_3stack_dai data structure; So we overwrite in
probe function by getting the correct value from plat_data->codec_name.
Signed-off-by: Adrian Alonso <aalonso@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fsl_devices.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index d5966aad9196..0bb6c7eedb3e 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h @@ -313,6 +313,7 @@ struct mxc_audio_platform_data { int sysclk; int rst_gpio; + const char *codec_name; int (*init) (void); /* board specific init */ int (*amp_enable) (int enable); |