Re: [alsa-devel] [PATCH 1/3] ASoC: Add gtm601 codec driver
On Thu, Apr 30, 2015 at 11:28:01PM +0200, Marek Belisko wrote:
select SND_SOC_WM9705 if SND_SOC_AC97_BUS select SND_SOC_WM9712 if SND_SOC_AC97_BUS select SND_SOC_WM9713 if SND_SOC_AC97_BUS
- select SND_SOC_GTM601 help
+config SND_SOC_GTM601
- tristate 'GTM601 UMTS modem audio codec'
Keep Makefile and Kconfig sorted.
+/*
- Note this is a simple chip with no configuration interface, sample rate is
- determined automatically by examining the Master clock and Bit clock ratios
- */
+#define GTM601_RATES (SNDRV_PCM_RATE_8000)
Does it or doesn't it support multiple sample rates?
Hi Mark,
On Fri, May 1, 2015 at 1:03 PM, Mark Brown broonie@kernel.org wrote:
On Thu, Apr 30, 2015 at 11:28:01PM +0200, Marek Belisko wrote:
select SND_SOC_WM9705 if SND_SOC_AC97_BUS select SND_SOC_WM9712 if SND_SOC_AC97_BUS select SND_SOC_WM9713 if SND_SOC_AC97_BUS
select SND_SOC_GTM601 help
+config SND_SOC_GTM601
tristate 'GTM601 UMTS modem audio codec'
Keep Makefile and Kconfig sorted.
Ok.
+/*
- Note this is a simple chip with no configuration interface, sample rate is
- determined automatically by examining the Master clock and Bit clock ratios
- */
+#define GTM601_RATES (SNDRV_PCM_RATE_8000)
Does it or doesn't it support multiple sample rates?
It support only 8kHz rate. I'll remove define and use SNDRV_PCM_RATE_8000 only in gtm601_dai struct.
Thanks and BR.
marek
On Fri, May 01, 2015 at 01:36:48PM +0200, Belisko Marek wrote:
On Fri, May 1, 2015 at 1:03 PM, Mark Brown broonie@kernel.org wrote:
On Thu, Apr 30, 2015 at 11:28:01PM +0200, Marek Belisko wrote:
+/*
- Note this is a simple chip with no configuration interface, sample rate is
- determined automatically by examining the Master clock and Bit clock ratios
- */
+#define GTM601_RATES (SNDRV_PCM_RATE_8000)
Does it or doesn't it support multiple sample rates?
It support only 8kHz rate. I'll remove define and use SNDRV_PCM_RATE_8000 only in gtm601_dai struct.
I was more commenting on the fact that the comment immediately above says that the sample rate is determined automatically which suggests that multiple sample rates are supported.
On Fri, May 1, 2015 at 4:02 PM, Mark Brown broonie@kernel.org wrote:
On Fri, May 01, 2015 at 01:36:48PM +0200, Belisko Marek wrote:
On Fri, May 1, 2015 at 1:03 PM, Mark Brown broonie@kernel.org wrote:
On Thu, Apr 30, 2015 at 11:28:01PM +0200, Marek Belisko wrote:
+/*
- Note this is a simple chip with no configuration interface, sample rate is
- determined automatically by examining the Master clock and Bit clock ratios
- */
+#define GTM601_RATES (SNDRV_PCM_RATE_8000)
Does it or doesn't it support multiple sample rates?
It support only 8kHz rate. I'll remove define and use SNDRV_PCM_RATE_8000 only in gtm601_dai struct.
I was more commenting on the fact that the comment immediately above says that the sample rate is determined automatically which suggests that multiple sample rates are supported.
OK I see. Checked with gtm601 datasheet max master clock is 2.048MHz so it is 8kHz LRCLK. Sorry for confusing comment.
BR,
marek
participants (2)
-
Belisko Marek
-
Mark Brown