alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] Let Atmel use simple-audio-card
@ 2018-01-30 11:06 Ladislav Michl
  2018-01-30 11:06 ` [PATCH 1/7] ASoC: atmel: Remove redundant dev_err() call in probe function Ladislav Michl
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Ladislav Michl @ 2018-01-30 11:06 UTC (permalink / raw)
  To: alsa-devel
  Cc: Charles Keepax, Alexandre Belloni, Nicolas Ferre,
	Kuninori Morimoto, anish kumar

Alexandre,

following patchset is sent as a bare minimum I need to use
MAX9867 codec in master mode on AT91SAM9G20 based board.

Codec's MCLK is driven by PCK0 and SSC is wired as follows:
RK0 <-- BCLK
RF0 <-- LRCLK
TD0 --> SDIN
RD0 <-- SDOUT

Following DT framgment was used:

	i2c-gpio-0 {
		codec: max9867@18 {
			compatible = "maxim,max9867";
			reg = <0x18>;
			#sound-dai-cells = <0>;
		};
	};

	sound {
		compatible = "simple-audio-card";

		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_pck0_as_mck>;

		simple-audio-card,name = "simear4-max9867";
		simple-audio-card,format = "i2s";
		simple-audio-card,bitclock-master = <&codec_dai>;
		simple-audio-card,frame-master = <&codec_dai>;
		simple-audio-card,routing =
				"LINE_IN", "Line In Jack",
				"Speaker", "HPOUT";
		simple-audio-card,widgets =
				"Line", "Line In Jack",
				"Speaker", "Speaker";

		cpu_dai: simple-audio-card,cpu {
			sound-dai = <&ssc0>;
		};

		codec_dai: simple-audio-card,codec {
			sound-dai = <&codec>;
			clocks = <&pck0>;
			clock-frequency = <12384000>;
		};
	};

&ssc0 {
	status = "okay";
	pinctrl-0 = <&pinctrl_board_ssc0_tx &pinctrl_ssc0_rx>;
	atmel,clk-from-rk-pin;
	#sound-dai-cells = <0>;
};


Codec code itself seems to be unused since it was merged and I'm
wondering whenever it worked at all. A comment from codec author
would help a lot, just to be sure I did not break anything.

By no means this code is ready to be merged (only except those patches
with commit log and after carefull consideration :)), I'm posting it as
a base for discussion.

Thank you,
	ladis

Ladislav Michl (7):
  ASoC: atmel: Remove redundant dev_err() call in probe function
  ASoC: atmel_ssc_dai: Fix TCMR settings in I2S slave mode
  ASoC: simple_card_utils: Set clock frequency
  ASoC: max9867: Show Kconfig entry
  ASoC: max9867: Calculate LRCLK divider
  ASoC: max9867: Fix BSEL value in master mode.
  ASoC: max9867: Take chip out of shutdown

 sound/soc/atmel/atmel-classd.c        |   7 +--
 sound/soc/atmel/atmel-pdmic.c         |   7 +--
 sound/soc/atmel/atmel_ssc_dai.c       |   2 +-
 sound/soc/codecs/Kconfig              |   3 +-
 sound/soc/codecs/max9867.c            | 110 +++-------------------------------
 sound/soc/generic/simple-card-utils.c |   4 ++
 6 files changed, 19 insertions(+), 114 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2018-03-01 18:06 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-30 11:06 [PATCH 0/7] Let Atmel use simple-audio-card Ladislav Michl
2018-01-30 11:06 ` [PATCH 1/7] ASoC: atmel: Remove redundant dev_err() call in probe function Ladislav Michl
2018-02-27 16:54   ` Alexandre Belloni
2018-02-27 17:13     ` Nicolas Ferre
2018-03-01 18:06   ` Applied "ASoC: atmel: Remove redundant dev_err() call in probe function" to the asoc tree Mark Brown
2018-01-30 11:08 ` [PATCH 2/7] ASoC: atmel_ssc_dai: Fix TCMR settings in I2S slave mode Ladislav Michl
2018-02-27 17:09   ` Alexandre Belloni
2018-02-27 18:50     ` Ladislav Michl
2018-01-30 11:08 ` [PATCH 3/7] ASoC: simple_card_utils: Set clock frequency Ladislav Michl
2018-02-27 17:19   ` Alexandre Belloni
2018-01-30 11:09 ` [PATCH 4/7] ASoC: max9867: Show Kconfig entry Ladislav Michl
2018-03-01 18:06   ` Applied "ASoC: max9867: Show Kconfig entry" to the asoc tree Mark Brown
2018-01-30 11:10 ` [PATCH 5/7] ASoC: max9867: Calculate LRCLK divider Ladislav Michl
2018-01-30 11:10 ` [PATCH 6/7] ASoC: max9867: Fix BSEL value in master mode Ladislav Michl
2018-02-27 17:23   ` Alexandre Belloni
2018-02-27 19:03     ` Ladislav Michl
2018-02-28 10:00       ` Alexandre Belloni
2018-02-28 10:23         ` Ladislav Michl
2018-02-28 10:28           ` Alexandre Belloni
2018-01-30 11:11 ` [PATCH 7/7] ASoC: max9867: Take chip out of shutdown Ladislav Michl

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).