Du bist nicht angemeldet.

#1 05.04.2020 10:52:16

wileE
Mitglied

Kein Sound über USB DAC

Ich bekomme bei meinem Thinkpad X380 Yoga mit einem Fostex HP-A3 USB DAC keinen Sound über das DAC.

Das Gerät wird erkannt und ich kann es im Kmixer auswählen, jedoch hat das keine Wirkung. Sound wird weiterhin über die integrierten Lautsprecher wiedergegeben.

Kann mir da jemand helfen?

Auszug aus dmesg:

 [  319.863588] usb 1-1: new full-speed USB device number 8 using xhci_hcd
[  320.036423] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[  320.036425] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[  320.036426] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[  320.036428] usb 1-1: config 1 has no interface number 2
[  320.042981] usb 1-1: New USB device found, idVendor=1019, idProduct=0103, bcdDevice= 0.01
[  320.042984] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  320.042986] usb 1-1: Product: 32bit DAC
[  320.042988] usb 1-1: Manufacturer: FOSTEX
[  320.053148] hid-generic 0003:1019:0103.0008: No inputs registered, leaving
[  320.053274] hid-generic 0003:1019:0103.0008: hidraw2: USB HID v1.00 Device [FOSTEX 32bit DAC] on usb-0000:00:14.0-1/input0
[  910.163500] audit: type=1130 audit(1586075271.883:58): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  910.163505] audit: type=1131 audit(1586075271.883:59): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-clean comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 1504.339992] usb 1-1: USB disconnect, device number 8
[ 1506.333531] usb 1-1: new full-speed USB device number 9 using xhci_hcd
[ 1506.504289] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[ 1506.504295] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[ 1506.504298] usb 1-1: config 1 has an invalid interface number: 3 but max is 2
[ 1506.504302] usb 1-1: config 1 has no interface number 2
[ 1506.511115] usb 1-1: New USB device found, idVendor=1019, idProduct=0103, bcdDevice= 0.01
[ 1506.511122] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1506.511126] usb 1-1: Product: 32bit DAC
[ 1506.511129] usb 1-1: Manufacturer: FOSTEX
[ 1506.521754] hid-generic 0003:1019:0103.0009: No inputs registered, leaving
[ 1506.521959] hid-generic 0003:1019:0103.0009: hidraw2: USB HID v1.00 Device [FOSTEX 32bit DAC] on usb-0000:00:14.0-1/input0
[ 1525.473879] audit: type=1100 audit(1586075887.199:60): pid=2535 uid=1000 auid=1000 ses=1 msg='op=PAM:authentication grantors=pam_unix,pam_permit acct="hopf" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 1525.474026] audit: type=1101 audit(1586075887.199:61): pid=2535 uid=1000 auid=1000 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="hopf" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 1525.474232] audit: type=1110 audit(1586075887.199:62): pid=2535 uid=0 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 1525.474870] audit: type=1105 audit(1586075887.199:63): pid=2535 uid=0 auid=1000 ses=1 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[hopf@X201arch ~]$ 
[hopf@X201arch ~]$ pacmd list-cards
2 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_00_1f.3>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xec448000 irq 151"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "9d71"
                device.product.name = "Sunrise Point-LP HD Audio"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Internes Audio"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Analog Stereo-Eingabe (priority 65, available: no)
                output:analog-stereo: Analog Stereo-Ausgabe (priority 6500, available: unknown)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)
                output:hdmi-stereo: Digital Stereo (HDMI)-Ausgabe (priority 5900, available: no)
                output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI)-Ausgabe + Analog Stereo-Eingabe (priority 5965, available: no)
                output:hdmi-surround: Digital Surround 5.1 (HDMI)-Ausgabe (priority 800, available: no)
                output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI)-Ausgabe + Analog Stereo-Eingabe (priority 865, available: no)
                output:hdmi-surround71: Digital Surround 7.1 (HDMI)-Ausgabe (priority 800, available: no)
                output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI)-Ausgabe + Analog Stereo-Eingabe (priority 865, available: no)
                output:hdmi-stereo-extra1: Digital Stereo (HDMI 2)-Ausgabe (priority 5700, available: no)
                output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2)-Ausgabe + Analog Stereo-Eingabe (priority 5765, available: no)
                output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2)-Ausgabe (priority 600, available: no)
                output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2)-Ausgabe + Analog Stereo-Eingabe (priority 665, available: no)
                output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2)-Ausgabe (priority 600, available: no)
                output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2)-Ausgabe + Analog Stereo-Eingabe (priority 665, available: no)
                output:hdmi-stereo-extra2: Digital Stereo (HDMI 3)-Ausgabe (priority 5700, available: no)
                output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3)-Ausgabe + Analog Stereo-Eingabe (priority 5765, available: no)
                output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3)-Ausgabe (priority 600, available: no)
                output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3)-Ausgabe + Analog Stereo-Eingabe (priority 665, available: no)
                output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3)-Ausgabe (priority 600, available: no)
                output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3)-Ausgabe + Analog Stereo-Eingabe (priority 665, available: no)
                output:hdmi-stereo-extra3: Digital Stereo (HDMI 4)-Ausgabe (priority 5700, available: no)
                output:hdmi-stereo-extra3+input:analog-stereo: Digital Stereo (HDMI 4)-Ausgabe + Analog Stereo-Eingabe (priority 5765, available: no)
                output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4)-Ausgabe (priority 600, available: no)
                output:hdmi-surround-extra3+input:analog-stereo: Digital Surround 5.1 (HDMI 4)-Ausgabe + Analog Stereo-Eingabe (priority 665, available: no)
                output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4)-Ausgabe (priority 600, available: no)
                output:hdmi-surround71-extra3+input:analog-stereo: Digital Surround 7.1 (HDMI 4)-Ausgabe + Analog Stereo-Eingabe (priority 665, available: no)
                output:hdmi-stereo-extra4: Digital Stereo (HDMI 5)-Ausgabe (priority 5700, available: no)
                output:hdmi-stereo-extra4+input:analog-stereo: Digital Stereo (HDMI 5)-Ausgabe + Analog Stereo-Eingabe (priority 5765, available: no)
                output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5)-Ausgabe (priority 600, available: no)
                output:hdmi-surround-extra4+input:analog-stereo: Digital Surround 5.1 (HDMI 5)-Ausgabe + Analog Stereo-Eingabe (priority 665, available: no)
                output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5)-Ausgabe (priority 600, available: no)
                output:hdmi-surround71-extra4+input:analog-stereo: Digital Surround 7.1 (HDMI 5)-Ausgabe + Analog Stereo-Eingabe (priority 665, available: no)
                off: Aus (priority 0, available: unknown)
        active profile: <output:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Internes Audio Analog Stereo
        sources:
                alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Internes Audio Analog Stereo
        ports:
                analog-input-mic: Mikrofon (priority 8700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output-speaker: Lautsprecher (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Kopfhörer (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
    index: 3
        name: <alsa_card.usb-FOSTEX_32bit_DAC-01>
        driver: <module-alsa-card.c>
        owner module: 29
        properties:
                alsa.card = "1"
                alsa.card_name = "32bit DAC"
                alsa.long_card_name = "FOSTEX 32bit DAC at usb-0000:00:14.0-1, full speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:00:14.0-usb-0:1:1.1"
                sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.1/sound/card1"
                udev.id = "usb-FOSTEX_32bit_DAC-01"
                device.bus = "usb"
                device.vendor.id = "1019"
                device.vendor.name = "Elitegroup Computer Systems (ECS)"
                device.product.id = "0103"
                device.product.name = "32bit DAC"
                device.serial = "FOSTEX_32bit_DAC"
                device.string = "1"
                device.description = "32bit DAC"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        profiles:
                output:analog-stereo: Analog Stereo-Ausgabe (priority 6500, available: unknown)
                output:iec958-stereo: Digital Stereo (IEC958)-Ausgabe (priority 5500, available: unknown)
                off: Aus (priority 0, available: unknown)
        active profile: <output:analog-stereo>
        sinks:
                alsa_output.usb-FOSTEX_32bit_DAC-01.analog-stereo/#3: 32bit DAC Analog Stereo
        sources:
                alsa_output.usb-FOSTEX_32bit_DAC-01.analog-stereo.monitor/#3: Monitor of 32bit DAC Analog Stereo
        ports:
                analog-output: Analoge Ausgabe (priority 9900, latency offset 0 usec, available: unknown)
                        properties:

                iec958-stereo-output: Digitalausgang (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:
[hopf@X201arch ~]$ pacmd list-sinks
2 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: (none)
        priority: 9039
        volume: front-left: 34742 /  53% / -16,54 dB,   front-right: 34742 /  53% / -16,54 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 66,62 ms
        max request: 12 KiB
        max rewind: 12 KiB
        monitor source: 0
        sample spec: s16le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 1
        configured latency: 66,67 ms; range is 0,50 .. 2000,00 ms
        card: 0 <alsa_card.pci-0000_00_1f.3>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "CX8200 Analog"
                alsa.id = "CX8200 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xec448000 irq 151"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "9d71"
                device.product.name = "Sunrise Point-LP HD Audio"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "384000"
                device.buffering.fragment_size = "192000"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Internes Audio Analog Stereo"
                alsa.mixer_name = "Conexant CX8200"
                alsa.components = "HDA:14f12008,17aa506d,00100103 HDA:8086280b,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Lautsprecher (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Kopfhörer (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-speaker>
    index: 3
        name: <alsa_output.usb-FOSTEX_32bit_DAC-01.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9049
        volume: front-left: 35466 /  54% / -16,00 dB,   front-right: 35466 /  54% / -16,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 3
        sample spec: s16le 2ch 96000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0RTS5229
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms
        card: 3 <alsa_card.usb-FOSTEX_32bit_DAC-01>
        module: 29
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "USB Audio"
                alsa.id = "USB Audio"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "32bit DAC"
                alsa.long_card_name = "FOSTEX 32bit DAC at usb-0000:00:14.0-1, full speed"
                alsa.driver_name = "snd_usb_audio"
                device.bus_path = "pci-0000:00:14.0-usb-0:1:1.1"
                sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.1/sound/card1"
                udev.id = "usb-FOSTEX_32bit_DAC-01"
                device.bus = "usb"
                device.vendor.id = "1019"
                device.vendor.name = "Elitegroup Computer Systems (ECS)"
                device.product.id = "0103"
                device.product.name = "32bit DAC"
                device.serial = "FOSTEX_32bit_DAC"
                device.string = "front:1"
                device.buffering.buffer_size = "768000"
                device.buffering.fragment_size = "384000"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "32bit DAC Analog Stereo"
                alsa.mixer_name = "USB Mixer"
                alsa.components = "USB1019:0103"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-usb"
        ports:
                analog-output: Analoge Ausgabe (priority 9900, latency offset 0 usec, available: unknown)
                        properties:

        active port: <analog-output>

EDIT

Das OS auf meinem X380 ist eine Kopie des arch auf meinem X250. Und auf meinem X250 funktioniert das DAC, auch mit den gleichen Fehlermeldungen in dmesg.

EDIT2

Mit

pactl set-default-sink alsa_output.usb-FOSTEX_32bit_DAC-01.analog-stereo

kann ich den Sound ins DAC leiten.

Um das permanent zu machen habe ich von hier ein script für HDMI abgeändert. https://askubuntu.com/a/509189

Regel angelegt

/etc/udev/rules.d/100-dac_sound.rules

Mit Inhalt

SUBSYSTEM=="drm", ACTION=="change", RUN+="/lib/udev/dac_sound_toggle.sh"

Inhalt der /lib/udev/dac_sound_toggle.sh

#!/bin/bash

DAC_STATUS=`cat /sys/class/drm/card0/*DAC*/status`
INPUTS=($(pacmd list-sink-inputs | grep index | awk '{print $2}'))
if [ $DAC_STATUS = "connected" ]
then
    pactl set-card-profile 0 output:analog-stereo
    pactl set-default-sink alsa_output.usb-FOSTEX_32bit_DAC-01.analog-stereo
    for i in ${INPUTS[*]}; do pacmd move-sink-input $i alsa_output.usb-FOSTEX_32bit_DAC-01.analog-stereo &> /dev/null; done
else
    pactl set-card-profile 0 output:analog-stereo
    pactl set-default-sink alsa_output.pci-0000_00_1f.3.analog-stereo
    for i in ${INPUTS[*]}; do pacmd move-sink-input $i alsa_output.pci-0000_00_1f.3.analog-stereo &> /dev/null; done
fi

Das funktioniert jetzt soweit. Das DAC muss aber eingesteckt sein wenn ich den Audiostream starte. Laufende Streams werden dann nicht ans DAC übergeben.

Woran mag das liegen?

Beitrag geändert von wileE (05.04.2020 19:26:01)

Offline

#2 21.05.2020 00:51:53

nudelholz
Gast

Re: Kein Sound über USB DAC

Hi,
bist du sicher, dass in deiner dac_sound_toggle.sh den move-sink-input anstatt set-default-sink brauchst?

ich hab mir vor einer gefühlten Ewigkeit ein bash-skript geschrieben, dass zwischen den Senken die default-Senke umschaltet. Vielleicht hilf es dir weiter:

#!/bin/bash

OLDDEFAULT=$(pacmd list-sinks | grep *\ index | sed 's/.*://g')
NUMBER_OF_SINKS=$(pacmd list-sinks  | sed -r 's/(.{1}).*/\1/;q')
VOLUME_DEFAULT_SINK=$(pamixer --get-volume)

j=$OLDDEFAULT

for ((i=0;i < $NUMBER_OF_SINKS;i++))
do
	((j++))
	if [[ $j -ne $NUMBER_OF_SINKS ]]
	then
		pacmd set-default-sink $j
	else
		j=0
		pacmd set-default-sink $j
	fi

	if [[ $j -ne $OLDDEFAULT ]]
	then
		pactl set-sink-volume $j 0%
		pactl set-sink-mute $j true
	else
		pactl set-sink-volume $j $VOLUME_DEFAULT_SINK%
		pactl set-sink-mute $j false
	fi
done

exit 0

Das skript kann bei mit eine audioausgabe zur laufzeit zwischen den Senken umschalten. Aber wie ich es von dir heraus gelesen habe, steckst du ein USB Digital2Analog-Converter ein, was dann die Augabe automatisch auf ihn schalten soll.

Prüfe auch mal wieviel senen du überhaupt hast, wenn es eingesteckt ist: pacmd list-sinks | grep inde
Ansonsten kann ich dir leider nicht weiterhelfen, mit udev-Regeln habe ich mich bisher nur sehr spärlich auseinander gesetzt.

Schnellantwort auf dieses Thema

Schreibe deinen Beitrag und versende ihn
Deine Antwort

Fußzeile des Forums