diff options
author | Adrian Alonso <aalonso@freescale.com> | 2011-12-19 16:35:06 -0600 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-01-09 21:12:02 +0800 |
commit | fcb988e66aa3311eb434e501b366abaf93d5dbb1 (patch) | |
tree | bf22fc2bcca64014f6e8d13462dfe72fe79f7ac1 /include | |
parent | e7d420f8d354b8dbd1546e957646660d2f990e46 (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 2e99580f6e9e..2a374064c917 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h @@ -317,6 +317,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); |