OpenELEC Testbuilds for RaspberryPi Part 3 (Kodi 14.0)
(2014-09-24, 13:32)plugh Wrote: Look at the last line of the release announcement post. That is what changed.

If it's not to much trouble, I'd appreciate you running a few more tests under the previous build?

1) play my sample with xbmc (with no asound config)
2) add the following asound config
Code:
pcm.!default {
    type plug
    slave {
        pcm {
        type hw
        card 0
        format S16_LE
        rate "unchanged"
        channels "unchanged"
}   }   }
3) now run aplay test(s) with '-D default', and xbmc tests

Note that you might have to experiment with the config file. Try aplay with it as shown; if aplay gives error, remove rate and channels lines. My expectation is you will get noise with test (1), and the (3) tests will all 'work'.

What that config file (should) do is give YOU control over what format the pcm data is delivered to the DAC. (FYI -the driver supports S16_LE, S24_LE, and S32_LE, except for the new build which disabled S24_LE again). The ALSA 'plug' plugin will do a format conversion to the format you specify in the config file if needed (you will see this step in the aplay -v output). You might also want to try S32_LE, which would preserve the resolution of 24 bit audio while (hopefully?) avoiding the problem causing the noise.

Regarding the noise problem - Your aplay test says it is not a driver or DAC problem. The problem is within xbmc (which test 1 should confirm). Interestingly, I stumbled across another case where s24_le data produces noise. Playing that sample on Windows with vlc also fails! Now, what does xbmc under Linux on a pi have in common with vlc under windows on a pc? ffmpeg/libav...

and Thank YOU for running the tests!

Hi,

all my test are done with Milhouse build #0922

1. destroyed sound in xbmc

3. with

Code:
pcm.!default {
    type plug
    slave {
        pcm {
        type hw
        card 0
        format S16_LE
        rate "unchanged"
        channels "unchanged"
}   }   }


i get destroyed sound in xbmc and with aplay i get the following output.

Code:
OpenELEC:~ # aplay -vv -D default /storage/music/s24_le.wav
ALSA lib /home/neil/projects/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/alsa-lib-1.0.28/src/pcm/pcm_hw.c:1707:(_snd_pcm_hw_open) Invalid type for rate
aplay: main:722: audio open error: Invalid argument
OpenELEC:~ #

With

Code:
pcm.!default {
    type plug
    slave {
        pcm {
        type hw
        card 0
        format S16_LE
}   }   }

i get destroyed sound in xbmc and with aplay i get the following output but no sound

Code:
OpenELEC:~ # aplay -vv -D default /storage/music/s24_le.wav
Playing WAVE '/storage/music/s24_le.wav' : Signed 24 bit Little Endian, Rate 8000 Hz, Stereo
aplay: set_params:1297: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S24_LE
SUBFORMAT:  STD
SAMPLE_BITS: 32
FRAME_BITS: 64
CHANNELS: 2
RATE: 8000
PERIOD_TIME: 125000
PERIOD_SIZE: 1000
PERIOD_BYTES: 8000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 4000
BUFFER_BYTES: 32000
TICK_TIME: 0
OpenELEC:~ #

With format S32_LE in "asound.conf" the some behavior like above.

PS: I did every time a restart after change the "asound.conf"
PPS: i hope you can read/understand my bad english Angel

Please let me know if i can test another thing for you.

Thank you

EDIT: I just played around with the asound.conf and i see its not necessary to reboot the Pi after i change something. After i renamed the file i was able to play your file again with aplay (no reboot). I think when i restart xbmc with 'systemctl restart xbmc' it use also the new asound.conf. Is that right?


Messages In This Thread
Re: RE: - by Mafarricos - 2014-06-04, 20:21
Live tv issues again - by pootler - 2014-06-04, 23:29
RE: OpenELEC Testbuilds for RaspberryPi Part 3, - by removed151214 - 2014-08-04, 23:38
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-08-19, 00:11
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-08-21, 20:42
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-22, 22:20
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-22, 22:34
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-22, 22:44
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-23, 01:12
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-23, 23:24
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-25, 01:38
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by BoBeRzE - 2014-09-24, 20:20
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-01, 18:12
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-01, 18:26
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-05, 01:07
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-11, 03:48
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-11, 04:06
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-11, 11:29
Logout Mark Read Team Forum Stats Members Help
OpenELEC Testbuilds for RaspberryPi Part 3 (Kodi 14.0)8