AnsweredAssumed Answered

Steps needed to make AD193x driver create a "card"

Question asked by skstrobel on Feb 26, 2013
Latest reply on Feb 28, 2013 by ScottJiang

I enabled the AD193x SOC driver and can load it with "modprobe snd-soc-ad193x", but I still get:

 

    root:/> cat /proc/asound/cards

    --- no soundcards ---

 

So I must be missing a step needed to make an ALSA soundcard.  My config includes:

 

    <M> Sound card support  --->

        [*]   Preclaim OSS device numbers                                                                  

        <M>   Advanced Linux Sound Architecture  --->

            <M>   ALSA for SoC audio support  --->

                 <M>   SoC I2S(TDM mode) Audio for the ADI BF5xx chip

                <M>   SoC AD193X Audio support for Blackfin

                AD193X control type select (use SPI to control AD193X)  --->

               (0)   Set a SPORT for Sound chip

               <M>   SoC I2S(TDM mode) Audio for the ADI BF5xx chip

               <M>   SoC AD193X Audio support for Blackfin

                 AD193X control type select

                (0)   Set a SPORT for Sound chip

 

In my board file:

 

static struct spi_board_info bfin_spi_board_info[] __initdata = {

// snip

#ifdef CONFIG_SND_SOC_AD193X_SPI

          {

                    .modalias = "ad193x",

                    .max_speed_hz = 3125000,

                    .bus_num = 2,                                            // bitbanged SPI bus

                    .chip_select = GPIO_PG3,

                    .mode = SPI_MODE_0,                               // bf537 stamp file uses mode 3 here.

          },

#endif

 

In the output/build/alsa-lib-1.0.25/src/conf/cards directory there is the bfin-ad193x.conf file, which is also listed in the Makefile.am file in the same directory.

 

Could someone point me to the piece I am missing?  Thanks.

 

Steve

 

 

P.S.  It bothers me a bit that this config option:  "SoC I2S(TDM mode) Audio for the ADI BF5xx chip" says I2S but is apparently needed even when using SPORT and SPI but not I2S.  I am guessing that the config dependencies are correct and that is just a confusing title.

Outcomes