Skip to content

Commit 84ab940

Browse files
committed
Merge tag 'asoc-fix-v6.0-rc7' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Last fixes for v6.0 In the even that there's another pull request here's some more driver specific fixes.
2 parents c35fbea + e18f6bc commit 84ab940

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

sound/soc/codecs/es8316.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,8 @@ static const struct regmap_access_table es8316_volatile_table = {
793793
static const struct regmap_config es8316_regmap = {
794794
.reg_bits = 8,
795795
.val_bits = 8,
796+
.use_single_read = true,
797+
.use_single_write = true,
796798
.max_register = 0x53,
797799
.volatile_table = &es8316_volatile_table,
798800
.cache_type = REGCACHE_RBTREE,

sound/soc/codecs/wcd-mbhc-v2.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -714,11 +714,12 @@ static int wcd_mbhc_initialise(struct wcd_mbhc *mbhc)
714714
struct snd_soc_component *component = mbhc->component;
715715
int ret;
716716

717-
ret = pm_runtime_resume_and_get(component->dev);
717+
ret = pm_runtime_get_sync(component->dev);
718718
if (ret < 0 && ret != -EACCES) {
719719
dev_err_ratelimited(component->dev,
720-
"pm_runtime_resume_and_get failed in %s, ret %d\n",
720+
"pm_runtime_get_sync failed in %s, ret %d\n",
721721
__func__, ret);
722+
pm_runtime_put_noidle(component->dev);
722723
return ret;
723724
}
724725

@@ -1096,11 +1097,12 @@ static void wcd_correct_swch_plug(struct work_struct *work)
10961097
mbhc = container_of(work, struct wcd_mbhc, correct_plug_swch);
10971098
component = mbhc->component;
10981099

1099-
ret = pm_runtime_resume_and_get(component->dev);
1100+
ret = pm_runtime_get_sync(component->dev);
11001101
if (ret < 0 && ret != -EACCES) {
11011102
dev_err_ratelimited(component->dev,
1102-
"pm_runtime_resume_and_get failed in %s, ret %d\n",
1103+
"pm_runtime_get_sync failed in %s, ret %d\n",
11031104
__func__, ret);
1105+
pm_runtime_put_noidle(component->dev);
11041106
return;
11051107
}
11061108
micbias_mv = wcd_mbhc_get_micbias(mbhc);

sound/soc/codecs/wcd9335.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,8 +1974,8 @@ static int wcd9335_trigger(struct snd_pcm_substream *substream, int cmd,
19741974
case SNDRV_PCM_TRIGGER_STOP:
19751975
case SNDRV_PCM_TRIGGER_SUSPEND:
19761976
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
1977-
slim_stream_unprepare(dai_data->sruntime);
19781977
slim_stream_disable(dai_data->sruntime);
1978+
slim_stream_unprepare(dai_data->sruntime);
19791979
break;
19801980
default:
19811981
break;

sound/soc/codecs/wcd934x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,8 +1913,8 @@ static int wcd934x_trigger(struct snd_pcm_substream *substream, int cmd,
19131913
case SNDRV_PCM_TRIGGER_STOP:
19141914
case SNDRV_PCM_TRIGGER_SUSPEND:
19151915
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
1916-
slim_stream_unprepare(dai_data->sruntime);
19171916
slim_stream_disable(dai_data->sruntime);
1917+
slim_stream_unprepare(dai_data->sruntime);
19181918
break;
19191919
default:
19201920
break;

sound/soc/fsl/fsl_audmix.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -199,18 +199,10 @@ static int fsl_audmix_put_out_src(struct snd_kcontrol *kcontrol,
199199

200200
static const struct snd_kcontrol_new fsl_audmix_snd_controls[] = {
201201
/* FSL_AUDMIX_CTR controls */
202-
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
203-
.name = "Mixing Clock Source",
204-
.info = snd_soc_info_enum_double,
205-
.access = SNDRV_CTL_ELEM_ACCESS_WRITE,
206-
.put = fsl_audmix_put_mix_clk_src,
207-
.private_value = (unsigned long)&fsl_audmix_enum[0] },
208-
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
209-
.name = "Output Source",
210-
.info = snd_soc_info_enum_double,
211-
.access = SNDRV_CTL_ELEM_ACCESS_WRITE,
212-
.put = fsl_audmix_put_out_src,
213-
.private_value = (unsigned long)&fsl_audmix_enum[1] },
202+
SOC_ENUM_EXT("Mixing Clock Source", fsl_audmix_enum[0],
203+
snd_soc_get_enum_double, fsl_audmix_put_mix_clk_src),
204+
SOC_ENUM_EXT("Output Source", fsl_audmix_enum[1],
205+
snd_soc_get_enum_double, fsl_audmix_put_out_src),
214206
SOC_ENUM("Output Width", fsl_audmix_enum[2]),
215207
SOC_ENUM("Frame Rate Diff Error", fsl_audmix_enum[3]),
216208
SOC_ENUM("Clock Freq Diff Error", fsl_audmix_enum[4]),

0 commit comments

Comments
 (0)