Dac Design Question

Discussion in 'Digital: DACs, USB converters, decrapifiers' started by Energeezer, Jun 13, 2017.

  1. Energeezer

    Energeezer New

    Joined:
    Jun 9, 2017
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Winnipeg, Canada
    It seems I have been spending more time on the headphone based forums than the more speaker based forums when it comes to learning about Dacs.
    Here is a simplistic perhaps stupid question.
    When a designer creates a Dac is there any difference in design philosophy depending if the Dac is primarily for speaker or headphone systems?
    I would think they would be the same.
     
  2. Armaegis

    Armaegis Friend

    Pyrate BWC
    Joined:
    Sep 27, 2015
    Likes Received:
    7,542
    Trophy Points:
    113
    Location:
    Winnipeg
    Whoa, another Winnipegger! (send me a pm; I organize the meets in town and tentatively have another one coming up in July)

    In theory there shouldn't be a difference in the dac design for any type of transducer over another. I can only think of two areas where they might choose to do this... 1) shoving in their own form of HRTF compensation, but then this is a post-dac process. Or 2) buffering the dac outputs directly into a headphone output, but again this is a mostly post-dac scenario
     
  3. schiit

    schiit SchiitHead

    Pyrate
    Joined:
    Sep 28, 2015
    Likes Received:
    9,973
    Trophy Points:
    93
    Location:
    Texas and California
    Home Page:
    Speaking for us, there is no difference in approach between speaker and headphone systems.

    A great DAC should be a great DAC in any system.
     
  4. The Alchemist

    The Alchemist MOT: Schiit - Here to help!

    Pyrate
    Joined:
    Sep 24, 2015
    Likes Received:
    1,189
    Trophy Points:
    113
    Location:
    The SchiitR
    Home Page:
    I have a question, specifically about @schiit DACs. When connecting a DAC via USB does the metadata from the source (assuming the source is computer audio files) go to the DAC as well but just get discarded or does no metadata transfer to the DAC? The reason ask is I think it would be awesome to have the digital file's Metadata displayed on a small LCD or TFT display such as bit depth, sample rate etc.
     
  5. landroni

    landroni Friend

    Pyrate
    Joined:
    Aug 12, 2016
    Likes Received:
    1,164
    Trophy Points:
    93
    I'm no expert, but my understanding is that the audio player strips all metadata from a file and sends exclusively only the audio-relevant blocks to USB, for further transmission to the DAC.
     
  6. winders

    winders boomer

    Banned
    Joined:
    Feb 13, 2017
    Likes Received:
    1,596
    Trophy Points:
    113
    Location:
    San Martin, CA
    The bit depth and sample rate are not metadata. The metadata is not sent to the DAC. All the DAC gets is the actual audio digital data contained in the file.
     
  7. The Alchemist

    The Alchemist MOT: Schiit - Here to help!

    Pyrate
    Joined:
    Sep 24, 2015
    Likes Received:
    1,189
    Trophy Points:
    113
    Location:
    The SchiitR
    Home Page:
    How is this information on this TEAC UD-501 transmitted to the DAC?

    main.jpg 11579.jpg
     
  8. landroni

    landroni Friend

    Pyrate
    Joined:
    Aug 12, 2016
    Likes Received:
    1,164
    Trophy Points:
    93
    I'm sure things like bit-depth and sample speed can be inferred from the raw digital audio data. Same for PCM vs DSD.
     
  9. Energeezer

    Energeezer New

    Joined:
    Jun 9, 2017
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Winnipeg, Canada
    Thank you. Very pertinent since I bought an original Bifrost and just updated to 4490.
     
  10. The Alchemist

    The Alchemist MOT: Schiit - Here to help!

    Pyrate
    Joined:
    Sep 24, 2015
    Likes Received:
    1,189
    Trophy Points:
    113
    Location:
    The SchiitR
    Home Page:
    I think that is awesome on DACs
     
  11. ultrabike

    ultrabike Measurbator - Admin

    Staff Member Pyrate MZR
    Joined:
    Sep 25, 2015
    Likes Received:
    8,960
    Trophy Points:
    113
    Location:
    Irvine CA
    The bit depth and sample rate are not metadata. My understanding is that most DACs and ADCs use I2S serial interfaces which provide a word length pulse and a clock. It is possible to derive the sample rate and bit depth from the clock and the word length pulse.

    Here are the 3 lines for a DAC interface:
    1. SCK: serial clock.
    2. WS: word select (0: left channel / 1: right channel - the word length pulse length may control the bit depth).
    3. SD: serial data.
    https://www.sparkfun.com/datasheets/BreakoutBoards/I2SBUS.pdf

    I need to read more on the spec though. More related shit here:

    http://www.ti.com/lit/ug/sprufx4b/sprufx4b.pdf

    I think SCK may also be known as I2S_nCLK, WS as I2S_nFS, and SD as I2S_nRX in the TI datasheet.

    Metadata contains song parametrics and maybe cover art. That is not something that will be provided to the DAC because it does not need it. A DAC definitively needs to know the bit depth and sample rate to work though.

    As far as Schiit's implementation, it is my understanding that unlike their DS offerings, their MB offerings have sort of a proprietary approach to send data. But I would be surprised if they send metadata. They likely do and must send bit depth and sample rate information to internally configure the DACs though.

    To display this info, one would need some LED drivers and possibly a POS uP. Which may add a little to the cost.
     
    Last edited: Jun 13, 2017
  12. ultrabike

    ultrabike Measurbator - Admin

    Staff Member Pyrate MZR
    Joined:
    Sep 25, 2015
    Likes Received:
    8,960
    Trophy Points:
    113
    Location:
    Irvine CA
    Sorry if the above is too technical an answer and not concise.

    But in a nutshell, I believe the information is transmitted to the TEAC DAC via I2S. It is not metadata, but DAC parameters needed by the DAC to work. And Schiit likely could produce a DAC to display those parameters at their discretion and if they considered it a priority.
     
  13. Ash1412

    Ash1412 Friend

    Pyrate
    Joined:
    Sep 27, 2015
    Likes Received:
    667
    Trophy Points:
    93
    Doesn't the Yggdrasil display sample rate using led indicators?
    EDIT: found this image of the front panel
    [​IMG]
    48x4=192 for 192khz input. neat
     
    Last edited: Jun 13, 2017
  14. winders

    winders boomer

    Banned
    Joined:
    Feb 13, 2017
    Likes Received:
    1,596
    Trophy Points:
    113
    Location:
    San Martin, CA
  15. ultrabike

    ultrabike Measurbator - Admin

    Staff Member Pyrate MZR
    Joined:
    Sep 25, 2015
    Likes Received:
    8,960
    Trophy Points:
    113
    Location:
    Irvine CA
    I think you are correct. The I2S data interface is likely not used to figure parameters on the fly. It just reflects the DAC configuration.

    The I2S serial interface needs to be setup first.

    On flagship DACs the setup seems to come from an interface IC (like Tenor, XMOS, or C-Media) though an I2C/SPI interface. On USB 1.1 entry level DACs, the setup may come directly from an integrated USB interface, and using the appropriate host driver.

    The DAC I2C/SPI does not take all kinds of arbitrary data. It's used to setup the DAC registers, and likely every vendor have their own register definitions:
    1. For the PCM1795, register 18's seems to control the bit depth (among other things).
    2. For the CS4398, register 2's seems to control the bit depth (among other things).
    An interface IC compatible with a number of DACs from a set of different vendors may have to have a means to identify the vendor and the device, and support the appropriate configuration. While I2C is standard, the registers inside a particular DAC vendor may not be. Which is probably why some of these interface ICs are proprietary and perhaps relatively pricey.

    With all that said, I do not have ample experience dealing with audio interface ICs. I do have experience with I2C though.

    In any case, the host drivers and the interface ICs likely do not support metadata through USB, SPDIF or other host supported interfaces. Probably just DAC configuration and data.
     
  16. purr1n

    purr1n Desire for betterer is endless.

    Staff Member Pyrate BWC
    Joined:
    Sep 24, 2015
    Likes Received:
    90,011
    Trophy Points:
    113
    Location:
    Padre Island CC TX
    You guys are way way way way way overthinking it. Sample rate and bit depth are inherent the i2S tranmission. You have a bit clock, a word clock (denoting L or R), and a data line (multiplexed for L and R).

    You feed the three lines of i2S, and either the DAC chip gets it or it barfs it up.

    Think VGA with vsync, hsync, etc; except VGA is analog.

    ^ This.
     
    Last edited: Jun 14, 2017
  17. ultrabike

    ultrabike Measurbator - Admin

    Staff Member Pyrate MZR
    Joined:
    Sep 25, 2015
    Likes Received:
    8,960
    Trophy Points:
    113
    Location:
    Irvine CA
    Possible. It's not a big deal unless one is implementing stuff.

    The sample rate and bit depth are indeed inherent in the I2S transmission. But I think some DACs do seem to need setup through I2C.

    Furthermore, integrated USB 1.1 budget DACs do not have an I2S input, just USB. Many such entry level DACs do provide I2S output though, but they seem to be limited to 44.1 and 48 kHz rates.

    On the other hand, there is also the pupDAC which uses the PCM2705 as interface and PCM1794 as DAC. And I don't think there is an I2C/SPI between the two. So I dunno. Maybe the default is 16-bit 44.1 and 48 kHz on power on (PCM1794), and depending on the I2S clock. And maybe I2C/SPI is a necessity only if other non-default modes are required.
     
    Last edited: Jun 14, 2017
  18. winders

    winders boomer

    Banned
    Joined:
    Feb 13, 2017
    Likes Received:
    1,596
    Trophy Points:
    113
    Location:
    San Martin, CA
    I wasn't referring to the DAC driver level interaction between I2S and the input interface. For example, the USB driver clearly appears to be told the sample rate of the audio data it receives. The driver would then pass the data to the CODEC that communicates to the DAC chip via I2S. So, at a high level, the sample rate information is sent to the DAC. At a low level, the DAC chip uses a clock to determine the sample rate. None of that nullifies what I wrote in my first post.
     
  19. ultrabike

    ultrabike Measurbator - Admin

    Staff Member Pyrate MZR
    Joined:
    Sep 25, 2015
    Likes Received:
    8,960
    Trophy Points:
    113
    Location:
    Irvine CA
    The driver IC and the DAC share a programmable I2C/SPI interface for control. Not just I2S.

    I haven't fully read the datasheets, but at least bit depth is a R/W register available through I2C/SPI on some DACs. Sample rate might be inferred for PCM operation.
     
  20. ultrabike

    ultrabike Measurbator - Admin

    Staff Member Pyrate MZR
    Joined:
    Sep 25, 2015
    Likes Received:
    8,960
    Trophy Points:
    113
    Location:
    Irvine CA
    Had to make some edits to posts above in order for them to make sense (mixed I2S and I2C wording, bit rate and bit depth ...) Sorry about that.
     

Share This Page