public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: max98363: Removed 32bit support
@ 2023-06-01 13:05 “Ryan
  2023-06-01 13:06 ` [PATCH 2/2] ASoC: max98363: limit the number of channel to 1 “Ryan
  2023-06-01 15:44 ` [PATCH 1/2] ASoC: max98363: Removed 32bit support Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: “Ryan @ 2023-06-01 13:05 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, ryans.lee, alsa-devel,
	linux-kernel
  Cc: jairaj.arava

From: Ryan Lee <ryans.lee@analog.com>

MAX98363 does not support 32bit depth audio.
Removed 32bit from the supported format list.
Instead, added 16bit and 24bit to the list.

Signed-off-by: Ryan Lee <ryans.lee@analog.com>
---
 sound/soc/codecs/max98363.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/max98363.c b/sound/soc/codecs/max98363.c
index 4585ebb1e82c..8aa9d9c67aa2 100644
--- a/sound/soc/codecs/max98363.c
+++ b/sound/soc/codecs/max98363.c
@@ -211,7 +211,7 @@ static int max98363_io_init(struct sdw_slave *slave)
 }
 
 #define MAX98363_RATES SNDRV_PCM_RATE_8000_192000
-#define MAX98363_FORMATS (SNDRV_PCM_FMTBIT_S32_LE)
+#define MAX98363_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE)
 
 static int max98363_sdw_dai_hw_params(struct snd_pcm_substream *substream,
 				      struct snd_pcm_hw_params *params,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ASoC: max98363: limit the number of channel to 1
  2023-06-01 13:05 [PATCH 1/2] ASoC: max98363: Removed 32bit support “Ryan
@ 2023-06-01 13:06 ` “Ryan
  2023-06-01 15:44 ` [PATCH 1/2] ASoC: max98363: Removed 32bit support Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: “Ryan @ 2023-06-01 13:06 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, ryans.lee, alsa-devel,
	linux-kernel
  Cc: jairaj.arava

From: Ryan Lee <ryans.lee@analog.com>

MAX98363 is a mono amplifier. The number of channel needs to be always 1.

Signed-off-by: Ryan Lee <ryans.lee@analog.com>
---
 sound/soc/codecs/max98363.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/max98363.c b/sound/soc/codecs/max98363.c
index 8aa9d9c67aa2..7f5062ac4523 100644
--- a/sound/soc/codecs/max98363.c
+++ b/sound/soc/codecs/max98363.c
@@ -246,7 +246,7 @@ static int max98363_sdw_dai_hw_params(struct snd_pcm_substream *substream,
 	stream_config.frame_rate = params_rate(params);
 	stream_config.bps = snd_pcm_format_width(params_format(params));
 	stream_config.direction = direction;
-	stream_config.ch_count = params_channels(params);
+	stream_config.ch_count = 1;
 
 	if (stream_config.ch_count > runtime->hw.channels_max) {
 		stream_config.ch_count = runtime->hw.channels_max;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] ASoC: max98363: Removed 32bit support
  2023-06-01 13:05 [PATCH 1/2] ASoC: max98363: Removed 32bit support “Ryan
  2023-06-01 13:06 ` [PATCH 2/2] ASoC: max98363: limit the number of channel to 1 “Ryan
@ 2023-06-01 15:44 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2023-06-01 15:44 UTC (permalink / raw)
  To: lgirdwood, perex, tiwai, ryans.lee, alsa-devel, linux-kernel,
	“Ryan
  Cc: jairaj.arava

On Thu, 01 Jun 2023 06:05:59 -0700, “Ryan wrote:
> MAX98363 does not support 32bit depth audio.
> Removed 32bit from the supported format list.
> Instead, added 16bit and 24bit to the list.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: max98363: Removed 32bit support
      commit: 0e2ee345856454632dcd2f3ee2ba4bb3f8632f74
[2/2] ASoC: max98363: limit the number of channel to 1
      commit: 3a67ad17b47ed111bda692238b6a19420e6934c8

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-01 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-01 13:05 [PATCH 1/2] ASoC: max98363: Removed 32bit support “Ryan
2023-06-01 13:06 ` [PATCH 2/2] ASoC: max98363: limit the number of channel to 1 “Ryan
2023-06-01 15:44 ` [PATCH 1/2] ASoC: max98363: Removed 32bit support Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox