All of lore.kernel.org
 help / color / mirror / Atom feed
* am335x+tlv320aic3x
@ 2014-09-09  0:33 Ilya Dmitrichenko
  2014-09-09  6:57 ` am335x+tlv320aic3x Peter Ujfalusi
  0 siblings, 1 reply; 3+ messages in thread
From: Ilya Dmitrichenko @ 2014-09-09  0:33 UTC (permalink / raw)
  To: alsa-devel

Hi List,

I am trying to get Beaglebone workign with the audio extension board
(aka cape) that is using tlv320aic3x codec. I want it to run 3.14 and
use vanilla kernel without dynamic DT overlay patches.

So I have take the current overlay DT [1] and made converted it [2].
The result is that it boots and detects the Davinci module, but
doesn't get the codec.

[1]: https://github.com/beagleboard/devicetree-source/blob/d46bcc20ef98d69eea34cd6ae3897a329559ebb2/arch/arm/boot/dts/BB-BONE-AUDI-01-00A0.dts
[2]: https://gist.github.com/errordeveloper/cba5145960bdeb0126d5

My kernel config includes this:

CONFIG_SND_OMAP_SOC=m
CONFIG_SND_OMAP_SOC_MCBSP=m
CONFIG_SND_OMAP_SOC_OMAP_TWL4030=m
CONFIG_SND_SOC_TWL4030=m
CONFIG_SND_DAVINCI_SOC=m
CONFIG_SND_AM33XX_SOC_EVM=m
CONFIG_SND_DAVINCI_SOC_MCASP=m
CONFIG_SND_HRTIMER=m

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: am335x+tlv320aic3x
  2014-09-09  0:33 am335x+tlv320aic3x Ilya Dmitrichenko
@ 2014-09-09  6:57 ` Peter Ujfalusi
  2014-09-10  9:54   ` am335x+tlv320aic3x Ilya Dmitrichenko
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Ujfalusi @ 2014-09-09  6:57 UTC (permalink / raw)
  To: Ilya Dmitrichenko, alsa-devel

On 09/09/2014 03:33 AM, Ilya Dmitrichenko wrote:
> Hi List,
> 
> I am trying to get Beaglebone workign with the audio extension board
> (aka cape) that is using tlv320aic3x codec. I want it to run 3.14 and
> use vanilla kernel without dynamic DT overlay patches.
> 
> So I have take the current overlay DT [1] and made converted it [2].
> The result is that it boots and detects the Davinci module, but
> doesn't get the codec.
> 
> [1]: https://github.com/beagleboard/devicetree-source/blob/d46bcc20ef98d69eea34cd6ae3897a329559ebb2/arch/arm/boot/dts/BB-BONE-AUDI-01-00A0.dts
> [2]: https://gist.github.com/errordeveloper/cba5145960bdeb0126d5

What is the revision of audio cape you have? The fragment is for RevA, RevB of
the cape is significantly different.

> My kernel config includes this:
> 
> CONFIG_SND_OMAP_SOC=m
> CONFIG_SND_OMAP_SOC_MCBSP=m
> CONFIG_SND_OMAP_SOC_OMAP_TWL4030=m
> CONFIG_SND_SOC_TWL4030=m
> CONFIG_SND_DAVINCI_SOC=m
> CONFIG_SND_AM33XX_SOC_EVM=m
> CONFIG_SND_DAVINCI_SOC_MCASP=m
> CONFIG_SND_HRTIMER=m

You are missing the CONFIG_SND_SOC_TLV320AIC3X

-- 
Péter

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: am335x+tlv320aic3x
  2014-09-09  6:57 ` am335x+tlv320aic3x Peter Ujfalusi
@ 2014-09-10  9:54   ` Ilya Dmitrichenko
  0 siblings, 0 replies; 3+ messages in thread
From: Ilya Dmitrichenko @ 2014-09-10  9:54 UTC (permalink / raw)
  To: Peter Ujfalusi; +Cc: alsa-devel

Hi Peter,

On 9 September 2014 07:57, Peter Ujfalusi <peter.ujfalusi@ti.com> wrote:

> What is the revision of audio cape you have? The fragment is for RevA, RevB of
> the cape is significantly different.

Sure, I have checked this and my audio cape is of the older revision A1.

> You are missing the CONFIG_SND_SOC_TLV320AIC3X

Sorry, looks like I didn't copy everything here. This is what I have:

$ zcat /proc/config.gz | grep ^CONFIG_SND
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_DMAENGINE_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_COMPRESS_OFFLOAD=m
CONFIG_SND_JACK=y
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_HRTIMER=m
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_VERBOSE_PRINTK=y
CONFIG_SND_DEBUG=y
CONFIG_SND_DEBUG_VERBOSE=y
CONFIG_SND_RAWMIDI_SEQ=m
CONFIG_SND_DRIVERS=y
CONFIG_SND_ARM=y
CONFIG_SND_SPI=y
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=m
CONFIG_SND_SOC=m
CONFIG_SND_DAVINCI_SOC=m
CONFIG_SND_DAVINCI_SOC_MCASP=m
CONFIG_SND_DAVINCI_SOC_GENERIC_EVM=m
CONFIG_SND_AM33XX_SOC_EVM=m
CONFIG_SND_OMAP_SOC=m
CONFIG_SND_OMAP_SOC_MCBSP=m
CONFIG_SND_OMAP_SOC_HDMI=m
CONFIG_SND_OMAP_SOC_OMAP_TWL4030=m
CONFIG_SND_OMAP_SOC_OMAP_HDMI=m
CONFIG_SND_SOC_I2C_AND_SPI=m
CONFIG_SND_SOC_HDMI_CODEC=m
CONFIG_SND_SOC_TLV320AIC3X=m
CONFIG_SND_SOC_TWL4030=m

As you can see, the TLV320AIC3X module is enable and I am also able to
load it, but nothing happens.

I also wonder if there is a way of configuring this by means of
passing module params instead of device tree, but couldn't find any
information on this.

After reading the driver source code, I figured I should try changing
the device tree code to use  "ti,tlv320aic3x-hifi", but that didn't
affect anything. I have updated the gist with the effective device
tree obtain from the running system [3] and the respective source code
[4].

[3]: https://gist.github.com/errordeveloper/cba5145960bdeb0126d5#file-effective_device_tree-dts
[4]: https://gist.github.com/errordeveloper/cba5145960bdeb0126d5#file-input_device_tree-dts

Peter, thanks for looking into this! I'll make sure that I get the
results posted online, so the community can use capes without DT
overlay patches. Sorry for my bad english in the last email, was
typing in a hurry.

Cheers,
-- 
Ilya

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-10  9:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-09  0:33 am335x+tlv320aic3x Ilya Dmitrichenko
2014-09-09  6:57 ` am335x+tlv320aic3x Peter Ujfalusi
2014-09-10  9:54   ` am335x+tlv320aic3x Ilya Dmitrichenko

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.