Newbie Issue w/ I2S Card(s)

Raspberry Pi related support

Newbie Issue w/ I2S Card(s)

Postby eea123 » 22 Apr 2018, 16:38

I'm on my second unsuccessful attempt to get an I2S unit going with a Model 2B Pi. I am able to run Rune on the unit with headphone outs but couldn't get my first soldered I2S card to work and now a second GPIO pinned board. I've changed back and forth between HiFi Berry DAC and Analog Out (Current Setting with Headphone to RCA). Everything else is working like a charm, just would like to step up the audio a notch.
eea123
 
Posts: 155
Joined: 23 Dec 2017, 19:19

Re: Newbie Issue w/ I2S Card(s)

Postby janui » 23 Apr 2018, 00:48

Hi eea123,
This setup will work fine, but the solution depends on the image which you are using. Could you post your debug or at least the first 30 lines or so from the debug screen.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Newbie Issue w/ I2S Card(s)

Postby eea123 » 23 Apr 2018, 01:43

janui wrote:Hi eea123,
This setup will work fine, but the solution depends on the image which you are using. Could you post your debug or at least the first 30 lines or so from the debug screen.
janui


Will do shortly. Thanks.
eea123
 
Posts: 155
Joined: 23 Dec 2017, 19:19

Re: Newbie Issue w/ I2S Card(s)

Postby eea123 » 23 Apr 2018, 11:29

Below is the following from a PuTTY session. I thought I had edited this on the SD card from the PC, but it does look like it is still REM'd out (#'d out "?"). I have some old basic DOS editing experience, but this is pretty much new turf.


login as: root
root@10.0.0.17's password:
=============== RuneOS distribution ===============
____ _ _ _
| _ \ _ _ _ __ ___ / \ _ _ __| (_) ___
| |_) | | | | '_ \ / _ \ / _ \| | | |/ _` | |/ _ \
| _ <| |_| | | | | __// ___ \ |_| | (_| | | (_) |
|_| \_\\__,_|_| |_|\___/_/ \_\__,_|\__,_|_|\___/

================ http://www.runeaudio.com ================
RuneOs: 0.3-beta
RuneUI: 1.3-beta
Hw-env: RaspberryPi 2


Last login: Mon Apr 23 04:53:53 2018 from 10.0.0.113
[root@runeaudio ~]# # nano /boot/config.txt
[root@runeaudio ~]# nano /boot/config.txt
GNU nano 2.5.3 File: /boot/config.txt Modified

# (default "off")
# i2c_vc Set to "on" to enable the i2c interface
# usually reserved for the VideoCore processor
# (default "off")
# i2c_arm_baudrate Set the baudrate of the ARM's i2c interface
# (default "100000")
# i2c_vc_baudrate Set the baudrate of the VideoCore i2c interface
# (default "100000")
# i2c_baudrate An alias for i2c_arm_baudrate
# i2s Set to "on" to enable the i2s interface
# (default "off")
# spi Set to "on" to enable the spi interfaces
# (default "off")
# act_led_trigger Choose which activity the LED tracks.
# Use "heartbeat" for a nice load indicator.
# (default "mmc")
# act_led_activelow Set to "on" to invert the sense of the LED
# (default "off")
# act_led_gpio Set which GPIO pin to use for the activity LED
# (in case you want to connect it to an external
# device)
# (default "16" on a non-Plus board, "47" on a
# Plus or Pi 2)
# N.B. It is recommended to only enable those interfaces that are needed.
# Leaving all interfaces enabled can lead to unwanted behaviour (i2c_vc
# interfering with Pi Camera, I2S and SPI hogging GPIO pins, etc.)
# Note also that i2c, i2c_arm and i2c_vc are aliases for the physical
# interfaces i2c0 and i2c1. Use of the numeric variants is still possible
# but deprecated because the ARM/VC assignments differ between board
# revisions. The same board-specific mapping applies to i2c_baudrate,
# and the other i2c baudrate parameters.

#dtparam=i2c_arm=on
#dtparam=i2c_vc=on
#dtparam=i2s=on
#dtparam=spi=on
#dtparam=act_led_trigger=mmc

#dtparam=uart1=off
#dtoverlay=pi3-disable-bt-overlay
# Uncomment some or all of these to enable the optional hardware interfaces# Uncomment some or all of these to enable the optional hardware interfaces
# Params:
# i2c_arm Set to "on" to enable the ARM's i2c interface
# (default "off")
# i2c_vc Set to "on" to enable the i2c interface
# usually reserved for the VideoCore processor
# (default "off")
# i2c_arm_baudrate Set the baudrate of the ARM's i2c interface
# (default "100000")
# i2c_vc_baudrate Set the baudrate of the VideoCore i2c interface
# (default "100000")
# i2c_baudrate An alias for i2c_arm_baudrate
# i2s Set to "on" to enable the i2s interface
# (default "off")
# spi Set to "on" to enable the spi interfaces
# (default "off")
# act_led_trigger Choose which activity the LED tracks.
# Use "heartbeat" for a nice load indicator.
eea123
 
Posts: 155
Joined: 23 Dec 2017, 19:19

Re: Newbie Issue w/ I2S Card(s)

Postby janui » 23 Apr 2018, 19:13

Hi eea123,
I still can't see exactly which version of rune you are using. To help, I really need to see a copy of the first 30 lines or so which are shown in the normal user interface when you select the Debug menu.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Newbie Issue w/ I2S Card(s)

Postby eea123 » 23 Apr 2018, 23:23

janui wrote:Hi eea123,
I still can't see exactly which version of rune you are using. To help, I really need to see a copy of the first 30 lines or so which are shown in the normal user interface when you select the Debug menu.
janui


Sorry, senior moment.

I just realized this was thru the Rune Audio software itself. Here I'm trying to wrestle with PuTTY and Linux line commands :).



###### System info ######
Linux version 4.1.20-1-ARCH (builduser@leming) (gcc version 5.3.0 (GCC) ) #1 SMP Sat Mar 19 20:07:23 MDT 2016

system time: Thu Apr 12 18:18:45 CDT 2018

system load: 0.75 0.28 0.10 1/150 748

HW platform: RaspberryPi2 (08)

playerID: 08b26fff2ac4ddac6fee7fbbc1890504ae


###### System load statistics (procinfo -H) ######
Memory: Total Used Free Buffers
RAM: 922.67MiB 213.79MiB 708.88MiB 16.07MiB
Swap: 0.00B 0.00B 0.00B

Bootup: Thu Apr 12 18:16:59 2018 Load average: 0.75 0.28 0.10 2/152 750

user : 00:00:08.81 2.1% page in : 126001
nice : 00:00:02.31 0.6% page out: 792
system: 00:00:11.95 2.9% page act: 10053
IOwait: 00:00:12.94 3.1% page dea: 0
hw irq: 00:00:00.00 0.0% page flt: 121707
sw irq: 00:00:00.34 0.1% swap in : 0
idle : 00:06:22.61 91.3% swap out: 0
uptime: 00:01:45.51 context : 37751

irq 16: 0 irq 75: 1
irq 20: 0 irq 77: 2937
irq 32: 33028 irq 82: 89
irq 49: 0 irq 83: 36
irq 50: 0 irq 96: 0
irq 65: 18 irq 97: 8744
irq 66: 2

mmcblk0 2918r mmcblk0p2 2820r
mmcblk0p1 59r

eth0 TX 201.64KiB RX 27.42KiB lo TX 122.64KiB RX 122.64KiB


###### Active processes (pstree) ######
systemd-+-2*[agetty]
|-avahi-daemon---avahi-daemon
|-cmd_async---sh---sudo---xinit-+-Xorg-+-{llvmpipe-0}
| | |-{llvmpipe-1}
| | |-{llvmpipe-2}
| | `-{llvmpipe-3}
| `-sh-+-matchbox-window
| `-midori
|-cmd_async---sh---debug_collector---sh---pstree
|-dbus-daemon
|-devmon---udevil
|-dhcpcd
|-ifplugd
|-mpd-+-{decoder}
| |-{io}
| |-{output:bcm2835 }
| `-{player}
|-nginx---nginx
|-nmbd
|-ntpd---{ntpd}
|-php-fpm---3*[php-fpm]
|-redis-server---2*[{redis-server}]
|-rune_PL_wrk
|-rune_SY_wrk
|-sh---sleep
|-shairport---{shairport}
|-smbd---smbd
|-sshd
|-systemd-journal
|-systemd-resolve
|-systemd-udevd
|-upmpdcli---12*[{upmpdcli}]
`-xbindkeys


###### Audio backend ######
Advanced Linux Sound Architecture Driver Version k4.1.20-1-ARCH.

Card list: (/proc/asound/cards)
--------------------------------------------------
0 [ALSA ]: bcm2835 - bcm2835 ALSA
bcm2835 ALSA
1 [sndrpihifiberry]: snd_rpi_hifiber - snd_rpi_hifiberry_dac
snd_rpi_hifiberry_dac


PLAYBACK devices: (aplay -l)
--------------------------------------------------
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0


PCM devices: (aplay -L)
--------------------------------------------------
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
sysdefault:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
default:CARD=sndrpihifiberry
snd_rpi_hifiberry_dac,
Default Audio Device
sysdefault:CARD=sndrpihifiberry
snd_rpi_hifiberry_dac,
Default Audio Device


Simple mixer controls: (amixer scontrols)
--------------------------------------------------
card 0:
Simple mixer control 'PCM',0

card 1:
no mixer scontrols


Mixer controls: (amixer controls)
--------------------------------------------------
card 0:
numid=3,iface=MIXER,name='PCM Playback Route'
numid=2,iface=MIXER,name='PCM Playback Switch'
numid=1,iface=MIXER,name='PCM Playback Volume'
numid=5,iface=PCM,name='IEC958 Playback Con Mask'
numid=4,iface=PCM,name='IEC958 Playback Default'

card 1:
no mixer controls


MPD audio outputs status: (mpc outputs)
--------------------------------------------------
Output 1 (bcm2835 ALSA_2) is disabled
Output 2 (snd_rpi_hifiberry_dac) is disabled
Output 3 (bcm2835 ALSA_1) is enabled

###### mpd version ######
mpd version: 0.19.0
eea123
 
Posts: 155
Joined: 23 Dec 2017, 19:19

Re: Newbie Issue w/ I2S Card(s)

Postby janui » 24 Apr 2018, 05:45

Hi eea123,
OK, fine. You are using a relatively old version of the software but it will work with the HiFiBerry. Easiest way to get it working is to plug the SD-card into your PC. You may get some messages about reformatting, don't do it - just click them away. A part of the SD-card is accessible via the PC and within Linux. You see this automatically when you open the SD-card with explorer on the PC. Now you need to uncomment (remove the # symbol from the first position of a line) one line which switches the HiFiBerry on. The file you need to modify is called config.txt you can change it with any file editor like notepad. The line you are looking to uncomment is #dtoverlay=hifiberry-dac or #dtoverlay=hifiberry-dacplus, depending on the HiFiBerry model which you are using. When you are finished just plug the SD-card back into the Pi and restart. Look here for more information about doing this: http://www.runeaudio.com/documentation/ ... put-boards

You could also decide to move on to a later version of Rune, you can download that version from here: runeaudio-0-4-beta-for-raspberry-pi2-3-t4434.html#p19960 Setup is then easier, you select the Audio card in the Settings menu.
janui
User avatar
janui
 
Posts: 699
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Newbie Issue w/ I2S Card(s)

Postby eea123 » 24 Apr 2018, 11:24

I went back to editing from PuTTY and the following line is active in config.txt.

# Uncomment one of these lines to enable an audio interface
dtoverlay=hifiberry-dac
#dtoverlay=hifiberry-dacplus
#dtoverlay=hifiberry-digi
#dtoverlay=hifiberry-amp
#dtoverlay=iqaudio-dac
#dtoverlay=iqaudio-dacplus

Are you sure I don't need to un-remark any of the following?

#dtparam=i2c_arm=on
#dtparam=i2c_vc=on
#dtparam=i2s=on
#dtparam=spi=on
#dtparam=act_led_trigger=mmc


I also confirmed that from the RuneAudio MPD menu, "HiFiBerry (I2S)" already shows as an option, it also says "(works on the fly)" on this version. It was this way when I installed the first and second I2S cards without any luck.

Maybe I'll try DAC+ next?
eea123
 
Posts: 155
Joined: 23 Dec 2017, 19:19

Re: Newbie Issue w/ I2S Card(s)

Postby hondagx35 » 24 Apr 2018, 12:14

Hi eea123,

Are you sure I don't need to un-remark any of the following?

Yes.

I also confirmed that from the RuneAudio MPD menu, "HiFiBerry (I2S)" already shows as an option, it also says "(works on the fly)" on this version. It was this way when I installed the first and second I2S cards without any luck.

With my latest version you do not need to edit any config file, all can be selected from the settings page.

I'm on my second unsuccessful attempt to get an I2S unit going with a Model 2B Pi.

Maybe I'll try DAC+ next?

Or tell us a bit more about your DAC.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Newbie Issue w/ I2S Card(s)

Postby eea123 » 24 Apr 2018, 23:32

Got it going. Almost bought a new Pi, but rebooted with HiFi DAC+ and it took off. I also turned off the software volume control since it said that it provided better audio.
eea123
 
Posts: 155
Joined: 23 Dec 2017, 19:19

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 9 guests