diff options
Diffstat (limited to 'sound/soc/codecs')
| -rw-r--r-- | sound/soc/codecs/Kconfig | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/pcm512x.c | 8 | ||||
| -rw-r--r-- | sound/soc/codecs/rt1015.c | 3 | ||||
| -rw-r--r-- | sound/soc/codecs/tas2562.c | 5 | 
4 files changed, 11 insertions, 7 deletions
| diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 7e90f5d83097..ea912439e446 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -1406,7 +1406,7 @@ config SND_SOC_WM8737  	depends on SND_SOC_I2C_AND_SPI  config SND_SOC_WM8741 -	tristate "Wolfson Microelectronics WM8737 DAC" +	tristate "Wolfson Microelectronics WM8741 DAC"  	depends on SND_SOC_I2C_AND_SPI  config SND_SOC_WM8750 diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 861210f6bf4f..4cbef9affffd 100644 --- a/sound/soc/codecs/pcm512x.c +++ b/sound/soc/codecs/pcm512x.c @@ -1564,13 +1564,15 @@ int pcm512x_probe(struct device *dev, struct regmap *regmap)  	}  	pcm512x->sclk = devm_clk_get(dev, NULL); -	if (PTR_ERR(pcm512x->sclk) == -EPROBE_DEFER) -		return -EPROBE_DEFER; +	if (PTR_ERR(pcm512x->sclk) == -EPROBE_DEFER) { +		ret = -EPROBE_DEFER; +		goto err; +	}  	if (!IS_ERR(pcm512x->sclk)) {  		ret = clk_prepare_enable(pcm512x->sclk);  		if (ret != 0) {  			dev_err(dev, "Failed to enable SCLK: %d\n", ret); -			return ret; +			goto err;  		}  	} diff --git a/sound/soc/codecs/rt1015.c b/sound/soc/codecs/rt1015.c index 6d490e2dbc25..66eb55b4ffd4 100644 --- a/sound/soc/codecs/rt1015.c +++ b/sound/soc/codecs/rt1015.c @@ -664,7 +664,7 @@ static int rt1015_hw_params(struct snd_pcm_substream *substream,  	snd_soc_component_update_bits(component, RT1015_TDM_MASTER,  		RT1015_I2S_DL_MASK, val_len);  	snd_soc_component_update_bits(component, RT1015_CLK2, -		RT1015_FS_PD_MASK, pre_div); +		RT1015_FS_PD_MASK, pre_div << RT1015_FS_PD_SFT);  	return 0;  } @@ -857,6 +857,7 @@ struct snd_soc_dai_driver rt1015_dai[] = {  			.rates = RT1015_STEREO_RATES,  			.formats = RT1015_FORMATS,  		}, +		.ops = &rt1015_aif_dai_ops,  	}  }; diff --git a/sound/soc/codecs/tas2562.c b/sound/soc/codecs/tas2562.c index 729acd874c48..be52886a5edb 100644 --- a/sound/soc/codecs/tas2562.c +++ b/sound/soc/codecs/tas2562.c @@ -215,7 +215,8 @@ static int tas2562_set_bitwidth(struct tas2562_data *tas2562, int bitwidth)  		break;  	default: -		dev_info(tas2562->dev, "Not supported params format\n"); +		dev_info(tas2562->dev, "Unsupported bitwidth format\n"); +		return -EINVAL;  	}  	ret = snd_soc_component_update_bits(tas2562->component, @@ -251,7 +252,7 @@ static int tas2562_hw_params(struct snd_pcm_substream *substream,  	ret = tas2562_set_samplerate(tas2562, params_rate(params));  	if (ret) -		dev_err(tas2562->dev, "set bitwidth failed, %d\n", ret); +		dev_err(tas2562->dev, "set sample rate failed, %d\n", ret);  	return ret;  } |