* [PATCH 1/4] ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver
@ 2015-09-18 9:18 Zidan Wang
2015-09-18 9:19 ` [PATCH 2/4] ASoC: wm8962: remove 64k sample rate support Zidan Wang
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Zidan Wang @ 2015-09-18 9:18 UTC (permalink / raw)
To: broonie; +Cc: nicoleotsuka, alsa-devel, Zidan Wang
Add snd_soc_pm_ops in machine driver to make the trigger suspend/resume
be called in suspend/resume.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
---
sound/soc/fsl/imx-spdif.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c
index 33da26a..a407e83 100644
--- a/sound/soc/fsl/imx-spdif.c
+++ b/sound/soc/fsl/imx-spdif.c
@@ -89,6 +89,7 @@ MODULE_DEVICE_TABLE(of, imx_spdif_dt_ids);
static struct platform_driver imx_spdif_driver = {
.driver = {
.name = "imx-spdif",
+ .pm = &snd_soc_pm_ops,
.of_match_table = imx_spdif_dt_ids,
},
.probe = imx_spdif_audio_probe,
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/4] ASoC: wm8962: remove 64k sample rate support
2015-09-18 9:18 [PATCH 1/4] ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver Zidan Wang
@ 2015-09-18 9:19 ` Zidan Wang
2015-09-18 12:50 ` Charles Keepax
2015-09-20 0:13 ` Applied "ASoC: wm8962: remove 64k sample rate support" to the asoc tree Mark Brown
2015-09-18 9:19 ` [PATCH 3/4] ASoC: si476x: add startup/shutdown to powerup/down si476x Zidan Wang
` (2 subsequent siblings)
3 siblings, 2 replies; 10+ messages in thread
From: Zidan Wang @ 2015-09-18 9:19 UTC (permalink / raw)
To: broonie; +Cc: ckeepax, patches, alsa-devel, Zidan Wang
wm8962 can't support 64k sample rate. When playing a 64KHz wave file,
'Unsupported rate 64000Hz' will be prompted.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
---
sound/soc/codecs/wm8962.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index b4eb975..293e47a 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -2944,7 +2944,8 @@ static int wm8962_mute(struct snd_soc_dai *dai, int mute)
WM8962_DAC_MUTE, val);
}
-#define WM8962_RATES SNDRV_PCM_RATE_8000_96000
+#define WM8962_RATES (SNDRV_PCM_RATE_8000_48000 |\
+ SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
#define WM8962_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/4] ASoC: si476x: add startup/shutdown to powerup/down si476x
2015-09-18 9:18 [PATCH 1/4] ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver Zidan Wang
2015-09-18 9:19 ` [PATCH 2/4] ASoC: wm8962: remove 64k sample rate support Zidan Wang
@ 2015-09-18 9:19 ` Zidan Wang
2015-09-18 9:19 ` [PATCH 4/4] ASoC: wm8960: correct the max register value of mic boost pga Zidan Wang
2015-10-05 16:44 ` Applied "ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver" " Mark Brown
3 siblings, 0 replies; 10+ messages in thread
From: Zidan Wang @ 2015-09-18 9:19 UTC (permalink / raw)
To: broonie; +Cc: alsa-devel, Zidan Wang
si476x should be powered up to read/write register, so powerup/down
si476x in startup/shutdown.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
---
sound/soc/codecs/si476x.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/sound/soc/codecs/si476x.c b/sound/soc/codecs/si476x.c
index a8402d0..d61a79f 100644
--- a/sound/soc/codecs/si476x.c
+++ b/sound/soc/codecs/si476x.c
@@ -208,7 +208,26 @@ out:
return err;
}
+static int si476x_codec_startup(struct snd_pcm_substream *substream,
+ struct snd_soc_dai *dai) {
+ struct si476x_core *core = i2c_mfd_cell_to_core(dai->dev);
+
+ if (!si476x_core_is_powered_up(core))
+ si476x_core_set_power_state(core, SI476X_POWER_UP_FULL);
+ return 0;
+}
+
+static void si476x_codec_shutdown(struct snd_pcm_substream *substream,
+ struct snd_soc_dai *dai) {
+ struct si476x_core *core = i2c_mfd_cell_to_core(dai->dev);
+
+ if (si476x_core_is_powered_up(core))
+ si476x_core_set_power_state(core, SI476X_POWER_DOWN);
+}
+
static const struct snd_soc_dai_ops si476x_dai_ops = {
+ .startup = si476x_codec_startup,
+ .shutdown = si476x_codec_shutdown,
.hw_params = si476x_codec_hw_params,
.set_fmt = si476x_codec_set_dai_fmt,
};
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/4] ASoC: wm8960: correct the max register value of mic boost pga
2015-09-18 9:18 [PATCH 1/4] ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver Zidan Wang
2015-09-18 9:19 ` [PATCH 2/4] ASoC: wm8962: remove 64k sample rate support Zidan Wang
2015-09-18 9:19 ` [PATCH 3/4] ASoC: si476x: add startup/shutdown to powerup/down si476x Zidan Wang
@ 2015-09-18 9:19 ` Zidan Wang
2015-09-18 12:57 ` Charles Keepax
` (2 more replies)
2015-10-05 16:44 ` Applied "ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver" " Mark Brown
3 siblings, 3 replies; 10+ messages in thread
From: Zidan Wang @ 2015-09-18 9:19 UTC (permalink / raw)
To: broonie; +Cc: ckeepax, patches, alsa-devel, Zidan Wang
the max register value of mic boost pga should be 3.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
---
sound/soc/codecs/wm8960.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 6975390..dbd8840 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -240,9 +240,9 @@ SOC_SINGLE_TLV("Left Input Boost Mixer LINPUT3 Volume",
SOC_SINGLE_TLV("Left Input Boost Mixer LINPUT2 Volume",
WM8960_INBMIX2, 1, 7, 0, lineinboost_tlv),
SOC_SINGLE_TLV("Right Input Boost Mixer RINPUT1 Volume",
- WM8960_RINPATH, 4, 4, 0, micboost_tlv),
+ WM8960_RINPATH, 4, 3, 0, micboost_tlv),
SOC_SINGLE_TLV("Left Input Boost Mixer LINPUT1 Volume",
- WM8960_LINPATH, 4, 4, 0, micboost_tlv),
+ WM8960_LINPATH, 4, 3, 0, micboost_tlv),
SOC_DOUBLE_R_TLV("Playback Volume", WM8960_LDAC, WM8960_RDAC,
0, 255, 0, dac_tlv),
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 2/4] ASoC: wm8962: remove 64k sample rate support
2015-09-18 9:19 ` [PATCH 2/4] ASoC: wm8962: remove 64k sample rate support Zidan Wang
@ 2015-09-18 12:50 ` Charles Keepax
2015-09-20 0:13 ` Applied "ASoC: wm8962: remove 64k sample rate support" to the asoc tree Mark Brown
1 sibling, 0 replies; 10+ messages in thread
From: Charles Keepax @ 2015-09-18 12:50 UTC (permalink / raw)
To: Zidan Wang; +Cc: alsa-devel, broonie, patches
On Fri, Sep 18, 2015 at 05:19:25PM +0800, Zidan Wang wrote:
> wm8962 can't support 64k sample rate. When playing a 64KHz wave file,
> 'Unsupported rate 64000Hz' will be prompted.
>
> Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 4/4] ASoC: wm8960: correct the max register value of mic boost pga
2015-09-18 9:19 ` [PATCH 4/4] ASoC: wm8960: correct the max register value of mic boost pga Zidan Wang
@ 2015-09-18 12:57 ` Charles Keepax
2015-09-19 14:50 ` Mark Brown
2015-09-20 0:13 ` Applied "ASoC: wm8960: correct the max register value of mic boost pga" to the asoc tree Mark Brown
2 siblings, 0 replies; 10+ messages in thread
From: Charles Keepax @ 2015-09-18 12:57 UTC (permalink / raw)
To: Zidan Wang; +Cc: alsa-devel, broonie, patches
On Fri, Sep 18, 2015 at 05:19:43PM +0800, Zidan Wang wrote:
> the max register value of mic boost pga should be 3.
>
> Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 4/4] ASoC: wm8960: correct the max register value of mic boost pga
2015-09-18 9:19 ` [PATCH 4/4] ASoC: wm8960: correct the max register value of mic boost pga Zidan Wang
2015-09-18 12:57 ` Charles Keepax
@ 2015-09-19 14:50 ` Mark Brown
2015-09-20 0:13 ` Applied "ASoC: wm8960: correct the max register value of mic boost pga" to the asoc tree Mark Brown
2 siblings, 0 replies; 10+ messages in thread
From: Mark Brown @ 2015-09-19 14:50 UTC (permalink / raw)
To: Zidan Wang; +Cc: ckeepax, patches, alsa-devel
[-- Attachment #1.1: Type: text/plain, Size: 447 bytes --]
On Fri, Sep 18, 2015 at 05:19:43PM +0800, Zidan Wang wrote:
> the max register value of mic boost pga should be 3.
Please don't send random unrelated changes as a single series, if the
changes don't form part of a cohesive whole either working on the same
code or doing the same thing then just send a number of separate
patches. This makes lots of parts of the workflow work better since
people won't assume interdependencies that don't exist.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Applied "ASoC: wm8960: correct the max register value of mic boost pga" to the asoc tree
2015-09-18 9:19 ` [PATCH 4/4] ASoC: wm8960: correct the max register value of mic boost pga Zidan Wang
2015-09-18 12:57 ` Charles Keepax
2015-09-19 14:50 ` Mark Brown
@ 2015-09-20 0:13 ` Mark Brown
2 siblings, 0 replies; 10+ messages in thread
From: Mark Brown @ 2015-09-20 0:13 UTC (permalink / raw)
To: Zidan Wang, Charles Keepax, Mark Brown; +Cc: alsa-devel
The patch
ASoC: wm8960: correct the max register value of mic boost pga
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 8524bb0c7ac688a3cd6ba12dae6104c54d0566b9 Mon Sep 17 00:00:00 2001
From: Zidan Wang <zidan.wang@freescale.com>
Date: Fri, 18 Sep 2015 17:19:43 +0800
Subject: [PATCH] ASoC: wm8960: correct the max register value of mic boost pga
the max register value of mic boost pga should be 3.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/codecs/wm8960.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 70816f0..d9b43b0 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -234,9 +234,9 @@ SOC_SINGLE_TLV("Left Input Boost Mixer LINPUT3 Volume",
SOC_SINGLE_TLV("Left Input Boost Mixer LINPUT2 Volume",
WM8960_INBMIX2, 1, 7, 0, lineinboost_tlv),
SOC_SINGLE_TLV("Right Input Boost Mixer RINPUT1 Volume",
- WM8960_RINPATH, 4, 4, 0, micboost_tlv),
+ WM8960_RINPATH, 4, 3, 0, micboost_tlv),
SOC_SINGLE_TLV("Left Input Boost Mixer LINPUT1 Volume",
- WM8960_LINPATH, 4, 4, 0, micboost_tlv),
+ WM8960_LINPATH, 4, 3, 0, micboost_tlv),
SOC_DOUBLE_R_TLV("Playback Volume", WM8960_LDAC, WM8960_RDAC,
0, 255, 0, dac_tlv),
--
2.5.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Applied "ASoC: wm8962: remove 64k sample rate support" to the asoc tree
2015-09-18 9:19 ` [PATCH 2/4] ASoC: wm8962: remove 64k sample rate support Zidan Wang
2015-09-18 12:50 ` Charles Keepax
@ 2015-09-20 0:13 ` Mark Brown
1 sibling, 0 replies; 10+ messages in thread
From: Mark Brown @ 2015-09-20 0:13 UTC (permalink / raw)
To: Zidan Wang, Charles Keepax, Mark Brown; +Cc: alsa-devel
The patch
ASoC: wm8962: remove 64k sample rate support
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From ee92cfb030c16ddb01f6543968f13bcb61ed9da5 Mon Sep 17 00:00:00 2001
From: Zidan Wang <zidan.wang@freescale.com>
Date: Fri, 18 Sep 2015 17:19:25 +0800
Subject: [PATCH] ASoC: wm8962: remove 64k sample rate support
wm8962 can't support 64k sample rate. When playing a 64KHz wave file,
'Unsupported rate 64000Hz' will be prompted.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/codecs/wm8962.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index b4eb975..293e47a 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -2944,7 +2944,8 @@ static int wm8962_mute(struct snd_soc_dai *dai, int mute)
WM8962_DAC_MUTE, val);
}
-#define WM8962_RATES SNDRV_PCM_RATE_8000_96000
+#define WM8962_RATES (SNDRV_PCM_RATE_8000_48000 |\
+ SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
#define WM8962_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
--
2.5.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Applied "ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver" to the asoc tree
2015-09-18 9:18 [PATCH 1/4] ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver Zidan Wang
` (2 preceding siblings ...)
2015-09-18 9:19 ` [PATCH 4/4] ASoC: wm8960: correct the max register value of mic boost pga Zidan Wang
@ 2015-10-05 16:44 ` Mark Brown
3 siblings, 0 replies; 10+ messages in thread
From: Mark Brown @ 2015-10-05 16:44 UTC (permalink / raw)
To: Zidan Wang, Mark Brown; +Cc: alsa-devel
The patch
ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 43ac946922b337507c4131c45bf339ddcd7e7402 Mon Sep 17 00:00:00 2001
From: Zidan Wang <zidan.wang@freescale.com>
Date: Fri, 18 Sep 2015 17:18:48 +0800
Subject: [PATCH] ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver
Add snd_soc_pm_ops in machine driver to make the trigger suspend/resume
be called in suspend/resume.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/fsl/imx-spdif.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c
index 33da26a..a407e83 100644
--- a/sound/soc/fsl/imx-spdif.c
+++ b/sound/soc/fsl/imx-spdif.c
@@ -89,6 +89,7 @@ MODULE_DEVICE_TABLE(of, imx_spdif_dt_ids);
static struct platform_driver imx_spdif_driver = {
.driver = {
.name = "imx-spdif",
+ .pm = &snd_soc_pm_ops,
.of_match_table = imx_spdif_dt_ids,
},
.probe = imx_spdif_audio_probe,
--
2.5.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-10-05 16:45 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-18 9:18 [PATCH 1/4] ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver Zidan Wang
2015-09-18 9:19 ` [PATCH 2/4] ASoC: wm8962: remove 64k sample rate support Zidan Wang
2015-09-18 12:50 ` Charles Keepax
2015-09-20 0:13 ` Applied "ASoC: wm8962: remove 64k sample rate support" to the asoc tree Mark Brown
2015-09-18 9:19 ` [PATCH 3/4] ASoC: si476x: add startup/shutdown to powerup/down si476x Zidan Wang
2015-09-18 9:19 ` [PATCH 4/4] ASoC: wm8960: correct the max register value of mic boost pga Zidan Wang
2015-09-18 12:57 ` Charles Keepax
2015-09-19 14:50 ` Mark Brown
2015-09-20 0:13 ` Applied "ASoC: wm8960: correct the max register value of mic boost pga" to the asoc tree Mark Brown
2015-10-05 16:44 ` Applied "ASoC: imx-spdif: add snd_soc_pm_ops for spdif machine driver" " Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).