Skip to content

Commit

Permalink
Merge remote-tracking branches 'asoc/topic/max98371', 'asoc/topic/max…
Browse files Browse the repository at this point in the history
…9867', 'asoc/topic/max98926' and 'asoc/topic/mtk' into asoc-next
  • Loading branch information
broonie committed Sep 29, 2016
5 parents ee61b89 + 408ef7e + 349fa18 + 478cc9f + 22e7661 commit 3b495e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion sound/soc/codecs/max98371.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ MODULE_DEVICE_TABLE(of, max98371_of_match);
static struct i2c_driver max98371_i2c_driver = {
.driver = {
.name = "max98371",
.owner = THIS_MODULE,
.pm = NULL,
.of_match_table = of_match_ptr(max98371_of_match),
},
Expand Down
5 changes: 2 additions & 3 deletions sound/soc/codecs/max9867.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ static DECLARE_TLV_DB_SCALE(max9860_capture_tlv, -600, 200, 0);
static DECLARE_TLV_DB_SCALE(max9860_mic_tlv, 2000, 100, 1);
static DECLARE_TLV_DB_SCALE(max9860_adc_left_tlv, -1200, 100, 1);
static DECLARE_TLV_DB_SCALE(max9860_adc_right_tlv, -1200, 100, 1);
static const unsigned int max98088_micboost_tlv[] = {
TLV_DB_RANGE_HEAD(2),
static const SNDRV_CTL_TLVD_DECLARE_DB_RANGE(max98088_micboost_tlv,
0, 1, TLV_DB_SCALE_ITEM(0, 2000, 0),
2, 2, TLV_DB_SCALE_ITEM(3000, 0, 0),
};
);

static const struct snd_kcontrol_new max9867_snd_controls[] = {
SOC_DOUBLE_R("Master Playback Volume", MAX9867_LEFTVOL,
Expand Down
6 changes: 3 additions & 3 deletions sound/soc/codecs/max98926.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static int max98926_dai_set_fmt(struct snd_soc_dai *codec_dai,
max98926_set_sense_data(max98926);
break;
default:
dev_err(codec->dev, "DAI clock mode unsupported");
dev_err(codec->dev, "DAI clock mode unsupported\n");
return -EINVAL;
}

Expand All @@ -364,7 +364,7 @@ static int max98926_dai_set_fmt(struct snd_soc_dai *codec_dai,
invert = MAX98926_DAI_BCI_MASK | MAX98926_DAI_WCI_MASK;
break;
default:
dev_err(codec->dev, "DAI invert mode unsupported");
dev_err(codec->dev, "DAI invert mode unsupported\n");
return -EINVAL;
}

Expand Down Expand Up @@ -408,7 +408,7 @@ static int max98926_dai_hw_params(struct snd_pcm_substream *substream,
max98926->ch_size = 32;
break;
default:
dev_dbg(codec->dev, "format unsupported %d",
dev_dbg(codec->dev, "format unsupported %d\n",
params_format(params));
return -EINVAL;
}
Expand Down
5 changes: 3 additions & 2 deletions sound/soc/mediatek/common/mtk-afe-fe-dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@

#define AFE_BASE_END_OFFSET 8

int mtk_regmap_update_bits(struct regmap *map, int reg, unsigned int mask,
static int mtk_regmap_update_bits(struct regmap *map, int reg,
unsigned int mask,
unsigned int val)
{
if (reg < 0)
return 0;
return regmap_update_bits(map, reg, mask, val);
}

int mtk_regmap_write(struct regmap *map, int reg, unsigned int val)
static int mtk_regmap_write(struct regmap *map, int reg, unsigned int val)
{
if (reg < 0)
return 0;
Expand Down

0 comments on commit 3b495e4

Please sign in to comment.