Merge remote-tracking branches 'asoc/topic/max98926', 'asoc/topic/max98927', 'asoc/topic/mc13783', 'asoc/topic/msm8916' and 'asoc/topic/mt8173' into asoc-next
This commit is contained in:
commit
4e1758b135
@ -490,7 +490,7 @@ static int max98926_probe(struct snd_soc_codec *codec)
|
|||||||
struct max98926_priv *max98926 = snd_soc_codec_get_drvdata(codec);
|
struct max98926_priv *max98926 = snd_soc_codec_get_drvdata(codec);
|
||||||
|
|
||||||
max98926->codec = codec;
|
max98926->codec = codec;
|
||||||
codec->control_data = max98926->regmap;
|
|
||||||
/* Hi-Z all the slots */
|
/* Hi-Z all the slots */
|
||||||
regmap_write(max98926->regmap, MAX98926_DOUT_HIZ_CFG4, 0xF0);
|
regmap_write(max98926->regmap, MAX98926_DOUT_HIZ_CFG4, 0xF0);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -682,7 +682,6 @@ static int max98927_probe(struct snd_soc_codec *codec)
|
|||||||
struct max98927_priv *max98927 = snd_soc_codec_get_drvdata(codec);
|
struct max98927_priv *max98927 = snd_soc_codec_get_drvdata(codec);
|
||||||
|
|
||||||
max98927->codec = codec;
|
max98927->codec = codec;
|
||||||
codec->control_data = max98927->regmap;
|
|
||||||
|
|
||||||
/* Software Reset */
|
/* Software Reset */
|
||||||
regmap_write(max98927->regmap,
|
regmap_write(max98927->regmap,
|
||||||
|
@ -610,6 +610,9 @@ static int mc13783_probe(struct snd_soc_codec *codec)
|
|||||||
{
|
{
|
||||||
struct mc13783_priv *priv = snd_soc_codec_get_drvdata(codec);
|
struct mc13783_priv *priv = snd_soc_codec_get_drvdata(codec);
|
||||||
|
|
||||||
|
snd_soc_codec_init_regmap(codec,
|
||||||
|
dev_get_regmap(codec->dev->parent, NULL));
|
||||||
|
|
||||||
/* these are the reset values */
|
/* these are the reset values */
|
||||||
mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX0, 0x25893);
|
mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX0, 0x25893);
|
||||||
mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX1, 0x00d35A);
|
mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX1, 0x00d35A);
|
||||||
@ -728,15 +731,9 @@ static struct snd_soc_dai_driver mc13783_dai_sync[] = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct regmap *mc13783_get_regmap(struct device *dev)
|
|
||||||
{
|
|
||||||
return dev_get_regmap(dev->parent, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct snd_soc_codec_driver soc_codec_dev_mc13783 = {
|
static const struct snd_soc_codec_driver soc_codec_dev_mc13783 = {
|
||||||
.probe = mc13783_probe,
|
.probe = mc13783_probe,
|
||||||
.remove = mc13783_remove,
|
.remove = mc13783_remove,
|
||||||
.get_regmap = mc13783_get_regmap,
|
|
||||||
.component_driver = {
|
.component_driver = {
|
||||||
.controls = mc13783_control_list,
|
.controls = mc13783_control_list,
|
||||||
.num_controls = ARRAY_SIZE(mc13783_control_list),
|
.num_controls = ARRAY_SIZE(mc13783_control_list),
|
||||||
|
@ -712,6 +712,8 @@ static int pm8916_wcd_analog_probe(struct snd_soc_codec *codec)
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
snd_soc_codec_init_regmap(codec,
|
||||||
|
dev_get_regmap(codec->dev->parent, NULL));
|
||||||
snd_soc_codec_set_drvdata(codec, priv);
|
snd_soc_codec_set_drvdata(codec, priv);
|
||||||
priv->pmic_rev = snd_soc_read(codec, CDC_D_REVISION1);
|
priv->pmic_rev = snd_soc_read(codec, CDC_D_REVISION1);
|
||||||
priv->codec_version = snd_soc_read(codec, CDC_D_PERPH_SUBTYPE);
|
priv->codec_version = snd_soc_read(codec, CDC_D_PERPH_SUBTYPE);
|
||||||
@ -943,11 +945,6 @@ static int pm8916_wcd_analog_set_jack(struct snd_soc_codec *codec,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct regmap *pm8916_get_regmap(struct device *dev)
|
|
||||||
{
|
|
||||||
return dev_get_regmap(dev->parent, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static irqreturn_t mbhc_btn_release_irq_handler(int irq, void *arg)
|
static irqreturn_t mbhc_btn_release_irq_handler(int irq, void *arg)
|
||||||
{
|
{
|
||||||
struct pm8916_wcd_analog_priv *priv = arg;
|
struct pm8916_wcd_analog_priv *priv = arg;
|
||||||
@ -1082,7 +1079,6 @@ static const struct snd_soc_codec_driver pm8916_wcd_analog = {
|
|||||||
.probe = pm8916_wcd_analog_probe,
|
.probe = pm8916_wcd_analog_probe,
|
||||||
.remove = pm8916_wcd_analog_remove,
|
.remove = pm8916_wcd_analog_remove,
|
||||||
.set_jack = pm8916_wcd_analog_set_jack,
|
.set_jack = pm8916_wcd_analog_set_jack,
|
||||||
.get_regmap = pm8916_get_regmap,
|
|
||||||
.component_driver = {
|
.component_driver = {
|
||||||
.controls = pm8916_wcd_analog_snd_controls,
|
.controls = pm8916_wcd_analog_snd_controls,
|
||||||
.num_controls = ARRAY_SIZE(pm8916_wcd_analog_snd_controls),
|
.num_controls = ARRAY_SIZE(pm8916_wcd_analog_snd_controls),
|
||||||
|
@ -1083,7 +1083,7 @@ static int mt8173_afe_init_audio_clk(struct mtk_base_afe *afe)
|
|||||||
static int mt8173_afe_pcm_dev_probe(struct platform_device *pdev)
|
static int mt8173_afe_pcm_dev_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
int ret, i;
|
int ret, i;
|
||||||
unsigned int irq_id;
|
int irq_id;
|
||||||
struct mtk_base_afe *afe;
|
struct mtk_base_afe *afe;
|
||||||
struct mt8173_afe_private *afe_priv;
|
struct mt8173_afe_private *afe_priv;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
@ -1105,9 +1105,9 @@ static int mt8173_afe_pcm_dev_probe(struct platform_device *pdev)
|
|||||||
afe->dev = &pdev->dev;
|
afe->dev = &pdev->dev;
|
||||||
|
|
||||||
irq_id = platform_get_irq(pdev, 0);
|
irq_id = platform_get_irq(pdev, 0);
|
||||||
if (!irq_id) {
|
if (irq_id <= 0) {
|
||||||
dev_err(afe->dev, "np %s no irq\n", afe->dev->of_node->name);
|
dev_err(afe->dev, "np %s no irq\n", afe->dev->of_node->name);
|
||||||
return -ENXIO;
|
return irq_id < 0 ? irq_id : -ENXIO;
|
||||||
}
|
}
|
||||||
ret = devm_request_irq(afe->dev, irq_id, mt8173_afe_irq_handler,
|
ret = devm_request_irq(afe->dev, irq_id, mt8173_afe_irq_handler,
|
||||||
0, "Afe_ISR_Handle", (void *)afe);
|
0, "Afe_ISR_Handle", (void *)afe);
|
||||||
|
Loading…
Reference in New Issue
Block a user