Skip to content

Commit

Permalink
Merge remote-tracking branches 'asoc/topic/adau1977', 'asoc/topic/ari…
Browse files Browse the repository at this point in the history
…zona', 'asoc/topic/atmel', 'asoc/topic/au1x' and 'asoc/topic/bcm' into asoc-next
  • Loading branch information
broonie committed Sep 1, 2017
6 parents 94e26c0 + 68feed9 + 4dbcc5f + 0515760 + 052fba7 + cc6e256 commit 82af2b7
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 17 deletions.
9 changes: 6 additions & 3 deletions sound/atmel/ac97c.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,9 @@ static int atmel_ac97c_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "no peripheral clock\n");
return PTR_ERR(pclk);
}
clk_prepare_enable(pclk);
retval = clk_prepare_enable(pclk);
if (retval)
goto err_prepare_enable;

retval = snd_card_new(&pdev->dev, SNDRV_DEFAULT_IDX1,
SNDRV_DEFAULT_STR1, THIS_MODULE,
Expand Down Expand Up @@ -879,6 +881,7 @@ static int atmel_ac97c_probe(struct platform_device *pdev)
snd_card_free(card);
err_snd_card_new:
clk_disable_unprepare(pclk);
err_prepare_enable:
clk_put(pclk);
return retval;
}
Expand All @@ -897,9 +900,9 @@ static int atmel_ac97c_resume(struct device *pdev)
{
struct snd_card *card = dev_get_drvdata(pdev);
struct atmel_ac97c *chip = card->private_data;
int ret = clk_prepare_enable(chip->pclk);

clk_prepare_enable(chip->pclk);
return 0;
return ret;
}

static SIMPLE_DEV_PM_OPS(atmel_ac97c_pm, atmel_ac97c_suspend, atmel_ac97c_resume);
Expand Down
1 change: 0 additions & 1 deletion sound/soc/atmel/atmel-classd.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,6 @@ static int atmel_classd_probe(struct platform_device *pdev)
}

snd_soc_card_set_drvdata(card, dd);
platform_set_drvdata(pdev, card);

ret = atmel_classd_asoc_card_init(dev, card);
if (ret) {
Expand Down
1 change: 0 additions & 1 deletion sound/soc/atmel/atmel-pdmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ static int atmel_pdmic_probe(struct platform_device *pdev)
}

snd_soc_card_set_drvdata(card, dd);
platform_set_drvdata(pdev, card);

ret = atmel_pdmic_asoc_card_init(dev, card);
if (ret) {
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/au1x/db1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static int db1200_i2s_startup(struct snd_pcm_substream *substream)
return 0;
}

static struct snd_soc_ops db1200_i2s_wm8731_ops = {
static const struct snd_soc_ops db1200_i2s_wm8731_ops = {
.startup = db1200_i2s_startup,
};

Expand Down
2 changes: 1 addition & 1 deletion sound/soc/au1x/dbdma2.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static int au1xpsc_pcm_close(struct snd_pcm_substream *substream)
return 0;
}

static struct snd_pcm_ops au1xpsc_pcm_ops = {
static const struct snd_pcm_ops au1xpsc_pcm_ops = {
.open = au1xpsc_pcm_open,
.close = au1xpsc_pcm_close,
.ioctl = snd_pcm_lib_ioctl,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/au1x/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static snd_pcm_uframes_t alchemy_pcm_pointer(struct snd_pcm_substream *ss)
return bytes_to_frames(ss->runtime, location);
}

static struct snd_pcm_ops alchemy_pcm_ops = {
static const struct snd_pcm_ops alchemy_pcm_ops = {
.open = alchemy_pcm_open,
.close = alchemy_pcm_close,
.ioctl = snd_pcm_lib_ioctl,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/au1x/psc-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static int au1xpsc_i2s_drvresume(struct device *dev)
return 0;
}

static struct dev_pm_ops au1xpsci2s_pmops = {
static const struct dev_pm_ops au1xpsci2s_pmops = {
.suspend = au1xpsc_i2s_drvsuspend,
.resume = au1xpsc_i2s_drvresume,
};
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/bcm/cygnus-ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ static const struct snd_soc_dai_driver cygnus_ssp_dai_info[] = {
INIT_CPU_DAI(2),
};

static struct snd_soc_dai_driver cygnus_spdif_dai_info = {
static const struct snd_soc_dai_driver cygnus_spdif_dai_info = {
.name = "cygnus-spdif",
.playback = {
.channels_min = 2,
Expand Down
6 changes: 2 additions & 4 deletions sound/soc/codecs/adau1977.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,7 @@ static int adau1977_power_disable(struct adau1977 *adau1977)

regcache_mark_dirty(adau1977->regmap);

if (adau1977->reset_gpio)
gpiod_set_value_cansleep(adau1977->reset_gpio, 0);
gpiod_set_value_cansleep(adau1977->reset_gpio, 0);

regcache_cache_only(adau1977->regmap, true);

Expand Down Expand Up @@ -420,8 +419,7 @@ static int adau1977_power_enable(struct adau1977 *adau1977)
goto err_disable_avdd;
}

if (adau1977->reset_gpio)
gpiod_set_value_cansleep(adau1977->reset_gpio, 1);
gpiod_set_value_cansleep(adau1977->reset_gpio, 1);

regcache_cache_only(adau1977->regmap, false);

Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/cs47l24.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ static const struct snd_soc_codec_driver soc_codec_dev_cs47l24 = {
},
};

static struct snd_compr_ops cs47l24_compr_ops = {
static const struct snd_compr_ops cs47l24_compr_ops = {
.open = cs47l24_open,
.free = wm_adsp_compr_free,
.set_params = wm_adsp_compr_set_params,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm5102.c
Original file line number Diff line number Diff line change
Expand Up @@ -2017,7 +2017,7 @@ static const struct snd_soc_codec_driver soc_codec_dev_wm5102 = {
},
};

static struct snd_compr_ops wm5102_compr_ops = {
static const struct snd_compr_ops wm5102_compr_ops = {
.open = wm5102_open,
.free = wm_adsp_compr_free,
.set_params = wm_adsp_compr_set_params,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm5110.c
Original file line number Diff line number Diff line change
Expand Up @@ -2372,7 +2372,7 @@ static const struct snd_soc_codec_driver soc_codec_dev_wm5110 = {
},
};

static struct snd_compr_ops wm5110_compr_ops = {
static const struct snd_compr_ops wm5110_compr_ops = {
.open = wm5110_open,
.free = wm_adsp_compr_free,
.set_params = wm_adsp_compr_set_params,
Expand Down

0 comments on commit 82af2b7

Please sign in to comment.