3 Replies Latest reply on Mar 3, 2015 6:06 PM by shijian

    tlv320aic3104 codec driver support for Edison

    shijian

      Did someone  compile the tlv320aic3140 codec driver into Edison for supporting audio play?

      I'm trying to build the driver code through module and insmod the *.ko file into Edison, but the edison didn't work with my audio board, to check the audio driver typing in the cmd_line "aplay -Ll" or "cat /proc/asound/pcm"

      the good result must like below


       

      Header 1

      >>cat /proc/asound/pcm

      00-00: Loopback PCM : Loopback PCM : playback 8 : capture 8

      00-01: Loopback PCM : Loopback PCM : playback 8 : capture 8

      01-00: pcspeaker : pcsp : playback 1 ... # this is the pcsp driver shown up by modifying  'CONFIG_SND_PCSP=y' in defconfig when compiling the kernel.

      >> aplay -Ll

      null

          Discard all samples (playback) or generate zero samples (capture)

      default:CARD=Loopback

          Loopback, Loopback PCM

          Default Audio Device

      sysdefault:CARD=Loopback

          Loopback, Loopback PCM

          Default Audio Device

      **** List of PLAYBACK Hardware Devices ****

      card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]

        Subdevices: 8/8

        Subdevice #0: subdevice #0

        Subdevice #1: subdevice #1

        Subdevice #2: subdevice #2

        Subdevice #3: subdevice #3

        Subdevice #4: subdevice #4

        Subdevice #5: subdevice #5

        Subdevice #6: subdevice #6

        Subdevice #7: subdevice #7

      card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]

        Subdevices: 8/8

        Subdevice #0: subdevice #0

        Subdevice #1: subdevice #1

        Subdevice #2: subdevice #2

        Subdevice #3: subdevice #3

        Subdevice #4: subdevice #4

        Subdevice #5: subdevice #5

        Subdevice #6: subdevice #6

        Subdevice #7: subdevice #7

      card 1: pcsp [pcsp], device 0: pcspeaker [pcsp]   # also the pcsp driver

        Subdevices: 1/1

        Subdevice #0: subdevice #0


       

      the driver code

      https://gitorious.org/ti-codecs/ti-codecs/commit/2a6df0d6bb1c270aba57018fad5d3cde221e4d4f#sound/soc/codecs/tlv320aic31xx.c

      Linux/sound/soc/codecs/tlv320aic3x.c - Linux Cross Reference - Free Electrons