Go to advanced search

by audio-badger
Wed Jun 28, 2017 11:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

Posted as a datapoint for those having issues.. For a project I'm doing at the moment where I need the RPI to act as an audio source/sink I tried a freshly installed/updated version: Linux rpi_smp_test 4.9.28-v7+ #998 SMP Mon May 15 16:55:39 BST 2017 armv7l GNU/Linux and following my original instru...
by audio-badger
Mon Jun 05, 2017 9:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Bit-banged I²C kernel driver
Replies: 12
Views: 7090

Re: Bit-banged I²C kernel driver

Can I just say a huge thankyou to kadamski for this. It works beautifully (having it look and feel exactly like the hardware I2C driver is perfect) and has complete solved my issues with clock stretching.
by audio-badger
Fri Oct 07, 2016 10:49 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

If you want to restrict the number of channels in your machine driver it is something like so : static const struct snd_soc_pcm_stream my_params { .channels_min = 1, .channels_max = 1, }; static struct snd_soc_dai_link my_dai[] = { ... SNIP ... .params=&my_params; }; You can also specify other para...
by audio-badger
Mon Sep 12, 2016 12:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

How can I modify the drivers to work with a device that has only a single (mono) 16-bit audio channel in each direction? I2S by nature is a 2 channel interface (per data line) since the frame consists of L followed by R. So I'm not sure if a mono I2S driver makes sense. However, I needed a mono inp...
by audio-badger
Fri Aug 19, 2016 10:14 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

Hi to anyone wanting to enable generic I2S input and output on the RPI! Based on lot's of people's great work in this thread and others, I've compiled a step by step guide for getting this working and added updates where necessary. The end goal for me was a mono 16KHz I2S mic input to work with the ...
by audio-badger
Mon Aug 15, 2016 10:40 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

Starting go a bit off topic here, but in response to: Are there ICs that would interleave two I2S streams? That would be the simplest route in my mind. e.g. two stereo 48 kHz I2S streams going in, then one 96 kHz interleaved stream coming out. It would then be easy to split the streams in software o...
by audio-badger
Wed Aug 03, 2016 3:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

Are you suggesting you've got multiple channels (i.e. more than a stereo pair) working with I2S? Nope - I'm doing all of the smart stuff in an external audio processor and sending a mono, pre-processed stream. I'm not sure if the BCM2835 peripheral can do TDM (which is probably what you need to get...
by audio-badger
Wed Aug 03, 2016 3:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

Sorry - can't help much as mine just worked: [email protected]:~ $ arecord -D hw:2 -f S24_LE -c2 -r 48000 test.wav Recording WAVE 'test.wav' : Signed 24 bit Little Endian, Rate 48000 Hz, Stereo ^CAborted by signal Interrupt... That error looks like sync is missing: /* Wait for the SYNC flag changing it...
by audio-badger
Tue Aug 02, 2016 8:08 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

Yep - sure here it is. If you do a diff against the umodified kernel source you can see only two lines added, one of which is a print.. /* * ASoC simple sound card support * * Copyright (C) 2012 Renesas Solutions Corp. * Kuninori Morimoto <kuninori.morimoto.[email protected].com> * * This program is free s...
by audio-badger
Fri Jul 29, 2016 2:05 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c repeated start transactions
Replies: 55
Views: 43441

Re: i2c repeated start transactions

However I am facing another issue is that after the Raspberry Pi reboot the /sys/module/i2c_bcm2708/parameters/combined is auto restore to "N" again. Any suggestion to prevent the setting reset back? ensure /etc/modprobe.d/i2c.conf (rather than /etc/modules ) has the following line: options i2c-bcm...
by audio-badger
Wed Jul 20, 2016 2:09 pm
Forum: Advanced users
Topic: ALSA - downmix to mono via .asoundrc.
Replies: 11
Views: 19931

Re: ALSA - downmix to mono via .asoundrc.

@JanHolstJensen - Great work. This helped me too (turning a stereo input into a mono input needed for Amazon Alexa!)

@ kokarn - Thanks for your update too. BTW,

Code: Select all

/etc/init.d/alsa-utils restart
works with

Code: Select all

sudo
by audio-badger
Tue Jun 28, 2016 5:17 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

If you have sound but it's gone all dalek then it will definitely be something basic about I2S signals. Have you counted the BCLKs per LRCLK frame? Could you go into a little detail of recompiling simple-card.c, and where the output needs to be placed? thanks in advance :) Sure! Firstly, presumably ...
by audio-badger
Wed Jun 22, 2016 10:00 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

Didn't get any pointers so had to get deep and dirty in the code... :geek: Anyhow, turns out that simple-card.c doesn't set the frame:bclk ratio at all, leaving a rather odd default of 100 for 32b audio and 50 for 16b audio. So I recompiled simple-card.c with the following line at the end of asoc_si...
by audio-badger
Mon Jun 20, 2016 5:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

OK, after much fiddling and lots of googling, I have I2S input (kind of) working on RPI3 in Jessie 4.4.11-v7. So I can reassure others that this does work. If anyone is interested, I can post the steps. I have changed the PI to be master of both BCLK and LRCLK using: .daifmt = SND_SOC_DAIFMT_I2S | S...
by audio-badger
Thu Jun 16, 2016 9:16 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2S Success (at last) !
Replies: 111
Views: 52378

Re: I2S Success (at last) !

Hi All, has anyone had success in getting a simple I2S input device working on Rpi3 with a recent build of jessie? (I'm using 4.4.13-v7+) Getting simple I2S output working is now very easy by adding the following to /boot/config.txt: dtoverlay=hifiberry-dac ..and it all just works beautifully after ...

Go to advanced search