Analog or digital switch for accessing an audio codec

Hello ,

I want to use audio codec wm8994 or wm8904 by two masters. When i say use i mean accessing the output of a codec (not controling which is done by i2c ) , i am thinking to use a switch ( analog or digital switch)so that only one master ( MCU) can access it.

Can you please suggest a small switch part number? I read the datasheet and found that for wm8994 there is no need of switch as it can take two outputs but for wm8904 we may have to use.

please comment and suggest with a suitable part number.

Regards,

any guidance on this?

Regards,

Hello @sr007,

Please tell us more about your project.

On a first pass I would recommend something like the TI TMUX4827YBHR.

However, I feel like I’m missing something important in your requirements.

Are you looking to control the audio output or the uC control signals.

Sincerely,

APDahlen

@David_1528

A block diagram would be especially useful.

Hello @APDahlen ,

Thanks for the suggestion .

its an audio project with dual MCU . While one MCU outputs the stream to codec for processing , i want other MCU to go to sleep and vice versa. For this I want a switch so that only one mcu can access the codec lines (input).

Also i feel if i use wm8994 i may not use switch as it has both AF1 and AF2 for two host.

Please comment.

Regards,

I see, @sr007,

You do not need an analog switch. I was on the wrong side of the codex.

Options for the wm8994

With regards to your block diagram, the wm8994 does not need a switch as it supports multiple PCM channels.

When fed by two hosts I see several options:

  • Turn down the volume in the inactive host by sending zero-value samples while keeping the clock active.

  • Reach into the codec and “turn down the volume” for the inactive host.

  • Reach into the codec and “turn off” the inactive host.

Options for the wm8904

The wm8904 is harder as it only has a single channel.

As you stated, the wm8904 has a single channel necessitating the switch you mentioned. That places us somewhere in the vicinity of the TI SN74CBTLV3257PWR.

There are some questions you will need to answer. The most important is what happens to host and codec when the data transfer is interrupted mid word.

You will have some good stories to explore when you are done with this project.

Sincerely,

APDahlen

Hello @APDahlen ,

thanks a lot for the suggestion.

For the mid transaction, i still have to see how to manage it via software.

May i know why you preferred TI SN74CBTLV3257PWR. over TI TMUX4827YBHR ? what did you notice here?

Regards,

Hi @sr007,

It’s about placement in the signal chain.

One is designed to switch analog audio signals. The other is designed to switch the PCM control lines.

r/

APD