* Non-I2C/SPI ASoC codec
@ 2014-07-03 11:14 Matthew Bucknall
2014-07-03 11:28 ` Daniel Mack
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Bucknall @ 2014-07-03 11:14 UTC (permalink / raw)
To: alsa-devel
Hi,
I'm trying to get audio support for a custom ARM board to work and have
written codec and machine drivers - The platform driver already existed
(atmel_ssc_dai). The codec I am supporting is extremely simple and has no
SPI/I2C interface for configuration and just accepts fixed format/fixed
rate I2S.
Previously, when I've gotten ASoC support for another board working, the
codec it used (TLV320AIC32) had an I2C interface. Declaring I2C_BOARD_INFO
for this in my board file seemed sufficient to get the machine driver to
probe and initialize. For this new board, I have no SPI/I2C device to
declare in the board file and its associated machine driver is not probing.
All I get from the kernel is 'No soundcards found.'
My driver modules are getting compiled and are linked statically. What do I
need to do to get the machine driver going?
Matt.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Non-I2C/SPI ASoC codec
2014-07-03 11:14 Non-I2C/SPI ASoC codec Matthew Bucknall
@ 2014-07-03 11:28 ` Daniel Mack
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Mack @ 2014-07-03 11:28 UTC (permalink / raw)
To: Matthew Bucknall, alsa-devel
On 07/03/2014 01:14 PM, Matthew Bucknall wrote:
> I'm trying to get audio support for a custom ARM board to work and have
> written codec and machine drivers - The platform driver already existed
> (atmel_ssc_dai). The codec I am supporting is extremely simple and has no
> SPI/I2C interface for configuration and just accepts fixed format/fixed
> rate I2S.
>
> Previously, when I've gotten ASoC support for another board working, the
> codec it used (TLV320AIC32) had an I2C interface. Declaring I2C_BOARD_INFO
> for this in my board file seemed sufficient to get the machine driver to
> probe and initialize. For this new board, I have no SPI/I2C device to
> declare in the board file and its associated machine driver is not probing.
> All I get from the kernel is 'No soundcards found.'
>
> My driver modules are getting compiled and are linked statically. What do I
> need to do to get the machine driver going?
You need to
a) get the driver compiled into your kernel (statically or as module),
and
b) instantiate the driver, from either DTB or a platform_device struct.
There are plenty of good examples in the mainline kernel for both ways,
but note that board-file driven (non-DTB) boards are considered legacy.
FWIW, A very simple ASoC codec that doesn't have any control bus such as
I2C/SPI is already present in sound/soc/codecs/ak5386.c.
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-03 11:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-03 11:14 Non-I2C/SPI ASoC codec Matthew Bucknall
2014-07-03 11:28 ` Daniel Mack
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.