summaryrefslogtreecommitdiff
path: root/drivers/sound
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sound')
-rw-r--r--drivers/sound/Kconfig8
-rw-r--r--drivers/sound/maxim_codec.c2
-rw-r--r--drivers/sound/rt5677.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/sound/Kconfig b/drivers/sound/Kconfig
index 0948d8caab0..81de9b30f39 100644
--- a/drivers/sound/Kconfig
+++ b/drivers/sound/Kconfig
@@ -23,7 +23,7 @@ config I2S
config I2S_ROCKCHIP
bool "Enable I2S support for Rockchip SoCs"
- depends on I2S
+ depends on I2S && ARCH_ROCKCHIP
help
Rockchip SoCs support an I2S interface for sending audio data to an
audio codec. This option enables support for this, using one of the
@@ -32,7 +32,7 @@ config I2S_ROCKCHIP
config I2S_SAMSUNG
bool "Enable I2C support for Samsung SoCs"
- depends on I2S
+ depends on I2S && ARCH_EXYNOS
help
Samsung Exynos SoCs support an I2S interface for sending audio
data to an audio codec. This option enables support for this,
@@ -51,7 +51,7 @@ config SOUND_DA7219
config SOUND_I8254
bool "Intel i8254 timer / beeper"
- depends on SOUND
+ depends on SOUND && X86
help
This enables support for a beeper that uses the i8254 timer chip.
This can emit beeps at a fixed frequency. It is possible to control
@@ -82,7 +82,7 @@ config SOUND_IVYBRIDGE
config I2S_TEGRA
bool "Enable I2S support for Nvidia Tegra SoCs"
- depends on I2S
+ depends on I2S && ARCH_TEGRA
select TEGRA124_DMA
help
Nvidia Tegra SoCs support several I2S interfaces for sending audio
diff --git a/drivers/sound/maxim_codec.c b/drivers/sound/maxim_codec.c
index 98f094c0e9a..505a739ad7d 100644
--- a/drivers/sound/maxim_codec.c
+++ b/drivers/sound/maxim_codec.c
@@ -45,7 +45,7 @@ unsigned int maxim_i2c_read(struct maxim_priv *priv, unsigned int reg,
{
int ret;
- return dm_i2c_read(priv->dev, reg, data, 1);
+ ret = dm_i2c_read(priv->dev, reg, data, 1);
if (ret != 0) {
debug("%s: Error while reading register %#04x\n",
__func__, reg);
diff --git a/drivers/sound/rt5677.c b/drivers/sound/rt5677.c
index b5c997c6dd5..a9d1e94951a 100644
--- a/drivers/sound/rt5677.c
+++ b/drivers/sound/rt5677.c
@@ -94,8 +94,8 @@ static int rt5677_i2c_write(struct rt5677_priv *priv, uint reg, uint data)
static int rt5677_bic_or(struct rt5677_priv *priv, uint reg, uint bic,
uint set)
{
- uint old, new_value;
- int ret;
+ uint new_value;
+ int old, ret;
old = rt5677_i2c_read(priv, reg);
if (old < 0)