Skip to content

Commit

Permalink
Merge remote-tracking branches 'asoc/fix/88pm860', 'asoc/fix/omap' an…
Browse files Browse the repository at this point in the history
…d 'asoc/fix/si476x' into asoc-linus
  • Loading branch information
Mark Brown committed Mar 10, 2014
4 parents b25b1b6 + 8eeb5c1 + ea2787f + 58d4d3c commit 7f35afd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions sound/soc/codecs/88pm860x-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,9 @@ static int pm860x_probe(struct snd_soc_codec *codec)
pm860x->codec = codec;

codec->control_data = pm860x->regmap;
ret = snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP);
if (ret)
return ret;

for (i = 0; i < 4; i++) {
ret = request_threaded_irq(pm860x->irq[i], NULL,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/si476x.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static int si476x_codec_hw_params(struct snd_pcm_substream *substream,
static int si476x_codec_probe(struct snd_soc_codec *codec)
{
codec->control_data = dev_get_regmap(codec->dev->parent, NULL);
return 0;
return snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP);
}

static struct snd_soc_dai_ops si476x_dai_ops = {
Expand Down
4 changes: 3 additions & 1 deletion sound/soc/omap/n810.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ static int __init n810_soc_init(void)
int err;
struct device *dev;

if (!(machine_is_nokia_n810() || machine_is_nokia_n810_wimax()))
if (!of_have_populated_dt() ||
(!of_machine_is_compatible("nokia,n810") &&
!of_machine_is_compatible("nokia,n810-wimax")))
return -ENODEV;

n810_snd_device = platform_device_alloc("soc-audio", -1);
Expand Down

0 comments on commit 7f35afd

Please sign in to comment.