Posts by SyntaXErroR

    So, I achieved to create new ALSA device : new plug using new route (8 channels mapped to 2) using existing HW, namely the Amp.

    It seems properly detected as 8 channels device :

    22:10:33.912 T:139735173458048 NOTICE: Device 1

    22:10:33.912 T:139735173458048 NOTICE: m_deviceName : CustomDmix

    22:10:33.912 T:139735173458048 NOTICE: m_displayName : HD-AMP1 ()

    22:10:33.912 T:139735173458048 NOTICE: m_displayNameExtra: Analog

    22:10:33.912 T:139735173458048 NOTICE: m_deviceType : AE_DEVTYPE_PCM

    22:10:33.912 T:139735173458048 NOTICE: m_channels : FL, FR, BL, BR, FC, LFE, SL, SR

    22:10:33.912 T:139735173458048 NOTICE: m_sampleRates : 44100,48000,88200,96000,176400,192000,384000

    22:10:33.912 T:139735173458048 NOTICE: m_dataFormats : AE_FMT_S32NE

    22:10:33.912 T:139735173458048 NOTICE: m_streamTypes : No passthrough capabilities

    It can be selected as an audio output into Kodi settings, where I've also set number of channels to 7.1

    BUT audio test files in Kodi, or speaker-test -D CustomDmix -c 8 -t sine seems to keep using only 2 channels :

    Time per period = 21.848475

    0 - Front Left

    2 - Front Left

    4 - Front Left

    5 - Front Left

    6 - Front Left

    7 - Front Left

    3 - Front Right

    1 - Unused

    keep digging

    Thanks Chewitt, I feared that answer, now I feel like I need to use a tank to blow a mosquito...

    I'm not familiar with Kodi/LE audio processing architechture, what is ActiveAE reponsible for (Kodi audio processing ?) and what's Alsa responsible for (Driver layer ?).

    Is there a chance if I persist with custom asound.conf ?

    As I understand I need to create new virtual slave device, creat new channel's route using that device. I then expect to have this new route/device available as an output into kodi, but nothing show up, still the same old output device list (HDMI, AMP Analog, AMP iec958).

    I use a 2.0 audio amp pluged to my NUC's USB port with LE dev build 921 (generic).

    I really whish I could tweak the way movie's audio (5.1, 7.1, etc.) is downmixed to output speakers config, mainly adding some LFE (currently discarded) and playing with surround phase and levels.

    Unfortunatly I can't find solution for that,

    As I understand AudioDSP seems in between life and death and not included anymore. I've tried tweaking asound.conf with type route and ttables with no success and I've read about adding code to ActiveAEResampleFFMPEG.cpp (av_opt_set_double(m_pContext, "lfe_mix_level", 1.0, 0)but I can't even find that file in LE.

    Is there any proper way to achieve that ?

    thanks

    deleted old samba.conf,

    updated to LE 8.1.1,

    created new samba.conf based on new sample,

    set local master browser to no.

    Almost everything is fine except one thing : when searching for available smb source on LAN, Kodi can't find any share

    (despite no issue with the NAS share that was already setup as source)

    Thanks but I just got it fully working now, from 44.1 up to 384Khz. (incl. 352.8 Khz)

    And guess how ? by applying exact same solution I suggested 3 years ago on openelec when I had crackling sound issue with a previous DAC !

    I just remebered and found my old post, here it is if it helps ("Ykar"'s post #9).

    OpenELEC Mediacenter - OpenELEC Forum - USB DAC - OE 4.0 resamples everything to 48kHz? (1/1)

    But in short, asound.conf with below content, and selecting the "new" available audio output in Kodi audio settings.

    pcm.device{
    type hw

    card 2
    device 0

    }
    pcm.!default{

    type plug

    slave.pcm "device"

    }

    Well, no.

    Result of aplay -L provides my with 2 relevant output :

    default:CARD=HDAMP1

    HD-AMP1, USB Audio

    Default Audio Device


    iec958:CARD=HDAMP1,DEV=0

    HD-AMP1, USB Audio

    IEC958 (S/PDIF) Digital Audio Output

    speaker-test -D default:CARD=HDAMP1 plays everything at 48khz for -r <= 192000 and then fails to play for -r >192000 (error message above)

    speaker-test -D iec958:CARD=HDAMP1 fails to play, whatever -r value

    got it working : "default:CARD=HDAMP1"

    Below is the error message for 384Khz

    but something else is wrong since I also tried successfully with -r 192000 but DAC/AMP is receiving 48Khz

    384 :

    NUCLibreELEC:~ # speaker-test -D default:CARD=HDAMP1 -c 2 -r 384000 -t sine


    speaker-test 1.1.2


    Playback device is default:CARD=HDAMP1

    Stream parameters are 384000Hz, S16_LE, 2 channels

    Sine wave rate is 440.0000Hz

    Rate set to 384000Hz (requested 384000Hz)

    Buffer size range from 16384 to 131072

    Period size range from 8191 to 8193

    Using max buffer size 131072

    Periods = 4

    Unable to set hw params for playback: Invalid argument

    Setting of hwparams failed: Invalid argument

    192 :

    NUCLibreELEC:~ # speaker-test -D default:CARD=HDAMP1 -c 2 -r 192000 -t sine


    speaker-test 1.1.2


    Playback device is default:CARD=HDAMP1

    Stream parameters are 192000Hz, S16_LE, 2 channels

    Sine wave rate is 440.0000Hz

    Rate set to 192000Hz (requested 192000Hz)

    Buffer size range from 8192 to 65536

    Period size range from 4095 to 4097

    Using max buffer size 65536

    Periods = 4

    was set period_size = 4096

    was set buffer_size = 65536

    0 - Front Left

    1 - Front Right

    Time per period = 5.676804

    0 - Front Left

    1 - Front Right

    Time per period = 5.973334

    0 - Front Left

    Thanks Irusak,

    seems there is something wrong with some command parameters, tried several other options (not pasted below) but no success :

    NUCLibreELEC:~ # speaker-test -D iec958:CARD=HDAMP1,DEV=0 -c 2 -r 384000 -t sine


    speaker-test 1.1.2


    Playback device is iec958:CARD=HDAMP1,DEV=0

    Stream parameters are 384000Hz, S16_LE, 2 channels

    Sine wave rate is 440.0000Hz

    Sample format not available for playback: Invalid argument

    Setting of hwparams failed: Invalid argument


    NUCLibreELEC:~ # speaker-test -D iec958:CARD=HDAMP1,DEV=0 -c 2 -r 48000 -t sine


    speaker-test 1.1.2


    Playback device is iec958:CARD=HDAMP1,DEV=0

    Stream parameters are 48000Hz, S16_LE, 2 channels

    Sine wave rate is 440.0000Hz

    Sample format not available for playback: Invalid argument

    Setting of hwparams failed: Invalid argument