xbmc/xbmc — pull request #5682 by fritsch (2014-11-09 14:49:05+00:00)
Title: AE: Some fixes for the Cubox hardware

As I am currently starting to get all the needed cubox patches which are wide spread in repositories out there together back to mother xbmc. Those are the first non intrusive ones.

@Anssih: Please check Patch number 2 if it's really spec compliant

First patch is a direct result of the kernel driver which only returns such small periodSizes, so we should lower our "saneness" check to 96.

Kernel Code is here: https://github.com/SolidRun/linux-imx6-3.14/blob/95809682a2adcae950e01f3fbffe39704c0a6b23/sound/soc/fsl/imx-hdmi-dma.c
```
15:46:31 T:1948251200 INFO: CAESinkALSA::Initialize - Opened device "hdmi:CARD=imxhdmisoc,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"
15:46:31 T:1948251200 INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
15:46:31 T:1948251200 INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
15:46:31 T:1948251200 DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 128, bufferSize 9600
15:46:31 T:1948251200 DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 128, bufferSize 9600
15:46:31 T:1948251200 DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
15:46:31 T:1948251200 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 6 Output Channel Count: 6
15:46:31 T:1948251200 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR,FC,LFE,BL,BR
15:46:31 T:1948251200 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR,BL,BR,FC,LFE (ALSA: none)
15:46:31 T:1948251200 DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
15:46:31 T:1948251200 DEBUG: Output Device : imx-hdmi-soc
15:46:31 T:1948251200 DEBUG: Sample Rate : 48000
15:46:31 T:1948251200 DEBUG: Sample Format : AE_FMT_S24NE4
15:46:31 T:1948251200 DEBUG: Channel Count : 6
15:46:31 T:1948251200 DEBUG: Channel Layout: FL,FR,BL,BR,FC,LFE
15:46:31 T:1948251200 DEBUG: Frames : 128
15:46:31 T:1948251200 DEBUG: Frame Samples : 768
15:46:31 T:1948251200 DEBUG: Frame Size : 24
```

@FernetMenta: Are you okay with the Factory change? The factory tells buffer, but it's in deed the periodSize which is set there.