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: 714
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Newbie Issue w/ I2S Card(s)

Postby eea123 » 23 Apr 2018, 01:43

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: 714
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Newbie Issue w/ I2S Card(s)

Postby eea123 » 23 Apr 2018, 23:23

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: 714
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

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 19 guests