From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Flax Subject: SPI PCM capture device examples please Date: Wed, 13 Nov 2013 23:07:07 +1100 Message-ID: <52836B6B.3070703@flatmax.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by alsa0.perex.cz (Postfix) with ESMTP id 00F72261ABC for ; Wed, 13 Nov 2013 13:07:11 +0100 (CET) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Hi there, Is it possible to write an ALSA driver for a device which already has an SPI driver ? I have been trying to look for examples in the ALSA kernel source tree, however all the drivers I have looked at use SPI to control the codecs .... there must be an example where the codec uses SPI for PCM data ? If someone is aware of any codecs which use SPI for PCM data can you please link me to the example driver code ? The device I am interested in operates in slave SPI mode and only has ADCs, so it only has one input SPI line (and other necessary lines, such as clk). Its data sample rates are up to 1 M Hz. Here is a link to the SPI driver in question : http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/iio/adc/ad7476.c?id=HEAD thanks Matt