ASoC updates
Subsystems (5)
cover ASoC updates
The following changes since commit 6f2a974bfc8d3be7a30674c71e2fef003b39a8d2:
Daniel Mack (1):
ASoC: tlv320aic3x: headset/button press support
are available in the git repository at:
git://opensource.wolfsonmicro.com/linux-2.6-asoc for-tiwai
Mark Brown (4):
ASoC: Push debugfs files out of the snd_soc_device structure
ASoC: Remove device from platform suspend and resume operations
ASoC: Remove platform device from DAI suspend and resume operations
ASoC: Remove obsolete declaration of struct snd_soc_clock_info
include/sound/soc-dai.h | 6 +-- include/sound/soc.h | 15 +++---- sound/soc/atmel/atmel-pcm.c | 6 +-- sound/soc/atmel/atmel_ssc_dai.c | 6 +-- sound/soc/au1x/psc-ac97.c | 6 +-- sound/soc/au1x/psc-i2s.c | 6 +-- sound/soc/blackfin/bf5xx-ac97.c | 6 +-- sound/soc/blackfin/bf5xx-i2s.c | 6 +-- sound/soc/pxa/pxa-ssp.c | 6 +-- sound/soc/pxa/pxa2xx-ac97.c | 6 +-- sound/soc/pxa/pxa2xx-i2s.c | 6 +-- sound/soc/s3c24xx/s3c2412-i2s.c | 16 +++---- sound/soc/s3c24xx/s3c24xx-i2s.c | 6 +-- sound/soc/soc-core.c | 85 +++++++++++++++++++++----------------- 14 files changed, 83 insertions(+), 99 deletions(-)
PATCH 1/4 ASoC: Push debugfs files out of the snd_soc_device structure
This is in preparation for the removal of struct snd_soc_device.
The pop time configuration should really be a property of the card not the codec but since DAPM currently uses the codec rather than the card using the codec is fine for now.
--- include/sound/soc.h | 8 +++-- sound/soc/soc-core.c | 73 ++++++++++++++++++++++++++++---------------------- 2 files changed, 46 insertions(+), 35 deletions(-)
include/sound/soc.h +5 -3
@@ -279,6 +279,11 @@ struct snd_soc_codec {/* codec DAI's */ struct snd_soc_dai *dai;unsigned int num_dai; + +#ifdef CONFIG_DEBUG_FS +struct dentry *debugfs_reg; +struct dentry *debugfs_pop_time; +#endif };/* codec device */
@@ -364,9 +369,6 @@ struct snd_soc_device {struct snd_soc_codec *codec;struct snd_soc_codec_device *codec_dev;void *codec_data; -#ifdef CONFIG_DEBUG_FS -struct dentry *debugfs_root; -#endif };/* runtime channel data */
sound/soc/soc-core.c +41 -32
131 lines not on this page · raw message
Signature · 1 line
1.5.6.5
PATCH 2/4 ASoC: Remove device from platform suspend and resume operations
None of the platforms are actually using the SoC device so remove it (only atmel actually has a suspend method).
--- include/sound/soc.h | 6 ++---- sound/soc/atmel/atmel-pcm.c | 6 ++---- sound/soc/soc-core.c | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-)
include/sound/soc.h +2 -4
@@ -300,10 +300,8 @@ struct snd_soc_platform {int (*probe)(struct platform_device *pdev);int (*remove)(struct platform_device *pdev); -int (*suspend)(struct platform_device *pdev, -struct snd_soc_dai *dai); -int (*resume)(struct platform_device *pdev, -struct snd_soc_dai *dai); +int (*suspend)(struct snd_soc_dai *dai); +int (*resume)(struct snd_soc_dai *dai);/* pcm creation and destruction */ int (*pcm_new)(struct snd_card *, struct snd_soc_dai *,
sound/soc/atmel/atmel-pcm.c +2 -4
@@ -417,8 +417,7 @@ static void atmel_pcm_free_dma_buffers(struct snd_pcm *pcm) }#ifdef CONFIG_PM -static int atmel_pcm_suspend (struct platform_device *pdev, -struct snd_soc_dai *dai) +static int atmel_pcm_suspend (struct snd_soc_dai *dai) {struct snd_pcm_runtime *runtime = dai->runtime;struct atmel_runtime_data *prtd;
@@ -442,8 +441,7 @@ static int atmel_pcm_suspend(struct platform_device *pdev,return 0 ; } -static int atmel_pcm_resume (struct platform_device *pdev, -struct snd_soc_dai *dai) +static int atmel_pcm_resume (struct snd_soc_dai *dai) {struct snd_pcm_runtime *runtime = dai->runtime;struct atmel_runtime_data *prtd;
sound/soc/soc-core.c +2 -2
@@ -652,7 +652,7 @@ static int soc_suspend(struct platform_device *pdev, pm_message_t state)if (cpu_dai->suspend && !cpu_dai->ac97_control) cpu_dai->suspend (pdev, cpu_dai);if (platform->suspend) - platform->suspend (pdev, cpu_dai); + platform->suspend (cpu_dai); }/* close any waiting streams and save state */
@@ -741,7 +741,7 @@ static void soc_resume_deferred(struct work_struct *work)if (cpu_dai->resume && !cpu_dai->ac97_control) cpu_dai->resume (pdev, cpu_dai);if (platform->resume) - platform->resume (pdev, cpu_dai); + platform->resume (cpu_dai); }if (card->resume_post)
Signature · 1 line
1.5.6.5
PATCH 3/4 ASoC: Remove platform device from DAI suspend and resume operations
None of the DAIs use it except s3c2412-i2s which only uses it for dev_() printouts.
--- include/sound/soc-dai.h | 6 ++---- sound/soc/atmel/atmel_ssc_dai.c | 6 ++---- sound/soc/au1x/psc-ac97.c | 6 ++---- sound/soc/au1x/psc-i2s.c | 6 ++---- sound/soc/blackfin/bf5xx-ac97.c | 6 ++---- sound/soc/blackfin/bf5xx-i2s.c | 6 ++---- sound/soc/pxa/pxa-ssp.c | 6 ++---- sound/soc/pxa/pxa2xx-ac97.c | 6 ++---- sound/soc/pxa/pxa2xx-i2s.c | 6 ++---- sound/soc/s3c24xx/s3c2412-i2s.c | 16 +++++++--------- sound/soc/s3c24xx/s3c24xx-i2s.c | 6 ++---- sound/soc/soc-core.c | 8 ++++---- 12 files changed, 31 insertions(+), 53 deletions(-)
include/sound/soc-dai.h +2 -4
@@ -191,10 +191,8 @@ struct snd_soc_dai { struct snd_soc_dai *dai);void (*remove)(struct platform_device *pdev,struct snd_soc_dai *dai); -int (*suspend)(struct platform_device *pdev, -struct snd_soc_dai *dai); -int (*resume)(struct platform_device *pdev, -struct snd_soc_dai *dai); +int (*suspend)(struct snd_soc_dai *dai); +int (*resume)(struct snd_soc_dai *dai);/* ops */ struct snd_soc_dai_ops ops;
sound/soc/atmel/atmel_ssc_dai.c +2 -4
@@ -628,8 +628,7 @@ static int atmel_ssc_prepare(struct snd_pcm_substream *substream,#ifdef CONFIG_PM -static int atmel_ssc_suspend (struct platform_device *pdev, -struct snd_soc_dai *cpu_dai) +static int atmel_ssc_suspend (struct snd_soc_dai *cpu_dai) {struct atmel_ssc_info *ssc_p;
@@ -657,8 +656,7 @@ static int atmel_ssc_suspend(struct platform_device *pdev, -static int atmel_ssc_resume (struct platform_device *pdev, -struct snd_soc_dai *cpu_dai) +static int atmel_ssc_resume (struct snd_soc_dai *cpu_dai) {struct atmel_ssc_info *ssc_p;u32 cr;
sound/soc/au1x/psc-ac97.c +2 -4
@@ -314,8 +314,7 @@ static void au1xpsc_ac97_remove(struct platform_device *pdev, au1xpsc_ac97_workdata =NULL ; } -static int au1xpsc_ac97_suspend (struct platform_device *pdev, -struct snd_soc_dai *dai) +static int au1xpsc_ac97_suspend (struct snd_soc_dai *dai) {/* save interesting registers and disable PSC */ au1xpsc_ac97_workdata->pm[0] =
@@ -329,8 +328,7 @@ static int au1xpsc_ac97_suspend(struct platform_device *pdev,return 0 ; } -static int au1xpsc_ac97_resume (struct platform_device *pdev, -struct snd_soc_dai *dai) +static int au1xpsc_ac97_resume (struct snd_soc_dai *dai) {/* restore PSC clock config */ au_writel(au1xpsc_ac97_workdata->pm[0] | PSC_SEL_PS_AC97MODE,
sound/soc/au1x/psc-i2s.c +2 -4
@@ -339,8 +339,7 @@ static void au1xpsc_i2s_remove(struct platform_device *pdev, au1xpsc_i2s_workdata =NULL ; } -static int au1xpsc_i2s_suspend (struct platform_device *pdev, -struct snd_soc_dai *cpu_dai) +static int au1xpsc_i2s_suspend (struct snd_soc_dai *cpu_dai) {/* save interesting register and disable PSC */ au1xpsc_i2s_workdata->pm[0] =
@@ -354,8 +353,7 @@ static int au1xpsc_i2s_suspend(struct platform_device *pdev,return 0 ; } -static int au1xpsc_i2s_resume (struct platform_device *pdev, -struct snd_soc_dai *cpu_dai) +static int au1xpsc_i2s_resume (struct snd_soc_dai *cpu_dai) {/* select I2S mode and PSC clock */ au_writel (PSC_CTRL_DISABLE ,PSC_CTRL (au1xpsc_i2s_workdata));
sound/soc/blackfin/bf5xx-ac97.c +2 -4
@@ -269,8 +269,7 @@ struct snd_ac97_bus_ops soc_ac97_ops = {EXPORT_SYMBOL_GPL (soc_ac97_ops);#ifdef CONFIG_PM -static int bf5xx_ac97_suspend (struct platform_device *pdev, -struct snd_soc_dai *dai) +static int bf5xx_ac97_suspend (struct snd_soc_dai *dai) {struct sport_device *sport = (struct sport_device *)dai->private_data;
@@ -285,8 +284,7 @@ static int bf5xx_ac97_suspend(struct platform_device *pdev,return 0 ; } -static int bf5xx_ac97_resume (struct platform_device *pdev, -struct snd_soc_dai *dai) +static int bf5xx_ac97_resume (struct snd_soc_dai *dai) {int ret; struct sport_device *sport =
sound/soc/blackfin/bf5xx-i2s.c +2 -4
@@ -222,16 +222,14 @@ static int bf5xx_i2s_probe(struct platform_device *pdev,return 0 ; } -static void bf5xx_i2s_remove (struct platform_device *pdev, -struct snd_soc_dai *dai) +static void bf5xx_i2s_remove (struct snd_soc_dai *dai) {pr_debug ("%s enter\n" , __func__);peripheral_free_list (&sport_req[sport_num][0 ]); }#ifdef CONFIG_PM -static int bf5xx_i2s_suspend (struct platform_device *dev, -struct snd_soc_dai *dai) +static int bf5xx_i2s_suspend (struct snd_soc_dai *dai) {struct sport_device *sport = (struct sport_device *)dai->private_data;
sound/soc/pxa/pxa-ssp.c +2 -4
@@ -244,8 +244,7 @@ static void pxa_ssp_shutdown(struct snd_pcm_substream *substream,#ifdef CONFIG_PM -static int pxa_ssp_suspend (struct platform_device *pdev, -struct snd_soc_dai *cpu_dai) +static int pxa_ssp_suspend (struct snd_soc_dai *cpu_dai) {struct ssp_priv *priv = cpu_dai->private_data;
@@ -257,8 +256,7 @@ static int pxa_ssp_suspend(struct platform_device *pdev,return 0 ; } -static int pxa_ssp_resume (struct platform_device *pdev, -struct snd_soc_dai *cpu_dai) +static int pxa_ssp_resume (struct snd_soc_dai *cpu_dai) {struct ssp_priv *priv = cpu_dai->private_data;
sound/soc/pxa/pxa2xx-ac97.c +2 -4
@@ -87,14 +87,12 @@ static struct pxa2xx_pcm_dma_params pxa2xx_ac97_pcm_mic_mono_in = { };#ifdef CONFIG_PM -static int pxa2xx_ac97_suspend (struct platform_device *pdev, -struct snd_soc_dai *dai) +static int pxa2xx_ac97_suspend (struct snd_soc_dai *dai) {return pxa2xx_ac97_hw_suspend (); } -static int pxa2xx_ac97_resume (struct platform_device *pdev, -struct snd_soc_dai *dai) +static int pxa2xx_ac97_resume (struct snd_soc_dai *dai) {return pxa2xx_ac97_hw_resume (); }
sound/soc/pxa/pxa2xx-i2s.c +2 -4
@@ -293,8 +293,7 @@ static void pxa2xx_i2s_shutdown(struct snd_pcm_substream *substream, }#ifdef CONFIG_PM -static int pxa2xx_i2s_suspend (struct platform_device *dev, -struct snd_soc_dai *dai) +static int pxa2xx_i2s_suspend (struct snd_soc_dai *dai) {if (!dai->active)return 0 ;
@@ -311,8 +310,7 @@ static int pxa2xx_i2s_suspend(struct platform_device *dev,return 0 ; } -static int pxa2xx_i2s_resume (struct platform_device *pdev, -struct snd_soc_dai *dai) +static int pxa2xx_i2s_resume (struct snd_soc_dai *dai) {if (!dai->active)return 0 ;
sound/soc/s3c24xx/s3c2412-i2s.c +7 -9
@@ -649,8 +649,7 @@ static int s3c2412_i2s_probe(struct platform_device *pdev, }#ifdef CONFIG_PM -static int s3c2412_i2s_suspend (struct platform_device *dev, -struct snd_soc_dai *dai) +static int s3c2412_i2s_suspend (struct snd_soc_dai *dai) {struct s3c2412_i2s_info *i2s = &s3c2412_i2s;u32 iismod;
@@ -665,25 +664,24 @@ static int s3c2412_i2s_suspend(struct platform_device *dev, iismod =readl (i2s->regs +S3C2412_IISMOD );if (iismod &S3C2412_IISCON_RXDMA_ACTIVE ) -dev_warn (&dev->dev,"%s: RXDMA active?\n" , __func__); +pr_warning ("%s: RXDMA active?\n" , __func__);if (iismod &S3C2412_IISCON_TXDMA_ACTIVE ) -dev_warn (&dev->dev,"%s: TXDMA active?\n" , __func__); +pr_warning ("%s: TXDMA active?\n" , __func__);if (iismod &S3C2412_IISCON_IIS_ACTIVE ) -dev_warn (&dev->dev,"%s: IIS active\n" , __func__); +pr_warning ("%s: IIS active\n" , __func__); }return 0 ; } -static int s3c2412_i2s_resume (struct platform_device *pdev, -struct snd_soc_dai *dai) +static int s3c2412_i2s_resume (struct snd_soc_dai *dai) {struct s3c2412_i2s_info *i2s = &s3c2412_i2s; -dev_info (&pdev->dev,"dai_active %d, IISMOD %08x, IISCON %08x\n" , - dai->active, i2s->suspend_iismod, i2s->suspend_iiscon); +pr_info ("dai_active %d, IISMOD %08x, IISCON %08x\n" , + dai->active, i2s->suspend_iismod, i2s->suspend_iiscon);if (dai->active) {writel (i2s->suspend_iiscon, i2s->regs +S3C2412_IISCON );
sound/soc/s3c24xx/s3c24xx-i2s.c +2 -4
@@ -419,8 +419,7 @@ static int s3c24xx_i2s_probe(struct platform_device *pdev, }#ifdef CONFIG_PM -static int s3c24xx_i2s_suspend (struct platform_device *pdev, -struct snd_soc_dai *cpu_dai) +static int s3c24xx_i2s_suspend (struct snd_soc_dai *cpu_dai) {DBG ("Entered %s\n" , __func__);
@@ -434,8 +433,7 @@ static int s3c24xx_i2s_suspend(struct platform_device *pdev,return 0 ; } -static int s3c24xx_i2s_resume (struct platform_device *pdev, -struct snd_soc_dai *cpu_dai) +static int s3c24xx_i2s_resume (struct snd_soc_dai *cpu_dai) {DBG ("Entered %s\n" , __func__);clk_enable (s3c24xx_i2s.iis_clk);
sound/soc/soc-core.c +4 -4
@@ -650,7 +650,7 @@ static int soc_suspend(struct platform_device *pdev, pm_message_t state)for (i =0 ; i < card->num_links; i++) {struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai;if (cpu_dai->suspend && !cpu_dai->ac97_control) - cpu_dai->suspend (pdev, cpu_dai); + cpu_dai->suspend (cpu_dai);if (platform->suspend) platform->suspend (cpu_dai); }
@@ -676,7 +676,7 @@ static int soc_suspend(struct platform_device *pdev, pm_message_t state)for (i =0 ; i < card->num_links; i++) {struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai;if (cpu_dai->suspend && cpu_dai->ac97_control) - cpu_dai->suspend (pdev, cpu_dai); + cpu_dai->suspend (cpu_dai); }if (card->suspend_post)
@@ -712,7 +712,7 @@ static void soc_resume_deferred(struct work_struct *work)for (i =0 ; i < card->num_links; i++) {struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai;if (cpu_dai->resume && cpu_dai->ac97_control) - cpu_dai->resume (pdev, cpu_dai); + cpu_dai->resume (cpu_dai); }if (codec_dev->resume)
@@ -739,7 +739,7 @@ static void soc_resume_deferred(struct work_struct *work)for (i =0 ; i < card->num_links; i++) {struct snd_soc_dai *cpu_dai = card->dai_link[i].cpu_dai;if (cpu_dai->resume && !cpu_dai->ac97_control) - cpu_dai->resume (pdev, cpu_dai); + cpu_dai->resume (cpu_dai);if (platform->resume) platform->resume (cpu_dai); }
Signature · 1 line
1.5.6.5
PATCH 4/4 ASoC: Remove obsolete declaration of struct snd_soc_clock_info
The struct is never defined.
--- include/sound/soc.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
include/sound/soc.h +0 -1
@@ -152,7 +152,6 @@ struct snd_soc_dai;struct snd_soc_codec ;struct soc_enum ;struct snd_soc_ac97_ops ; -struct snd_soc_clock_info ;typedef int (*hw_write_t )(void *,const char * ,int );typedef int (*hw_read_t )(void *,char * ,int );
Signature · 1 line
1.5.6.5
At Thu, 4 Dec 2008 11:25:43 +0000,
Quoted 8 lines · Mark Brown
The following changes since commit
6f2a974bfc8d3be7a30674c71e2fef003b39a8d2:
Daniel Mack (1):
ASoC: tlv320aic3x: headset/button press supportare available in the git repository at:
git://opensource.wolfsonmicro.com/linux-2.6-asocfor-tiwai
Pulled now. Thanks.
Takashi