summaryrefslogtreecommitdiffstats
path: root/drivers/sound/max98095.c
Commit message (Collapse)AuthorAgeFilesLines
* common: Drop log.h from common headerSimon Glass2020-05-181-0/+1
| | | | | | Move this header out of the common header. Signed-off-by: Simon Glass <sjg@chromium.org>
* sound: Allow audio codecs to be used by other SoCsSimon Glass2019-02-091-7/+0
| | | | | | | At present there is still some samsung-specific code in the audio codecs. Remove it so that these can be used by other SoCs. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: max98095: Tidy up error codesSimon Glass2018-12-131-24/+23
| | | | | | Return a valid error code instead of -1. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: Fix license headersSimon Glass2018-12-131-5/+2
| | | | | | Fix a few files whos license headers were not converted to SPDX. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: Complete migration to driver modelSimon Glass2018-12-131-78/+0
| | | | | | | All users of sound are converted to use driver model. Drop the old code and the CONFIG_DM_SOUND option. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: Move common code out of maxim98095Simon Glass2018-12-131-134/+47
| | | | | | | The register-access code is useful for any maxim codec. Move it out into its own file. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: Add conversion to driver modelSimon Glass2018-12-131-1/+58
| | | | | | Move the existing hardware drivers over to use driver model. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: exynos: Correct codec bus addressesSimon Glass2018-12-131-2/+1
| | | | | | | | For snow the codec is at address 0x11 on the i2c bus, in 7-bit format. The device tree and code are in 8-bit format (i.e. shifted left one bit). Fix both. Fix pit in a similar way. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: Fix up header orderingSimon Glass2018-12-131-6/+5
| | | | | | Tidy up the ordering of header files in the sounds files. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: max98095: Drop g_codec_info and g_max98095_infoSimon Glass2018-12-131-15/+12
| | | | | | | | These are only used in two functions so can be made local. Also change the first argument of max98095_do_init() to suit. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: max98095: Drop global i2c-address variableSimon Glass2018-12-131-4/+4
| | | | | | We can put this in the private structure and avoid a global. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: max98095: Split out interface setup codeSimon Glass2018-12-131-12/+24
| | | | | | | | | With driver model we want to do a minimal probe when the device is probed and then set up the codec interface later when a sound is actully played. Split this setup code out into its own function to help with this. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: max98095: Pass private data to internal functionsSimon Glass2018-12-131-74/+78
| | | | | | | | | | | | At present the driver-private data is global. To allow this code to be used with driver model, change it to pass the data down to each function. Use the name 'priv' consistently throughout. Also rename max98095_update_bits() to max98095_bic_or() which is more descriptive and shorter, thus breaking fewer lines with the parameter addition. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: sound: Drop codec_typeSimon Glass2018-12-131-14/+0
| | | | | | | 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>
* dm: sound: Drop unused pre-device-tree codeSimon Glass2018-12-131-6/+0
| | | | | | | CONFIG_OF_CONTROL is enabled for all boards that use sound, so remove the dead code. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: gpio: Add live tree supportSimon Glass2017-06-011-0/+2
| | | | | | | | | | | Add support for requesting GPIOs with a live device tree. This involves adjusting the function signature for the legacy function gpio_request_by_name_nodev(), so fix up all callers. Signed-off-by: Simon Glass <sjg@chromium.org> Fixes to stm32f746-disco.c: Signed-off-by: Tom Rini <trini@konsulko.com>
* of: clean up OF_CONTROL ifdef conditionalsMasahiro Yamada2015-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We have flipped CONFIG_SPL_DISABLE_OF_CONTROL. We have cleansing devices, $(SPL_) and CONFIG_IS_ENABLED(), so we are ready to clear away the ugly logic in include/fdtdec.h: #ifdef CONFIG_OF_CONTROL # if defined(CONFIG_SPL_BUILD) && !defined(SPL_OF_CONTROL) # define OF_CONTROL 0 # else # define OF_CONTROL 1 # endif #else # define OF_CONTROL 0 #endif Now CONFIG_IS_ENABLED(OF_CONTROL) is the substitute. It refers to CONFIG_OF_CONTROL for U-boot proper and CONFIG_SPL_OF_CONTROL for SPL. Also, we no longer have to cancel CONFIG_OF_CONTROL in include/config_uncmd_spl.h and scripts/Makefile.spl. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
* Sound: MAX98095: Support I2S0 channelDani Krishna Mohan2013-09-241-57/+98
| | | | | | | This patch modifies the MAX98095 audio codec to support I2S0 channel in codec slave mode. Signed-off-by: Dani Krishna Mohan <krishna.md@samsung.com>
* Sound: MAX98095: Add the driver for codecRajeshwari Shinde2013-03-081-0/+550
This patch adds the driver for codec MAX98095 required by Snow Board Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>