element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Moto Mods
  • Products
  • Manufacturers
  • Moto Mods
  • More
  • Cancel
Moto Mods
Forum I2S Audio with custom Personality Card
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Moto Mods to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 0 replies
  • Subscribers 56 subscribers
  • Views 417 views
  • Users 0 members are here
  • audio
  • i2s audio
  • i2s
Related

I2S Audio with custom Personality Card

paha
paha over 7 years ago

Hello Moto Mod Community,

 

we try to play System Audio through our Mod (raw I2S) as a first demo.

 

So we got a MDK and designed our Personality-Card. We flashed our Firmware to the MDK and connected it to a Moto Z2.

 

We are using a TLV320AIC3104 Codec directly connected to the I2S (DIP A2 = ON).

 

With every Playback-Use-Case activated (none, music, voice call, ringtone, sonification) the Moto Z2 no longer plays audio through its speakers and we can observe the following outputs during playing a mp3 over a Generic Audio Player App:

Moto Mod:

[D]: gb_i2s_mgmt_protocol_stop: 0

[D]: gb_aud_protocol_enable_devices()-in0-out0

aud_dev_enable_devices: .

[D]: gb_aud_protocol_enable_devices: 0

[D]: gb_aud_protocol_enable_devices()-in0-out1

aud_dev_enable_devices: .

[D]: gb_aud_protocol_enable_devices: 0

[D]: gb_i2s_mgmt_protocol_start() port type 1:

i2s_op_dai_start: .

[D]: gb_i2s_mgmt_protocol_start: 0

[D]: gb_i2s_mgmt_protocol_stop() port type 1:

i2s_op_dai_stop: .

[D]: gb_i2s_mgmt_protocol_stop: 0

[D]: gb_aud_protocol_enable_devices()-in0-out0

aud_dev_enable_devices: .

[D]: gb_aud_protocol_enable_devices: 0

[D]: gb_aud_protocol_enable_devices()-in0-out1

aud_dev_enable_devices: .

[D]: gb_aud_protocol_enable_devices: 0

[D]: gb_i2s_mgmt_protocol_start() port type 1:

i2s_op_dai_start: .

[D]: gb_i2s_mgmt_protocol_start: 0

[D]: gb_i2s_mgmt_protocol_stop() port type 1:

i2s_op_dai_stop: .

[D]: gb_i2s_mgmt_protocol_stop: 0

[D]: gb_aud_protocol_enable_devices()-in0-out0

aud_dev_enable_devices: .

[D]: gb_aud_protocol_enable_devices: 0

[D]: gb_aud_protocol_enable_devices()-in0-out1

aud_dev_enable_devices: .

[D]: gb_aud_protocol_enable_devices: 0

[D]: gb_i2s_mgmt_protocol_start() port type 1:

i2s_op_dai_start: .

[D]: gb_i2s_mgmt_protocol_start: 0

[D]: gb_i2s_mgmt_protocol_stop() port type 1:

i2s_op_dai_stop: .

[D]: gb_i2s_mgmt_protocol_stop: 0

 

Logcat:

09-11 10:32:55.604 E: start_output_stream: cannot set hw params: Invalid argument

09-11 10:32:55.604 D: disable_audio_route: reset and update mixer path: deep-buffer-playback mod

09-11 10:32:55.605 D: disable_snd_device: snd_device(35: mod-speaker)

09-11 10:32:55.630 D: mods_get_speaker_snd_device(): Selecting device 35 instead of 2

09-11 10:32:55.630 D: select_devices: out_snd_device(35: mod-speaker) in_snd_device(0: none)

09-11 10:32:55.630 D: platform_send_audio_calibration: sending audio calibration for snd_device(35) acdb_id(215)

09-11 10:32:55.630 D: ACDB -> send_audio_cal, acdb_id = 215, path = 0, app id = 0x11130, sample rate = 48000

    ACDB -> send_asm_topology

    ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID

    ACDB -> send_adm_topology

    ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID

    ACDB -> send_audtable

    ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE

09-11 10:32:55.630 D: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE

09-11 10:32:55.630 D: ACDB -> AUDIO_SET_AUDPROC_CAL

    ACDB -> send_audvoltable

    ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0

09-11 10:32:55.631 D: ACDB -> AUDIO_SET_VOL_CAL cal type = 12

    ACDB -> send_audstrmtable

    ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2

    ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16

    ACDB -> send_afe_topology

    ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID

    ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 215, Topology Id 112fc

    ACDB -> send_afe_cal

    ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE

    Failed to fetch the lookup information of the device 000000D7

09-11 10:32:55.631 D: ACDB -> AUDIO_SET_AFE_CAL

    ACDB -> send_hw_delay : acdb_id = 215 path = 0

    ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY

09-11 10:32:55.631 D: enable_snd_device: snd_device(35: mod-speaker)

09-11 10:32:55.636 D: enable_audio_route: apply and update mixer path: deep-buffer-playback mod

09-11 10:32:55.638 I: audio_extn_utils_send_app_type_cfg PLAYBACK app_type 69936, acdb_dev_id 215, sample_rate 48000

09-11 10:32:55.656 E: start_output_stream: cannot set hw params: Invalid argument

 

Hardware:

The clock signal on I2S_BCLK Line is interrupted (about 3-5ms bursts every 50ms).

 

This constantly repeats during the audio playing.

 

Every tip can help. And please ask if you need some additional information.

  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube