How could this possible using ES8000?
Any experience on this? Please give me a hint.
Sound recording from HDMI input
Re: Sound recording from HDMI input
I think it's quite doable, but not so very easy. Unless there are some options in TDM which can be utilized for such task (small chance, I've never encountered anything like that in B/C-series top debug menus), I guess you'll need to hijack SPDIF RX and/or I2S IN kernel device drivers (relevant low-level code parts are usually in samdrv.ko).
Eg., in B650, it was possible to dump AC3/DD audio stream coming from HDMI ports from audio engine RAM buffer (E-series uses completely different audio DSP, but I believe it may be still possible). IRQ handlers in kernel drivers for SPDIF RX and I2S inputs are probably the best (not necesarily the easiest) places for implementing such hack.
HDMI audio formats are a little tricky, HDMI RX interfaces traditionally have two separate outputs for audio (compressed streams like AC3 are transmitted over spdif, and PCM/uncompressed audio over 3,4-channel I2S bus). In E8000 (Echo-P) HDMI RX interface is integrated into main SoC, but I suppose they still use two separate HDMI audio outputs internally.
Do you need to capture original quality (5.1/7.1-channels, 24bit and up etc.) audio in all possible formats, or will the downmixed/downsampled (2-channel, 48kHz) variant be good enough for your needs? If you don't care all that much about audio quality, there are some other possibilities. Especially in Echo-P models: if you somehow manage to get built-in AV encoder up & running, apart from reencoded audio stream, you should be able to capture 720p MP4 video from HDMI as well - quite as bonus
Eg., in B650, it was possible to dump AC3/DD audio stream coming from HDMI ports from audio engine RAM buffer (E-series uses completely different audio DSP, but I believe it may be still possible). IRQ handlers in kernel drivers for SPDIF RX and I2S inputs are probably the best (not necesarily the easiest) places for implementing such hack.
HDMI audio formats are a little tricky, HDMI RX interfaces traditionally have two separate outputs for audio (compressed streams like AC3 are transmitted over spdif, and PCM/uncompressed audio over 3,4-channel I2S bus). In E8000 (Echo-P) HDMI RX interface is integrated into main SoC, but I suppose they still use two separate HDMI audio outputs internally.
Do you need to capture original quality (5.1/7.1-channels, 24bit and up etc.) audio in all possible formats, or will the downmixed/downsampled (2-channel, 48kHz) variant be good enough for your needs? If you don't care all that much about audio quality, there are some other possibilities. Especially in Echo-P models: if you somehow manage to get built-in AV encoder up & running, apart from reencoded audio stream, you should be able to capture 720p MP4 video from HDMI as well - quite as bonus
