From: Paul Cercueil <paul@crapouillou.net>
To: alsa-devel@alsa-project.org
Cc: Christophe Branchereau <cbranchereau@gmail.com>
Subject: Questions about driver implementation (1 I2S controller to 2 codecs)
Date: Fri, 24 Jun 2022 21:33:01 +0100 [thread overview]
Message-ID: <1310ER.AOPVK6422Q8P1@crapouillou.net> (raw)
Hi,
I'm trying to add support for a new board that uses the Ingenic JZ4770
SoC.
This SoC has a I2S/AC97 controller, and has an internal codec. The
controller has a register switch to select either the internal codec,
or an external codec; both cannot be enabled at the same time.
On this board, the external speakers / audio line are wired to the
internal codec, while a HDMI chip (ITE66121) is wired as the external
codec.
I'm having a hard time trying to figure out how the codec selection
switch should be exported. Should it be a regular widget, and the user
is responsible for selecting the right codec? Should it be a DAPM, and
plugging the HDMI cable auto-enables the switch? Is this configuration
(one controller to two codecs) already somehow supported by ALSA?
Right now we're using a "simple-audio-card" in the device tree, and
trying to add HDMI sound support. I am not even sure if we should be
using one sound card with the two codecs, or one sound card per codec,
sharing the same I2S controller?
Any thoughts?
Thanks,
-Paul
next reply other threads:[~2022-06-24 20:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-24 20:33 Paul Cercueil [this message]
2022-06-25 20:19 ` Questions about driver implementation (1 I2S controller to 2 codecs) Aidan MacDonald
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=1310ER.AOPVK6422Q8P1@crapouillou.net \
--to=paul@crapouillou.net \
--cc=alsa-devel@alsa-project.org \
--cc=cbranchereau@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox