You are not logged in.

#1 2023-01-30 16:14:39

TheAirBlow
Member
Registered: 2022-07-05
Posts: 39

[Solved] I can't set input and output to be from different devices.

Hello, I use pulseaudio and I want output to be my headphones and input to be internal microphone as the micro in headphones is broken.
It still spits out sound from the headphones, although I set the port to be internal microphone. Unplugging the headphones fixed it.
Any way to work around this?

Last edited by TheAirBlow (2023-02-01 18:41:10)

Offline

#2 2023-01-30 16:40:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,054

Re: [Solved] I can't set input and output to be from different devices.

Can depend on internal wiring/flags, can you check/compare the mixer states running e.g.

amixer -c0

on the relevant card during headphones connected and not connected?

Offline

#3 2023-01-31 17:39:52

TheAirBlow
Member
Registered: 2022-07-05
Posts: 39

Re: [Solved] I can't set input and output to be from different devices.

V1del wrote:

Can depend on internal wiring/flags, can you check/compare the mixer states running e.g.

amixer -c0

on the relevant card during headphones connected and not connected?

Connected:
theairblow@theairblow > amixer -c0
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Disconnected:
theairblow@theairblow > amixer -c0
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Offline

#4 2023-01-31 19:05:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,054

Re: [Solved] I can't set input and output to be from different devices.

That's a hdmi device, adjust the 0 to whatever is the correct index seen in aplay -l

Maybe post all of

aplay -l
amixer -c$insertindexofcorrectcardhere$
pactl list cards
pactl list sinks
pactl list sources

in code tags

Last edited by V1del (2023-01-31 19:09:48)

Offline

#5 2023-02-01 13:06:27

TheAirBlow
Member
Registered: 2022-07-05
Posts: 39

Re: [Solved] I can't set input and output to be from different devices.

V1del wrote:

That's a hdmi device, adjust the 0 to whatever is the correct index seen in aplay -l

Maybe post all of

aplay -l
amixer -c$insertindexofcorrectcardhere$
pactl list cards
pactl list sinks
pactl list sources

in code tags

Disconnected:

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
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 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 63 [100%] [30.00dB] [on]
  Front Right: Capture 63 [100%] [30.00dB] [on]
Simple mixer control 'Headset Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]
Звуковая плата №0
        Имя: alsa_card.pci-0000_03_00.1
        Драйвер: module-alsa-card.c
        Модуль-владелец: 6
        Свойства:
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd07c8000 irq 46"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "15de"
                device.product.name = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"
                device.string = "0"
                device.description = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Профили:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (аудиоприёмников: 1, источников: 0, приоритет: 5900, доступен: нет)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (аудиоприёмников: 1, источников: 0, приоритет: 800, доступен: нет)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (аудиоприёмников: 1, источников: 0, приоритет: 800, доступен: нет)
                off: Off (аудиоприёмников: 0, источников: 0, приоритет: 0, доступен: да)
        Активный профиль: off
        Порты:
                hdmi-output-0: HDMI / DisplayPort (тип: HDMI, приоритет: 5900, смещение задержки: 0 мкс, недоступен)
                        Свойства:
                                device.icon_name = "video-display"
                        Входит в профиль(и): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71

Звуковая плата №1
        Имя: alsa_card.pci-0000_03_00.6
        Драйвер: module-alsa-card.c
        Модуль-владелец: 7
        Свойства:
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd07c0000 irq 47"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "1"
                device.description = "Family 17h/19h HD Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Профили:
                input:analog-stereo: Analog Stereo Input (аудиоприёмников: 0, источников: 1, приоритет: 32833, доступен: да)
                output:analog-stereo: Analog Stereo Output (аудиоприёмников: 1, источников: 0, приоритет: 39268, доступен: да)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (аудиоприёмников: 1, источников: 1, приоритет: 39333, доступен: да)
                off: Off (аудиоприёмников: 0, источников: 0, приоритет: 0, доступен: да)
        Активный профиль: output:analog-stereo+input:analog-stereo
        Порты:
                analog-input-internal-mic: Internal Microphone (тип: Микрофон, приоритет: 8900, смещение задержки: 0 мкс, доступность неясна)
                        Свойства:
                                device.icon_name = "audio-input-microphone"
                        Входит в профиль(и): input:analog-stereo, output:analog-stereo+input:analog-stereo
                analog-input-headset-mic: Headset Microphone (тип: Гарнитура, приоритет: 8800, смещение задержки: 0 мкс, группа доступности: Legacy 2, недоступен)
                        Свойства:
                                device.icon_name = "audio-input-microphone"
                        Входит в профиль(и): input:analog-stereo, output:analog-stereo+input:analog-stereo
                analog-output-speaker: Speakers (тип: Динамик, приоритет: 10000, смещение задержки: 0 мкс, доступность неясна)
                        Свойства:
                                device.icon_name = "audio-speakers"
                        Входит в профиль(и): output:analog-stereo, output:analog-stereo+input:analog-stereo
                analog-output-headphones: Headphones (тип: Наушники, приоритет: 9900, смещение задержки: 0 мкс, группа доступности: Legacy 2, недоступен)
                        Свойства:
                                device.icon_name = "audio-headphones"
                        Входит в профиль(и): output:analog-stereo, output:analog-stereo+input:analog-stereo
Аудиоприёмник №0
        Состояние: SUSPENDED
        Имя: alsa_output.pci-0000_03_00.6.analog-stereo
        Описание: Family 17h/19h HD Audio Controller Analog Stereo
        Драйвер: module-alsa-card.c
        Спецификация отсчётов: s16le 2-канальный 4410
        Схема каналов: front-left,front-right
        Модуль-владелец: 7
        Звук выключен: да
        Громкость: front-left: 0 /   0% / -inf dB,   front-right: 0 /   0% / -inf dB
                баланс 0.00
        Базовая громкость: 65536 / 100% / 0.00 dB
        Мониторный источник: alsa_output.pci-0000_03_00.6.analog-stereo.monitor
        Задержка: 0 мкс, настроено на 0 мкс
        Флаги: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Свойства:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC257 Analog"
                alsa.id = "ALC257 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd07c0000 irq 47"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "front:1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Family 17h/19h HD Audio Controller Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Порты:
                analog-output-speaker: Speakers (тип: Динамик, приоритет: 10000, доступность неясна)
                analog-output-headphones: Headphones (тип: Наушники, приоритет: 9900, группа доступности: Legacy 2, недоступен)
        Активный порт: analog-output-speaker
        Форматы:
                pcm
Источник №0
        Состояние: SUSPENDED
        Имя: alsa_output.pci-0000_03_00.6.analog-stereo.monitor
        Описание: Monitor of Family 17h/19h HD Audio Controller Analog Stereo
        Драйвер: module-alsa-card.c
        Спецификация отсчётов: s16le 2-канальный 4410
        Схема каналов: front-left,front-right
        Модуль-владелец: 7
        Звук выключен: нет
        Громкость: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                баланс 0.00
        Базовая громкость: 65536 / 100% / 0.00 dB
        Является монитором аудиоприёмника: alsa_output.pci-0000_03_00.6.analog-stereo
        Задержка: 0 мкс, настроено на 0 мкс
        Флаги: DECIBEL_VOLUME LATENCY 
        Свойства:
                device.description = "Monitor of Family 17h/19h HD Audio Controller Analog Stereo"
                device.class = "monitor"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd07c0000 irq 47"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "1"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Форматы:
                pcm

Источник №1
        Состояние: SUSPENDED
        Имя: alsa_input.pci-0000_03_00.6.analog-stereo
        Описание: Family 17h/19h HD Audio Controller Analog Stereo
        Драйвер: module-alsa-card.c
        Спецификация отсчётов: s16le 2-канальный 4410
        Схема каналов: front-left,front-right
        Модуль-владелец: 7
        Звук выключен: нет
        Громкость: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                баланс 0.00
        Базовая громкость: 6554 /  10% / -60.00 dB
        Является монитором аудиоприёмника: н/д
        Задержка: 0 мкс, настроено на 0 мкс
        Флаги: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Свойства:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC257 Analog"
                alsa.id = "ALC257 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd07c0000 irq 47"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "front:1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Family 17h/19h HD Audio Controller Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Порты:
                analog-input-internal-mic: Internal Microphone (тип: Микрофон, приоритет: 8900, доступность неясна)
                analog-input-headset-mic: Headset Microphone (тип: Гарнитура, приоритет: 8800, группа доступности: Legacy 2, недоступен)
        Активный порт: analog-input-internal-mic
        Форматы:
                pcm

Connected:

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 39 [45%] [-36.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
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 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 63 [100%] [30.00dB] [on]
  Front Right: Capture 63 [100%] [30.00dB] [on]
Simple mixer control 'Headset Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Звуковая плата №0
        Имя: alsa_card.pci-0000_03_00.1
        Драйвер: module-alsa-card.c
        Модуль-владелец: 6
        Свойства:
                alsa.card = "0"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd07c8000 irq 46"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "15de"
                device.product.name = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"
                device.string = "0"
                device.description = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Профили:
                output:hdmi-stereo: Digital Stereo (HDMI) Output (аудиоприёмников: 1, источников: 0, приоритет: 5900, доступен: нет)
                output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (аудиоприёмников: 1, источников: 0, приоритет: 800, доступен: нет)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (аудиоприёмников: 1, источников: 0, приоритет: 800, доступен: нет)
                off: Off (аудиоприёмников: 0, источников: 0, приоритет: 0, доступен: да)
        Активный профиль: off
        Порты:
                hdmi-output-0: HDMI / DisplayPort (тип: HDMI, приоритет: 5900, смещение задержки: 0 мкс, недоступен)
                        Свойства:
                                device.icon_name = "video-display"
                        Входит в профиль(и): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71

Звуковая плата №1
        Имя: alsa_card.pci-0000_03_00.6
        Драйвер: module-alsa-card.c
        Модуль-владелец: 7
        Свойства:
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd07c0000 irq 47"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "1"
                device.description = "Family 17h/19h HD Audio Controller"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Профили:
                input:analog-stereo: Analog Stereo Input (аудиоприёмников: 0, источников: 1, приоритет: 32833, доступен: да)
                output:analog-stereo: Analog Stereo Output (аудиоприёмников: 1, источников: 0, приоритет: 39268, доступен: да)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (аудиоприёмников: 1, источников: 1, приоритет: 39333, доступен: да)
                off: Off (аудиоприёмников: 0, источников: 0, приоритет: 0, доступен: да)
        Активный профиль: output:analog-stereo+input:analog-stereo
        Порты:
                analog-input-internal-mic: Internal Microphone (тип: Микрофон, приоритет: 8900, смещение задержки: 0 мкс, доступность неясна)
                        Свойства:
                                device.icon_name = "audio-input-microphone"
                        Входит в профиль(и): input:analog-stereo, output:analog-stereo+input:analog-stereo
                analog-input-headset-mic: Headset Microphone (тип: Гарнитура, приоритет: 8800, смещение задержки: 0 мкс, группа доступности: Legacy 2, доступен)
                        Свойства:
                                device.icon_name = "audio-input-microphone"
                        Входит в профиль(и): input:analog-stereo, output:analog-stereo+input:analog-stereo
                analog-output-speaker: Speakers (тип: Динамик, приоритет: 10000, смещение задержки: 0 мкс, недоступен)
                        Свойства:
                                device.icon_name = "audio-speakers"
                        Входит в профиль(и): output:analog-stereo, output:analog-stereo+input:analog-stereo
                analog-output-headphones: Headphones (тип: Наушники, приоритет: 9900, смещение задержки: 0 мкс, группа доступности: Legacy 2, доступность неясна)
                        Свойства:
                                device.icon_name = "audio-headphones"
                        Входит в профиль(и): output:analog-stereo, output:analog-stereo+input:analog-stereo
Аудиоприёмник №0
        Состояние: SUSPENDED
        Имя: alsa_output.pci-0000_03_00.6.analog-stereo
        Описание: Family 17h/19h HD Audio Controller Analog Stereo
        Драйвер: module-alsa-card.c
        Спецификация отсчётов: s16le 2-канальный 4410
        Схема каналов: front-left,front-right
        Модуль-владелец: 7
        Звук выключен: нет
        Громкость: front-left: 16384 /  25% / -36.12 dB,   front-right: 16384 /  25% / -36.12 dB
                баланс 0.00
        Базовая громкость: 65536 / 100% / 0.00 dB
        Мониторный источник: alsa_output.pci-0000_03_00.6.analog-stereo.monitor
        Задержка: 0 мкс, настроено на 0 мкс
        Флаги: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Свойства:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC257 Analog"
                alsa.id = "ALC257 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd07c0000 irq 47"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "front:1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Family 17h/19h HD Audio Controller Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Порты:
                analog-output-speaker: Speakers (тип: Динамик, приоритет: 10000, недоступен)
                analog-output-headphones: Headphones (тип: Наушники, приоритет: 9900, группа доступности: Legacy 2, доступность неясна)
        Активный порт: analog-output-headphones
        Форматы:
                pcm
Источник №0
        Состояние: SUSPENDED
        Имя: alsa_output.pci-0000_03_00.6.analog-stereo.monitor
        Описание: Monitor of Family 17h/19h HD Audio Controller Analog Stereo
        Драйвер: module-alsa-card.c
        Спецификация отсчётов: s16le 2-канальный 4410
        Схема каналов: front-left,front-right
        Модуль-владелец: 7
        Звук выключен: нет
        Громкость: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                баланс 0.00
        Базовая громкость: 65536 / 100% / 0.00 dB
        Является монитором аудиоприёмника: alsa_output.pci-0000_03_00.6.analog-stereo
        Задержка: 0 мкс, настроено на 0 мкс
        Флаги: DECIBEL_VOLUME LATENCY 
        Свойства:
                device.description = "Monitor of Family 17h/19h HD Audio Controller Analog Stereo"
                device.class = "monitor"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd07c0000 irq 47"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "1"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Форматы:
                pcm

Источник №1
        Состояние: SUSPENDED
        Имя: alsa_input.pci-0000_03_00.6.analog-stereo
        Описание: Family 17h/19h HD Audio Controller Analog Stereo
        Драйвер: module-alsa-card.c
        Спецификация отсчётов: s16le 2-канальный 4410
        Схема каналов: front-left,front-right
        Модуль-владелец: 7
        Звук выключен: нет
        Громкость: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                баланс 0.00
        Базовая громкость: 6554 /  10% / -60.00 dB
        Является монитором аудиоприёмника: н/д
        Задержка: 0 мкс, настроено на 0 мкс
        Флаги: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
        Свойства:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC257 Analog"
                alsa.id = "ALC257 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd07c0000 irq 47"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:03:00.6"
                sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
                device.bus = "pci"
                device.vendor.id = "1022"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
                device.product.id = "15e3"
                device.product.name = "Family 17h/19h HD Audio Controller"
                device.string = "front:1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Family 17h/19h HD Audio Controller Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Порты:
                analog-input-internal-mic: Internal Microphone (тип: Микрофон, приоритет: 8900, доступность неясна)
                analog-input-headset-mic: Headset Microphone (тип: Гарнитура, приоритет: 8800, группа доступности: Legacy 2, доступен)
        Активный порт: analog-input-headset-mic
        Форматы:
                pcm

Offline

#6 2023-02-01 13:39:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,054

Re: [Solved] I can't set input and output to be from different devices.

No logical control on the codec side which complicates things as this likely means "connection" to the internal mic is simply cut off on the HW/firmware side. You can only fix this by adjusting lower level logic with maybe model/codec hints or hdajackretask or so. From looking at the model list [1] i'd try

options snd_hda_intel model=auto,headset-mode-no-hp-mic

in e.g. /etc/modprobe.d/disableHPMic.conf , alternatively (don't do both of those at the same time)  from the hints list [2] i'd try hp_mic_detect=false and/or add_hp_mic=false


[1]https://docs.kernel.org/sound/hd-audio/ … xxx-models
[2]https://docs.kernel.org/sound/hd-audio/ … figuration

Offline

#7 2023-02-01 14:51:37

TheAirBlow
Member
Registered: 2022-07-05
Posts: 39

Re: [Solved] I can't set input and output to be from different devices.

V1del wrote:

No logical control on the codec side which complicates things as this likely means "connection" to the internal mic is simply cut off on the HW/firmware side. You can only fix this by adjusting lower level logic with maybe model/codec hints or hdajackretask or so. From looking at the model list [1] i'd try

options snd_hda_intel model=auto,headset-mode-no-hp-mic

in e.g. /etc/modprobe.d/disableHPMic.conf , alternatively (don't do both of those at the same time)  from the hints list [2] i'd try hp_mic_detect=false and/or add_hp_mic=false


[1]https://docs.kernel.org/sound/hd-audio/ … xxx-models
[2]https://docs.kernel.org/sound/hd-audio/ … figuration

The module options didn't work. I can't try the second method though; I can't find the way to do it. I easily found how the modprobe config works, but not module hints. How to do it?

Offline

#8 2023-02-01 15:22:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,054

Re: [Solved] I can't set input and output to be from different devices.

You did reboot after creating the file, right?

For the module hints you need to disable anything currently accessing the device, echo the hints you want to apply to the appropriate hints file for the codec and reload the codec configuration and resuming playback/restarting sound applications, e.g. 

systemctl --user mask pulseaudio --now
sudo fuser -v /dev/snd/* #Verify nothing is currently using the audio devices
echo "hp_mic_detect = false" | sudo tee /sys/class/sound/hwC1D0/hints #Again double check here, this is based on the output above but C1 is card 1 and D0 device 0
echo 1 | sudo tee /sys/class/sound/hwC1D0/reconfig
systemctl --user unmask pulseaudio --now

and recheck after the last step whether the behaviour is correct now, as mentioned some other hints you could pipe are add_hp_mic = false, auto_mic = false, line_in_auto_switch = false (you'll have to repeat the process above for each of them, afaik you can also try multiple hints here. The third option would be installing and checking in hdajackretask which should provide a GUI for most of these codec settings.

Last edited by V1del (2023-02-01 15:23:42)

Offline

#9 2023-02-01 18:26:07

TheAirBlow
Member
Registered: 2022-07-05
Posts: 39

Re: [Solved] I can't set input and output to be from different devices.

V1del wrote:

You did reboot after creating the file, right?

For the module hints you need to disable anything currently accessing the device, echo the hints you want to apply to the appropriate hints file for the codec and reload the codec configuration and resuming playback/restarting sound applications, e.g. 

systemctl --user mask pulseaudio --now
sudo fuser -v /dev/snd/* #Verify nothing is currently using the audio devices
echo "hp_mic_detect = false" | sudo tee /sys/class/sound/hwC1D0/hints #Again double check here, this is based on the output above but C1 is card 1 and D0 device 0
echo 1 | sudo tee /sys/class/sound/hwC1D0/reconfig
systemctl --user unmask pulseaudio --now

and recheck after the last step whether the behaviour is correct now, as mentioned some other hints you could pipe are add_hp_mic = false, auto_mic = false, line_in_auto_switch = false (you'll have to repeat the process above for each of them, afaik you can also try multiple hints here. The third option would be installing and checking in hdajackretask which should provide a GUI for most of these codec settings.

Yes, I did reboot the laptop.

In any case, auto_mic = false worked successfully. Is the hint persisted across reboots?

Offline

#10 2023-02-01 20:09:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,054

Re: [Solved] I can't set input and output to be from different devices.

No, but knowing it worked you can create a config file that is.  https://docs.kernel.org/sound/hd-audio/ … y-patching That should contain the codec designation and a [hint] section with the hint that worked and then you can load that in modprobe.d the codec information for your device can be found under /proc/asound/cards: https://docs.kernel.org/sound/hd-audio/ … -proc-file

Alternatively make a systemd service or so depending on sound.target and a script that runs the piping/reconfig dance before pulseaudio grabs the device.

Offline

Board footer

Powered by FluxBB