mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zhang Heng <zhangheng@kylinos.cn>
To: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.de>
Cc: tiwai@suse.com, linux-sound@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: Fwd: [PATCH] ALSA: hda/generic: Add mic autoswitch support for dyn_adc_switch mode
Date: Mon, 18 May 2026 15:03:15 +0800	[thread overview]
Message-ID: <5e30ba3c-10ef-45fa-888d-1ed72f2a2435@kylinos.cn> (raw)
In-Reply-To: <7698e8ba-974b-4bdd-a2ce-21a32e50c1de@perex.cz>

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

> It's more likely the app interpretation (PA/PW) rather than alsa-lib. 
> The "Input Source" means that there are more capture PCM devices and 
> those controls distinguish the input sources for them.
>
> It would be nice to see the 'amixer controls' output to see more 
> details what the driver exposes to the user space.
>
>                     Jaroslav
>
Thank you for your attention to this issue. This is the information from 
the problematic machine.

My colleague suspects it's because 'amixer scontrols' does not show a 
'capture source' similar to 'input source'. I'm not sure if that's the case.

[-- Attachment #2: controls.txt --]
[-- Type: text/plain, Size: 867 bytes --]

numid=16,iface=CARD,name='Front Headphone Jack'
numid=14,iface=CARD,name='Line Jack'
numid=15,iface=CARD,name='Line Out Jack'
numid=12,iface=CARD,name='Mic Jack'
numid=13,iface=CARD,name='Rear Mic Jack'
numid=11,iface=MIXER,name='Master Playback Switch'
numid=10,iface=MIXER,name='Master Playback Volume'
numid=4,iface=MIXER,name='Headphone Playback Switch'
numid=3,iface=MIXER,name='Headphone Playback Volume'
numid=19,iface=MIXER,name='PCM Playback Volume'
numid=2,iface=MIXER,name='Line Out Playback Switch'
numid=1,iface=MIXER,name='Line Out Playback Volume'
numid=7,iface=MIXER,name='Capture Source'
numid=9,iface=MIXER,name='Capture Switch'
numid=8,iface=MIXER,name='Capture Volume'
numid=5,iface=MIXER,name='Loopback Mixing'
numid=6,iface=MIXER,name='Auto-Mute Mode'
numid=18,iface=PCM,name='Capture Channel Map'
numid=17,iface=PCM,name='Playback Channel Map'

[-- Attachment #3: scontents.txt --]
[-- Type: text/plain, Size: 1833 bytes --]

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 80
  Mono: Playback 52 [65%] [-28.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 80
  Mono:
  Front Left: Playback 80 [100%] [0.00dB] [on]
  Front Right: Playback 80 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Line',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Line Out',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 80
  Mono:
  Front Left: Playback 0 [0%] [-80.00dB] [off]
  Front Right: Playback 0 [0%] [-80.00dB] [off]
Simple mixer control 'Mic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 80 [100%] [6.00dB] [on]
  Front Right: Capture 80 [100%] [6.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Rear Mic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]

[-- Attachment #4: scontrols.txt --]
[-- Type: text/plain, Size: 337 bytes --]

Simple mixer control 'Master',0
Simple mixer control 'Headphone',0
Simple mixer control 'PCM',0
Simple mixer control 'Line',0
Simple mixer control 'Line Out',0
Simple mixer control 'Mic',0
Simple mixer control 'Capture',0
Simple mixer control 'Auto-Mute Mode',0
Simple mixer control 'Loopback Mixing',0
Simple mixer control 'Rear Mic',0

  parent reply	other threads:[~2026-05-18  7:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5b215802-4c94-4f94-9cee-f8e497b31337@kylinos.cn>
2026-05-06  7:03 ` Zhang Heng
2026-05-07 15:05   ` Takashi Iwai
2026-05-08  2:21     ` Zhang Heng
2026-05-08  2:50       ` Zhang Heng
2026-05-15  9:24         ` Takashi Iwai
2026-05-15 11:19           ` Jaroslav Kysela
2026-05-15 11:29             ` Takashi Iwai
2026-05-18  7:03             ` Zhang Heng [this message]
2026-05-18  7:07             ` Zhang Heng

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=5e30ba3c-10ef-45fa-888d-1ed72f2a2435@kylinos.cn \
    --to=zhangheng@kylinos.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    --cc=tiwai@suse.de \
    /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

all inboxes | Powered by JetHome®