From: Takashi Iwai <tiwai@suse.de>
To: Jaroslav Kysela <perex@perex.cz>
Cc: Hui Wang <hui.wang@canonical.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"Mukunda, Vijendar" <Vijendar.Mukunda@amd.com>
Subject: Re: alsa-project alsa-ucm : Audio endpoint is not switching when external mic connected
Date: Wed, 03 Jun 2020 13:15:47 +0200 [thread overview]
Message-ID: <s5h367ce6xo.wl-tiwai@suse.de> (raw)
In-Reply-To: <f75e5924-1854-d512-8171-6927ba75b229@perex.cz>
On Wed, 03 Jun 2020 13:05:43 +0200,
Jaroslav Kysela wrote:
>
> Dne 03. 06. 20 v 11:34 Takashi Iwai napsal(a):
> > On Wed, 03 Jun 2020 02:36:25 +0200,
> > Hui Wang wrote:
> >>
> >>
> >> On 2020/6/3 上午3:39, Jaroslav Kysela wrote:
> >>> Dne 02. 06. 20 v 19:57 Mukunda, Vijendar napsal(a):
> >>>> We recently up streamed ACP PDM driver for Renoir APU.
> >>>>
> >>>> Our ACP IP has an internal PDM Decoder block where DMIC is directly
> >>>> connected.
> >>>> There are no KControls defined for PDM Driver.
> >>>>
> >>>> Our platform supports on board DMIC and South bridge Azalia (HD
> >>>> Audio ) endpoint .
> >>>> By default, DMIC endpoint is used as audio input device.
> >>>> When Headset Mic jack connected, it's not switching to External Mic.
> >>>
> >>> Make sure that the Headset Mic priority port in pulseaudio is is
> >>> greater than the one for DMIC.
> >>>
> >>>> How does audio endpoint will switch in gnome when external mic is
> >>>> connected?
> >>>>> From our understanding, UCM conf file for HDA driver is also
> >>>>> required for
> >>>> configuring mixer controls for HD Audio capture device.
> >>>> Similarly when External Mic is removed , it has to switch to
> >>>> internal dmic .
> >>>
> >>> An configuration example for UCM (DMIC connected to DSP, HDA codec
> >>> for rest):
> >>>
> >>> https://github.com/alsa-project/alsa-ucm-conf/tree/master/ucm2/sof-hda-dsp
> >>>
> >>> If you need a help to create a new configuration for your hardware,
> >>> show the output from the alsa-info.sh script, please.
> >>>
> >>> Jaroslav
> >>
> >> This audio design is a bit different from sof-hda-dsp, the dmic is on
> >> a standalone sound card. Please see the alsa-info.txt:
> >>
> >> https://pastebin.ubuntu.com/p/4kprhDZYbg/
> >
> > And that's an interesting case. Can we manage multiple cards in a
> > single UCM profile?
>
> Yes, it should work, but we need to extend pulseaudio to avoid
> fallback to the legacy ALSA profile when the "slave" soundcard is
> enumerated. PA should skip this card. We need to check if the empty
> UCM verb is supported.
I suppose it's not only about PA, but in general we need to define how
to deal with it. I can imagine to provide a UCM profile that is
mapped to some dummy ops for the slave card, for example.
> Also, UCM has ${CardId} substitution (for the master card config), but
> we need to address the slave, too. Perhaps, we should add something
> like ${GetCardIdByName:STRING[:INDEX]} where STRING may be the name of
> the soundcard (it will be 'acp') in this case. The INDEX may refer to
> multiple instances (INDEX = 0 first soundcard found).
FWIW, I see a similar requirement for the recent change in USB-audio
for Gigabyte Auros Master with AMD TRX40: it provides a front
headphone output from a separate card while other I/Os are served by
another card. It'd be handy if both can be combined.
thanks,
Takashi
prev parent reply other threads:[~2020-06-03 11:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-02 17:57 alsa-project alsa-ucm : Audio endpoint is not switching when external mic connected Mukunda, Vijendar
2020-06-02 19:39 ` Jaroslav Kysela
2020-06-03 0:36 ` Hui Wang
2020-06-03 9:34 ` Takashi Iwai
2020-06-03 10:32 ` Mukunda, Vijendar
2020-06-03 10:35 ` Takashi Iwai
2020-06-03 10:58 ` Mukunda, Vijendar
2020-06-03 12:58 ` Jaroslav Kysela
2020-06-04 4:54 ` Mukunda, Vijendar
2020-06-03 11:05 ` Jaroslav Kysela
2020-06-03 11:05 ` Jaroslav Kysela
2020-06-03 11:15 ` Takashi Iwai [this message]
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=s5h367ce6xo.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=Vijendar.Mukunda@amd.com \
--cc=alsa-devel@alsa-project.org \
--cc=hui.wang@canonical.com \
--cc=perex@perex.cz \
/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