From: Zidan Wang <zidan.wang@freescale.com>
To: broonie@kernel.org
Cc: ckeepax@opensource.wolfsonmicro.com,
patches@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org,
Zidan Wang <zidan.wang@freescale.com>
Subject: [PATCH 2/4] ASoC: wm8962: remove 64k sample rate support
Date: Fri, 18 Sep 2015 17:19:25 +0800 [thread overview]
Message-ID: <2e8075642e5d428b1136b3b7b18be5b7d30c358a.1442566367.git.zidan.wang@freescale.com> (raw)
In-Reply-To: <4c1fe5d2fa0ae6cf85e9be8b3b8a52feaae7d75b.1442566367.git.zidan.wang@freescale.com>
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
next prev parent reply other threads:[~2015-09-18 9:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2015-09-18 12:50 ` [PATCH 2/4] ASoC: wm8962: remove 64k sample rate support 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2e8075642e5d428b1136b3b7b18be5b7d30c358a.1442566367.git.zidan.wang@freescale.com \
--to=zidan.wang@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.wolfsonmicro.com \
--cc=patches@opensource.wolfsonmicro.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.