diff options
| -rw-r--r-- | Documentation/devicetree/bindings/sound/renesas,rsnd.txt | 1 | ||||
| -rw-r--r-- | sound/soc/codecs/88pm860x-codec.c | 16 | ||||
| -rw-r--r-- | sound/soc/codecs/max98925.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/stac9766.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/wm5102.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/wm5110.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/wm8900.c | 4 | ||||
| -rw-r--r-- | sound/soc/codecs/wm8997.c | 2 | ||||
| -rw-r--r-- | sound/soc/codecs/wm9713.c | 4 | ||||
| -rw-r--r-- | sound/soc/intel/atom/sst/sst_drv_interface.c | 2 | ||||
| -rw-r--r-- | sound/soc/ux500/mop500_ab8500.c | 4 |
11 files changed, 23 insertions, 18 deletions
diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt index f316ce1f214a..14f467345994 100644 --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt | |||
| @@ -5,6 +5,7 @@ Required properties: | |||
| 5 | "renesas,rcar_sound-gen1" if generation1, and | 5 | "renesas,rcar_sound-gen1" if generation1, and |
| 6 | "renesas,rcar_sound-gen2" if generation2 | 6 | "renesas,rcar_sound-gen2" if generation2 |
| 7 | Examples with soctypes are: | 7 | Examples with soctypes are: |
| 8 | - "renesas,rcar_sound-r8a7778" (R-Car M1A) | ||
| 8 | - "renesas,rcar_sound-r8a7790" (R-Car H2) | 9 | - "renesas,rcar_sound-r8a7790" (R-Car H2) |
| 9 | - "renesas,rcar_sound-r8a7791" (R-Car M2-W) | 10 | - "renesas,rcar_sound-r8a7791" (R-Car M2-W) |
| 10 | - reg : Should contain the register physical address. | 11 | - reg : Should contain the register physical address. |
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c index a0f265327fdf..f62da48eda9a 100644 --- a/sound/soc/codecs/88pm860x-codec.c +++ b/sound/soc/codecs/88pm860x-codec.c | |||
| @@ -1187,16 +1187,16 @@ static struct snd_soc_dai_driver pm860x_dai[] = { | |||
| 1187 | .channels_min = 2, | 1187 | .channels_min = 2, |
| 1188 | .channels_max = 2, | 1188 | .channels_max = 2, |
| 1189 | .rates = PM860X_RATES, | 1189 | .rates = PM860X_RATES, |
| 1190 | .formats = SNDRV_PCM_FORMAT_S16_LE | \ | 1190 | .formats = SNDRV_PCM_FMTBIT_S16_LE | \ |
| 1191 | SNDRV_PCM_FORMAT_S18_3LE, | 1191 | SNDRV_PCM_FMTBIT_S18_3LE, |
| 1192 | }, | 1192 | }, |
| 1193 | .capture = { | 1193 | .capture = { |
| 1194 | .stream_name = "PCM Capture", | 1194 | .stream_name = "PCM Capture", |
| 1195 | .channels_min = 2, | 1195 | .channels_min = 2, |
| 1196 | .channels_max = 2, | 1196 | .channels_max = 2, |
| 1197 | .rates = PM860X_RATES, | 1197 | .rates = PM860X_RATES, |
| 1198 | .formats = SNDRV_PCM_FORMAT_S16_LE | \ | 1198 | .formats = SNDRV_PCM_FMTBIT_S16_LE | \ |
| 1199 | SNDRV_PCM_FORMAT_S18_3LE, | 1199 | SNDRV_PCM_FMTBIT_S18_3LE, |
| 1200 | }, | 1200 | }, |
| 1201 | .ops = &pm860x_pcm_dai_ops, | 1201 | .ops = &pm860x_pcm_dai_ops, |
| 1202 | }, { | 1202 | }, { |
| @@ -1208,16 +1208,16 @@ static struct snd_soc_dai_driver pm860x_dai[] = { | |||
| 1208 | .channels_min = 2, | 1208 | .channels_min = 2, |
| 1209 | .channels_max = 2, | 1209 | .channels_max = 2, |
| 1210 | .rates = SNDRV_PCM_RATE_8000_48000, | 1210 | .rates = SNDRV_PCM_RATE_8000_48000, |
| 1211 | .formats = SNDRV_PCM_FORMAT_S16_LE | \ | 1211 | .formats = SNDRV_PCM_FMTBIT_S16_LE | \ |
| 1212 | SNDRV_PCM_FORMAT_S18_3LE, | 1212 | SNDRV_PCM_FMTBIT_S18_3LE, |
| 1213 | }, | 1213 | }, |
| 1214 | .capture = { | 1214 | .capture = { |
| 1215 | .stream_name = "I2S Capture", | 1215 | .stream_name = "I2S Capture", |
| 1216 | .channels_min = 2, | 1216 | .channels_min = 2, |
| 1217 | .channels_max = 2, | 1217 | .channels_max = 2, |
| 1218 | .rates = SNDRV_PCM_RATE_8000_48000, | 1218 | .rates = SNDRV_PCM_RATE_8000_48000, |
| 1219 | .formats = SNDRV_PCM_FORMAT_S16_LE | \ | 1219 | .formats = SNDRV_PCM_FMTBIT_S16_LE | \ |
| 1220 | SNDRV_PCM_FORMAT_S18_3LE, | 1220 | SNDRV_PCM_FMTBIT_S18_3LE, |
| 1221 | }, | 1221 | }, |
| 1222 | .ops = &pm860x_i2s_dai_ops, | 1222 | .ops = &pm860x_i2s_dai_ops, |
| 1223 | }, | 1223 | }, |
diff --git a/sound/soc/codecs/max98925.c b/sound/soc/codecs/max98925.c index 9b5a17de4690..aad664225dc3 100644 --- a/sound/soc/codecs/max98925.c +++ b/sound/soc/codecs/max98925.c | |||
| @@ -346,7 +346,7 @@ static int max98925_dai_set_fmt(struct snd_soc_dai *codec_dai, | |||
| 346 | } | 346 | } |
| 347 | 347 | ||
| 348 | regmap_update_bits(max98925->regmap, MAX98925_FORMAT, | 348 | regmap_update_bits(max98925->regmap, MAX98925_FORMAT, |
| 349 | M98925_DAI_BCI_MASK, invert); | 349 | M98925_DAI_BCI_MASK | M98925_DAI_WCI_MASK, invert); |
| 350 | return 0; | 350 | return 0; |
| 351 | } | 351 | } |
| 352 | 352 | ||
diff --git a/sound/soc/codecs/stac9766.c b/sound/soc/codecs/stac9766.c index 6464caf72b21..7f939aec5a7f 100644 --- a/sound/soc/codecs/stac9766.c +++ b/sound/soc/codecs/stac9766.c | |||
| @@ -321,7 +321,7 @@ static struct snd_soc_dai_driver stac9766_dai[] = { | |||
| 321 | .channels_max = 2, | 321 | .channels_max = 2, |
| 322 | .rates = SNDRV_PCM_RATE_32000 | \ | 322 | .rates = SNDRV_PCM_RATE_32000 | \ |
| 323 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000, | 323 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000, |
| 324 | .formats = SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE, | 324 | .formats = SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_BE, |
| 325 | }, | 325 | }, |
| 326 | /* alsa ops */ | 326 | /* alsa ops */ |
| 327 | .ops = &stac9766_dai_ops_digital, | 327 | .ops = &stac9766_dai_ops_digital, |
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c index 0c6d1bc0526e..d476221dba51 100644 --- a/sound/soc/codecs/wm5102.c +++ b/sound/soc/codecs/wm5102.c | |||
| @@ -42,7 +42,7 @@ struct wm5102_priv { | |||
| 42 | static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); | 42 | static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); |
| 43 | static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); | 43 | static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); |
| 44 | static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); | 44 | static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); |
| 45 | static DECLARE_TLV_DB_SCALE(noise_tlv, 0, 600, 0); | 45 | static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0); |
| 46 | static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); | 46 | static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); |
| 47 | 47 | ||
| 48 | static const struct wm_adsp_region wm5102_dsp1_regions[] = { | 48 | static const struct wm_adsp_region wm5102_dsp1_regions[] = { |
diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c index fbaeddb3e903..3ee6cfd0578b 100644 --- a/sound/soc/codecs/wm5110.c +++ b/sound/soc/codecs/wm5110.c | |||
| @@ -167,7 +167,7 @@ static int wm5110_sysclk_ev(struct snd_soc_dapm_widget *w, | |||
| 167 | static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); | 167 | static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); |
| 168 | static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); | 168 | static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); |
| 169 | static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); | 169 | static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); |
| 170 | static DECLARE_TLV_DB_SCALE(noise_tlv, 0, 600, 0); | 170 | static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0); |
| 171 | static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); | 171 | static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); |
| 172 | 172 | ||
| 173 | #define WM5110_NG_SRC(name, base) \ | 173 | #define WM5110_NG_SRC(name, base) \ |
diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c index 2eb986c19b88..fdb765600a10 100644 --- a/sound/soc/codecs/wm8900.c +++ b/sound/soc/codecs/wm8900.c | |||
| @@ -998,8 +998,8 @@ static int wm8900_digital_mute(struct snd_soc_dai *codec_dai, int mute) | |||
| 998 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) | 998 | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) |
| 999 | 999 | ||
| 1000 | #define WM8900_PCM_FORMATS \ | 1000 | #define WM8900_PCM_FORMATS \ |
| 1001 | (SNDRV_PCM_FORMAT_S16_LE | SNDRV_PCM_FORMAT_S20_3LE | \ | 1001 | (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \ |
| 1002 | SNDRV_PCM_FORMAT_S24_LE) | 1002 | SNDRV_PCM_FMTBIT_S24_LE) |
| 1003 | 1003 | ||
| 1004 | static const struct snd_soc_dai_ops wm8900_dai_ops = { | 1004 | static const struct snd_soc_dai_ops wm8900_dai_ops = { |
| 1005 | .hw_params = wm8900_hw_params, | 1005 | .hw_params = wm8900_hw_params, |
diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c index a4d11770630c..e7c81baefe66 100644 --- a/sound/soc/codecs/wm8997.c +++ b/sound/soc/codecs/wm8997.c | |||
| @@ -40,7 +40,7 @@ struct wm8997_priv { | |||
| 40 | static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); | 40 | static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0); |
| 41 | static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); | 41 | static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); |
| 42 | static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); | 42 | static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0); |
| 43 | static DECLARE_TLV_DB_SCALE(noise_tlv, 0, 600, 0); | 43 | static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0); |
| 44 | static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); | 44 | static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0); |
| 45 | 45 | ||
| 46 | static const struct reg_default wm8997_sysclk_reva_patch[] = { | 46 | static const struct reg_default wm8997_sysclk_reva_patch[] = { |
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c index 79552953e1bd..1b20b8d2b15d 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c | |||
| @@ -1054,8 +1054,8 @@ static int ac97_aux_prepare(struct snd_pcm_substream *substream, | |||
| 1054 | SNDRV_PCM_RATE_48000) | 1054 | SNDRV_PCM_RATE_48000) |
| 1055 | 1055 | ||
| 1056 | #define WM9713_PCM_FORMATS \ | 1056 | #define WM9713_PCM_FORMATS \ |
| 1057 | (SNDRV_PCM_FORMAT_S16_LE | SNDRV_PCM_FORMAT_S20_3LE | \ | 1057 | (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \ |
| 1058 | SNDRV_PCM_FORMAT_S24_LE) | 1058 | SNDRV_PCM_FMTBIT_S24_LE) |
| 1059 | 1059 | ||
| 1060 | static const struct snd_soc_dai_ops wm9713_dai_ops_hifi = { | 1060 | static const struct snd_soc_dai_ops wm9713_dai_ops_hifi = { |
| 1061 | .prepare = ac97_hifi_prepare, | 1061 | .prepare = ac97_hifi_prepare, |
diff --git a/sound/soc/intel/atom/sst/sst_drv_interface.c b/sound/soc/intel/atom/sst/sst_drv_interface.c index 7b50a9d17ec1..620da1d1b9e3 100644 --- a/sound/soc/intel/atom/sst/sst_drv_interface.c +++ b/sound/soc/intel/atom/sst/sst_drv_interface.c | |||
| @@ -533,7 +533,7 @@ static inline int sst_calc_tstamp(struct intel_sst_drv *ctx, | |||
| 533 | 533 | ||
| 534 | info->buffer_ptr = pointer_samples / substream->runtime->channels; | 534 | info->buffer_ptr = pointer_samples / substream->runtime->channels; |
| 535 | 535 | ||
| 536 | info->pcm_delay = delay_frames / substream->runtime->channels; | 536 | info->pcm_delay = delay_frames; |
| 537 | dev_dbg(ctx->dev, "buffer ptr %llu pcm_delay rep: %llu\n", | 537 | dev_dbg(ctx->dev, "buffer ptr %llu pcm_delay rep: %llu\n", |
| 538 | info->buffer_ptr, info->pcm_delay); | 538 | info->buffer_ptr, info->pcm_delay); |
| 539 | return 0; | 539 | return 0; |
diff --git a/sound/soc/ux500/mop500_ab8500.c b/sound/soc/ux500/mop500_ab8500.c index b81a7a4c938b..85d810d7667c 100644 --- a/sound/soc/ux500/mop500_ab8500.c +++ b/sound/soc/ux500/mop500_ab8500.c | |||
| @@ -372,6 +372,10 @@ int mop500_ab8500_machine_init(struct snd_soc_pcm_runtime *rtd) | |||
| 372 | /* Create driver private-data struct */ | 372 | /* Create driver private-data struct */ |
| 373 | drvdata = devm_kzalloc(dev, sizeof(struct mop500_ab8500_drvdata), | 373 | drvdata = devm_kzalloc(dev, sizeof(struct mop500_ab8500_drvdata), |
| 374 | GFP_KERNEL); | 374 | GFP_KERNEL); |
| 375 | |||
| 376 | if (!drvdata) | ||
| 377 | return -ENOMEM; | ||
| 378 | |||
| 375 | snd_soc_card_set_drvdata(rtd->card, drvdata); | 379 | snd_soc_card_set_drvdata(rtd->card, drvdata); |
| 376 | 380 | ||
| 377 | /* Setup clocks */ | 381 | /* Setup clocks */ |
