Commit db2ecdfd authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branches 'asoc/fix/arizona', 'asoc/fix/fmtbit',...

Merge remote-tracking branches 'asoc/fix/arizona', 'asoc/fix/fmtbit', 'asoc/fix/max98925', 'asoc/fix/rcar' and 'asoc/fix/ux500' into asoc-linus
...@@ -5,6 +5,7 @@ Required properties: ...@@ -5,6 +5,7 @@ Required properties:
"renesas,rcar_sound-gen1" if generation1, and "renesas,rcar_sound-gen1" if generation1, and
"renesas,rcar_sound-gen2" if generation2 "renesas,rcar_sound-gen2" if generation2
Examples with soctypes are: Examples with soctypes are:
- "renesas,rcar_sound-r8a7778" (R-Car M1A)
- "renesas,rcar_sound-r8a7790" (R-Car H2) - "renesas,rcar_sound-r8a7790" (R-Car H2)
- "renesas,rcar_sound-r8a7791" (R-Car M2-W) - "renesas,rcar_sound-r8a7791" (R-Car M2-W)
- reg : Should contain the register physical address. - reg : Should contain the register physical address.
......
...@@ -1187,16 +1187,16 @@ static struct snd_soc_dai_driver pm860x_dai[] = { ...@@ -1187,16 +1187,16 @@ static struct snd_soc_dai_driver pm860x_dai[] = {
.channels_min = 2, .channels_min = 2,
.channels_max = 2, .channels_max = 2,
.rates = PM860X_RATES, .rates = PM860X_RATES,
.formats = SNDRV_PCM_FORMAT_S16_LE | \ .formats = SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FORMAT_S18_3LE, SNDRV_PCM_FMTBIT_S18_3LE,
}, },
.capture = { .capture = {
.stream_name = "PCM Capture", .stream_name = "PCM Capture",
.channels_min = 2, .channels_min = 2,
.channels_max = 2, .channels_max = 2,
.rates = PM860X_RATES, .rates = PM860X_RATES,
.formats = SNDRV_PCM_FORMAT_S16_LE | \ .formats = SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FORMAT_S18_3LE, SNDRV_PCM_FMTBIT_S18_3LE,
}, },
.ops = &pm860x_pcm_dai_ops, .ops = &pm860x_pcm_dai_ops,
}, { }, {
...@@ -1208,16 +1208,16 @@ static struct snd_soc_dai_driver pm860x_dai[] = { ...@@ -1208,16 +1208,16 @@ static struct snd_soc_dai_driver pm860x_dai[] = {
.channels_min = 2, .channels_min = 2,
.channels_max = 2, .channels_max = 2,
.rates = SNDRV_PCM_RATE_8000_48000, .rates = SNDRV_PCM_RATE_8000_48000,
.formats = SNDRV_PCM_FORMAT_S16_LE | \ .formats = SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FORMAT_S18_3LE, SNDRV_PCM_FMTBIT_S18_3LE,
}, },
.capture = { .capture = {
.stream_name = "I2S Capture", .stream_name = "I2S Capture",
.channels_min = 2, .channels_min = 2,
.channels_max = 2, .channels_max = 2,
.rates = SNDRV_PCM_RATE_8000_48000, .rates = SNDRV_PCM_RATE_8000_48000,
.formats = SNDRV_PCM_FORMAT_S16_LE | \ .formats = SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FORMAT_S18_3LE, SNDRV_PCM_FMTBIT_S18_3LE,
}, },
.ops = &pm860x_i2s_dai_ops, .ops = &pm860x_i2s_dai_ops,
}, },
......
...@@ -346,7 +346,7 @@ static int max98925_dai_set_fmt(struct snd_soc_dai *codec_dai, ...@@ -346,7 +346,7 @@ static int max98925_dai_set_fmt(struct snd_soc_dai *codec_dai,
} }
regmap_update_bits(max98925->regmap, MAX98925_FORMAT, regmap_update_bits(max98925->regmap, MAX98925_FORMAT,
M98925_DAI_BCI_MASK, invert); M98925_DAI_BCI_MASK | M98925_DAI_WCI_MASK, invert);
return 0; return 0;
} }
......
...@@ -321,7 +321,7 @@ static struct snd_soc_dai_driver stac9766_dai[] = { ...@@ -321,7 +321,7 @@ static struct snd_soc_dai_driver stac9766_dai[] = {
.channels_max = 2, .channels_max = 2,
.rates = SNDRV_PCM_RATE_32000 | \ .rates = SNDRV_PCM_RATE_32000 | \
SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000, SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000,
.formats = SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE, .formats = SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_BE,
}, },
/* alsa ops */ /* alsa ops */
.ops = &stac9766_dai_ops_digital, .ops = &stac9766_dai_ops_digital,
......
...@@ -42,7 +42,7 @@ struct wm5102_priv { ...@@ -42,7 +42,7 @@ struct wm5102_priv {
static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0);
static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
static DECLARE_TLV_DB_SCALE(noise_tlv, 0, 600, 0); static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
static const struct wm_adsp_region wm5102_dsp1_regions[] = { static const struct wm_adsp_region wm5102_dsp1_regions[] = {
......
...@@ -167,7 +167,7 @@ static int wm5110_sysclk_ev(struct snd_soc_dapm_widget *w, ...@@ -167,7 +167,7 @@ static int wm5110_sysclk_ev(struct snd_soc_dapm_widget *w,
static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0);
static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
static DECLARE_TLV_DB_SCALE(noise_tlv, 0, 600, 0); static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
#define WM5110_NG_SRC(name, base) \ #define WM5110_NG_SRC(name, base) \
......
...@@ -998,8 +998,8 @@ static int wm8900_digital_mute(struct snd_soc_dai *codec_dai, int mute) ...@@ -998,8 +998,8 @@ static int wm8900_digital_mute(struct snd_soc_dai *codec_dai, int mute)
SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000)
#define WM8900_PCM_FORMATS \ #define WM8900_PCM_FORMATS \
(SNDRV_PCM_FORMAT_S16_LE | SNDRV_PCM_FORMAT_S20_3LE | \ (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FORMAT_S24_LE) SNDRV_PCM_FMTBIT_S24_LE)
static const struct snd_soc_dai_ops wm8900_dai_ops = { static const struct snd_soc_dai_ops wm8900_dai_ops = {
.hw_params = wm8900_hw_params, .hw_params = wm8900_hw_params,
......
...@@ -40,7 +40,7 @@ struct wm8997_priv { ...@@ -40,7 +40,7 @@ struct wm8997_priv {
static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0);
static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
static DECLARE_TLV_DB_SCALE(noise_tlv, 0, 600, 0); static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);
static const struct reg_default wm8997_sysclk_reva_patch[] = { static const struct reg_default wm8997_sysclk_reva_patch[] = {
......
...@@ -1054,8 +1054,8 @@ static int ac97_aux_prepare(struct snd_pcm_substream *substream, ...@@ -1054,8 +1054,8 @@ static int ac97_aux_prepare(struct snd_pcm_substream *substream,
SNDRV_PCM_RATE_48000) SNDRV_PCM_RATE_48000)
#define WM9713_PCM_FORMATS \ #define WM9713_PCM_FORMATS \
(SNDRV_PCM_FORMAT_S16_LE | SNDRV_PCM_FORMAT_S20_3LE | \ (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FORMAT_S24_LE) SNDRV_PCM_FMTBIT_S24_LE)
static const struct snd_soc_dai_ops wm9713_dai_ops_hifi = { static const struct snd_soc_dai_ops wm9713_dai_ops_hifi = {
.prepare = ac97_hifi_prepare, .prepare = ac97_hifi_prepare,
......
...@@ -372,6 +372,10 @@ int mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *rtd) ...@@ -372,6 +372,10 @@ int mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *rtd)
/* Create driver private-data struct */ /* Create driver private-data struct */
drvdata = devm_kzalloc(dev, sizeof(struct mop500_ab8500_drvdata), drvdata = devm_kzalloc(dev, sizeof(struct mop500_ab8500_drvdata),
GFP_KERNEL); GFP_KERNEL);
if (!drvdata)
return -ENOMEM;
snd_soc_card_set_drvdata(rtd->card, drvdata); snd_soc_card_set_drvdata(rtd->card, drvdata);
/* Setup clocks */ /* Setup clocks */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment