Go Back   Home > Forums > >

PC Based Computer music servers, crossovers, and equalization

2-in, 8-out DSP platform using the Raspberry Pi + HATs
2-in, 8-out DSP platform using the Raspberry Pi + HATs
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools
Old 21st October 2020, 10:36 PM   #111
katariat is offline katariat  United States
diyAudio Member
 
Join Date: Nov 2014
Thanks @CharlieLaub.

This might be another naÔve/ dumb question

the HAT (Suptronix 7.1 channel board) fits the RK3328 board like the pi. I know the HAT also has its own 5v power input and if I power the audio extractor HAT, the pi gets powered by it

in the case of the HAT + RK3288 board combo....if i power the RK3288 board, then i am guessing it will be able to power the audio extractor HAT...just wanted to confirm

Thanks
  Reply With Quote
Old 25th October 2020, 09:48 PM   #112
katariat is offline katariat  United States
diyAudio Member
 
Join Date: Nov 2014
Hi All,

been trying to tinker and hopefully i think i have made some progress. On my RK3288 SBC running Armbian Ubuntu desktop with the subtronics HAT (X6000) - ran the following

tdk@rock64:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: rockchiprk3328 [rockchip,rk3328], device 0: ff000000.i2s-i2s-hifi i2s-hifi-0 [ff000000.i2s-i2s-hifi i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: rockchiprk3328 [rockchip,rk3328], device 1: ff010000.i2s-rk3328-hifi ff410000.codec-1 [ff010000.i2s-rk3328-hifi ff410000.codec-1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: rockchiprk3328 [rockchip,rk3328], device 2: ff030000.spdif-dit-hifi dit-hifi-2 [ff030000.spdif-dit-hifi dit-hifi-2]
Subdevices: 1/1
Subdevice #0: subdevice #0

I guessed that hw0,0 might be the HDMI and when i run the dump params i get the following

tdk@rock64:~$ aplay -D hw:0,0 --dump-hw-params /dev/zero
Playing raw data '/dev/zero' : Unsigned 8 bit, Rate 8000 Hz, Mono
HW Params of device "hw:0,0":
--------------------
ACCESS: MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT: S16_LE S24_LE S32_LE
SUBFORMAT: STD
SAMPLE_BITS: [16 32]
FRAME_BITS: [32 256]
CHANNELS: [2 8]
RATE: [32000 192000]
PERIOD_TIME: (41 2048000]
PERIOD_SIZE: [8 65536]
PERIOD_BYTES: [256 1900800]
PERIODS: [2 16384]
BUFFER_TIME: (83 4096000]
BUFFER_SIZE: [16 131072]
BUFFER_BYTES: [256 524288]
TICK_TIME: ALL
--------------------
aplay: set_params:1299: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE

i see the channels as [2,8]...I am hoping that this is what we were trying to enable on the pi as well i.e get the HAT to play all 8 channels thru HDMI
  Reply With Quote
Old 27th October 2020, 12:50 AM   #113
gordoste is offline gordoste
diyAudio Member
 
Join Date: Jul 2020
Yes, my understanding is that the format of the parameter dump is [MIN MAX]

The stupid thing about the Pi is that all of the hardware supports 8 channels, but the driver is specifically written to have a maximum of 2 channels.

Last edited by gordoste; 27th October 2020 at 12:55 AM.
  Reply With Quote
Old 27th October 2020, 08:52 AM   #114
phofman is online now phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
8ch HDMI has been enabled in 5.4y kernel bcm2835-pcm.c: Support multichannel audio * raspberrypi/linux@9a47172 * GitHub . Should be part of the latest raspbian Raspberry Pi OS - Wikipedia Download Raspberry Pi OS for Raspberry Pi
  Reply With Quote
Old 27th October 2020, 12:54 PM   #115
gordoste is offline gordoste
diyAudio Member
 
Join Date: Jul 2020
Unfortunately while Model 3 Piís now work out of the box, the changes made so far donít add multichannel HDMI audio support for Model 4 Piís, go to page 10 of this thread for the necessary additional changes.
I commented on the commit and the committer replied maybe we can get this change into Raspbian.
  Reply With Quote
Old 27th October 2020, 02:53 PM   #116
phofman is online now phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
IMO either something like bcm2835-pcm: Fix up multichannel pcm audio by popcornmix * Pull Request #3933 * raspberrypi/linux * GitHub which requires recompiling the kernel, or using the enable_compat_alsa module param the other way than used in stock RPiX config e.g. linux/bcm2711-rpi-cm4.dts at 7fec469409de5a3af543043771f57ab70ddec2a4 * raspberrypi/linux * GitHub . Perhaps removing and loading the snd_bcm2835 module with module params 'enable_compat_alsa=1 enable_hdmi=0 enable_headphones=0' would fix the problem

Last edited by phofman; 27th October 2020 at 02:56 PM.
  Reply With Quote
Old 28th October 2020, 07:12 PM   #117
challenge is offline challenge
diyAudio Member
 
Join Date: Jul 2015
Hello, is anyone running it in a stable conf with raspy 4b?
I'm getting back at it after having just tried it one month ago.

I've modded the kernel and it detects and plays all the 8 channels, but I have a big issue now:
channel positions/mappings are swapping randomly.

I mean I run speaker-test or ecasound, I mark down the alsa numbers to real speaker mappings, I close it, re run right after and speakers are shuffled in another combination. e.g. 1 is not front left anymore for example etc
sometimes they are offset by one, like what on previous run was on 1, now becomes 2 etc, sometime seems more random?

raspy 4b, 7.1ch board
  Reply With Quote
Old Yesterday, 12:14 AM   #118
gordoste is offline gordoste
diyAudio Member
 
Join Date: Jul 2020
I don't think mine was doing that. I haven't fired it up for a while (working on other projects) but it is nearly time to start working on this again.
Are you just using alsa (no pulse/other stuff)? Try running speaker-test -s1 a few times to see if it varies.
  Reply to this post

Reply


2-in, 8-out DSP platform using the Raspberry Pi + HATsHide this!Advertise here!
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ES9018K2M, ES9028Q2M, 9038Q2M DSD/I2S DAC HATs for Raspberry Pi iancanada PC Based 922 4th July 2020 03:10 PM
Odroid, BBB, Raspberry Pi or MarsBoard, which platform to use for building a DYI SBT Eeerni Digital Line Level 8 12th October 2019 08:53 AM
Interest survey: Cow Town Audio Fest - Calgary, 2019 (cowboy hats optional) tomchr Clubs & Events 14 22nd October 2018 02:11 AM
Hats off to Mr Pass, encouragement to new members Russellc Pass Labs 10 17th May 2015 09:23 AM
Hats make better bass? xstephanx Subwoofers 11 9th February 2005 11:59 AM


New To Site? Need Help?

All times are GMT. The time now is 10:24 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright ©1999-2020 diyAudio
Wiki