Új hozzászólás Aktív témák

  • korcsi

    veterán

    Sziasztok!

    Alsa-val kapcsolatban lenne szükségem segítségre.

    Ubuntu minimal szerverem van fájlmegosztás, médialejátszó (kodi) illetve TV (tvheadend) funkciókkal.
    Eddig 14.10-et használtam most telepítettem 15.10-et.
    A kezdeti nehézségeken túl vagyok, de egy dolog van amivel nem jutok előrébb.

    A digitális kimenetet használom.
    MPD-t (music player daemon) használok zene lejátszásra, illetve csak használnék mert nem találja alapértelmezetten a hang kimenetet, ez a régi rendszeren nem volt probléma, kodi csak addig "fogja" a kimenetet amíg van rajta tatalom, utána szólhat bármi.

    mpd.conf ide vonatkozó része:

    audio_output {
    type "alsa"
    name "My ALSA Device"
    # device "hw:0,0" # optional
    # mixer_type "hardware" # optional
    # mixer_device "default" # optional
    # mixer_control "PCM" # optional
    # mixer_index "0" # optional
    }

    aplay -l:
    aplay -l
    **** PLAYBACK hardvereszközeinek listája ****
    kártya 0: Generic [HD-Audio Generic], eszköz 0: ALC892 Analog [ALC892 Analog]
    Aleszközök: 1/1
    0 számú aleszköz: subdevice #0
    kártya 0: Generic [HD-Audio Generic], eszköz 1: ALC892 Digital [ALC892 Digital]
    Aleszközök: 1/1
    0 számú aleszköz: subdevice #0

    aplay -L:
    aplay -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    default:CARD=Generic
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
    sysdefault:CARD=Generic
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
    front:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    Front speakers
    surround21:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    2.1 Surround output to Front and Subwoofer speakers
    surround40:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
    surround41:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
    surround50:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
    surround51:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
    surround71:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
    iec958:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Digital
    IEC958 (S/PDIF) Digital Audio Output
    dmix:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    Direct sample mixing device
    dmix:CARD=Generic,DEV=1
    HD-Audio Generic, ALC892 Digital
    Direct sample mixing device
    dsnoop:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    Direct sample snooping device
    dsnoop:CARD=Generic,DEV=1
    HD-Audio Generic, ALC892 Digital
    Direct sample snooping device
    hw:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    Direct hardware device without any conversions
    hw:CARD=Generic,DEV=1
    HD-Audio Generic, ALC892 Digital
    Direct hardware device without any conversions
    plughw:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    Hardware device with all software conversions
    plughw:CARD=Generic,DEV=1
    HD-Audio Generic, ALC892 Digital
    Hardware device with all software conversions

    mpd.log egy play parancs hatására:

    Dec 22 16:33 : player: played "xxx.mp3"
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4739:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2267:(snd_pcm_open_noupdate) Unknown PCM default
    Dec 22 16:33 : alsa_output: Failed to open "My ALSA Device" [alsa]: Failed to open ALSA device "default": No such file or directory
    Dec 22 16:33 : output: Failed to open audio output
    Dec 22 16:33 : player: problems opening audio device while playing "xxx.mp3"

    Ami számomra érdekes, hogy "aplay *.wav" működik.
    Valószínűleg az asound.conf fájlt kellene szerkeszteni, de ehhez sehol nem találtam olyan jellegű leírást amivel szűkös szabadidőmben megbirkóznék és gyakorlatias módon bemutatná, hogy kell ezt a kérdést kezelni, pedig fel kell nőnöm a feladathoz, mert e mellé még be kellene üzemelnem egy usb-s bluetooth dongle-ra csatlakoztatott stereo bluetooth headset-et. Ugyanezen rendszeren 15.10-el grafikus felületen ezt már összehoztam.

    Válaszokat, tanácsokat előre is köszönöm!

Új hozzászólás Aktív témák