Home of the Squeezebox™ & Transporter® network music players.
Page 103 of 113 FirstFirst ... 35393101102103104105 ... LastLast
Results 1,021 to 1,030 of 1123
  1. #1021
    Senior Member
    Join Date
    Jul 2017
    Posts
    125
    Quote Originally Posted by jofland View Post
    Setting reg4 = 48 turns sound (noise) on; reg4 = 12 turns it of. So the speaker output is mapped to OUT1.

    Setting reg8 to 0, 128, 1 or 127 makes no difference to the random noise. Actually there is no change in master or slave mode recognizable.

    ==> So I assume next we should concentrate on bck, ws and do.
    Sorry if you already know this...

    Have you tried "Examine registers visible through the I2C bus"? It will show all the registers.

    I used "Set registers visible through the I2C bus" to change resisters quickly, then used dac_controlset later.

    I became real thankful for Hex <---> Decimal <---> Binary calculators!

    Good Luck!

  2. #1022
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    7,497
    Quote Originally Posted by jofland View Post
    Setting reg4 = 48 turns sound (noise) on; reg4 = 12 turns it of. So the speaker output is mapped to OUT1.

    Setting reg8 to 0, 128, 1 or 127 makes no difference to the random noise. Actually there is no change in master or slave mode recognizable.

    ==> So I assume next we should concentrate on bck, ws and do.
    I think this is the right config

    model=i2s,bck=27,ws=26,do=25,sda=18,scl=23,i2c=16

    But you need to write register 23 and maybe 24, but at least 23 should be

    [0 0 011 00 X] = 24

    for 16 bits serial output, that's likely the reason of the noise

    Don't use the 32 bits version of squeezelite-esp32, I don't recommend it anyway

    [edit]: if you can make it work, I'll add it to the well-known codecs
    Last edited by philippe_44; 2021-07-21 at 19:15.
    LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

  3. #1023
    Junior Member
    Join Date
    Jul 2021
    Posts
    9
    Quote Originally Posted by philippe_44 View Post
    I think this is the right config

    model=i2s,bck=27,ws=26,do=25,sda=18,scl=23,i2c=16

    But you need to write register 23 and maybe 24, but at least 23 should be

    [0 0 011 00 X] = 24

    I've reproduced jofland's result of some garbled noise when streaming a song with the following settings:

    dac_config model=I2S,bck=27,ws=26,do=25,sda=18,scl=23,i2c=16
    set_GPIO 21=amp
    dac_controlset {"init":[{"reg":8,"val":0},{"reg":4,"val":60}]}
    With all other settings left at their defaults.

    I then added {"reg":23,"val":24} to dac_controlset with no change after rebooting.
    After that I added {"reg":24,"val":24} and tested all values from 0 to 24, rebooting each time however none of these settings made any change to the output audio.


    To me the noise I'm hearing sounds like the CPU noise you hear on a poor quality PC sound card. There is a audible 'pop' when rebooting the A1S and after pausing a song, the noise becomes quieter with less pops and clicks before muting after around 31 seconds. If the audio is simply not being parsed properly I would expect that the volume should work but as jofland reported, the volume has no effect. Not sure if this is useful but maybe a clue.

    If we're focusing on the dac_config settings above for now, let me know what dac_controlset values to try next and I'll keep testing.
    Last edited by Tonic; 2021-07-21 at 20:16.

  4. #1024
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    7,497
    I then added {"reg":23,"val":24} to dac_controlset with no change after rebooting.
    After that I added {"reg":24,"val":24} and tested all values from 0 to 24, rebooting each time however none of these settings made any change to the output audio.
    If we're focusing on the dac_config settings above for now, let me know what dac_controlset values to try next and I'll keep testing.
    Thanks - When you say all values form 0 to 24, do you mean for the val or reg? b/c the reg shall be 23, not 24
    LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

  5. #1025
    Junior Member
    Join Date
    Jul 2021
    Posts
    9
    Quote Originally Posted by philippe_44 View Post
    Thanks - When you say all values form 0 to 24, do you mean for the val or reg? b/c the reg shall be 23, not 24
    I tested values 0 to 24 for reg:24 while reg:23 was set to val:24. So there's no confusion, here's what I tried, none of which made any difference to the output sound:

    {"init":[{"reg":8,"val":0},{"reg":4,"val":60}]}
    {"init":[{"reg":8,"val":0},{"reg":4,"val":60},{"reg":23,"va l":24}]}
    {"init":[{"reg":8,"val":0},{"reg":4,"val":60},{"reg":23,"va l":24},{"reg":24,"val":0}]}
    {"init":[{"reg":8,"val":0},{"reg":4,"val":60},{"reg":23,"va l":24},{"reg":24,"val":1}]}
    ...
    {"init":[{"reg":8,"val":0},{"reg":4,"val":60},{"reg":23,"va l":24},{"reg":24,"val":23}]}
    {"init":[{"reg":8,"val":0},{"reg":4,"val":60},{"reg":23,"va l":24},{"reg":24,"val":24}]}

    It sounds like I misunderstood when you said "you need to write register 23 and maybe 24", let me know what you'd like me to test next.

    Edit: Not sure why the forum is adding a space in "val" above, the text I used has no spaces.
    Last edited by Tonic; 2021-07-21 at 22:58.

  6. #1026
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    7,497
    Quote Originally Posted by Tonic View Post
    I tested values 0 to 24 for reg:24 while reg:23 was set to val:24. So there's no confusion, here's what I tried, none of which made any difference to the output sound:

    {"init":[{"reg":8,"val":0},{"reg":4,"val":60}]}
    {"init":[{"reg":8,"val":0},{"reg":4,"val":60},{"reg":23,"va l":24}]}
    {"init":[{"reg":8,"val":0},{"reg":4,"val":60},{"reg":23,"va l":24},{"reg":24,"val":0}]}
    {"init":[{"reg":8,"val":0},{"reg":4,"val":60},{"reg":23,"va l":24},{"reg":24,"val":1}]}
    ...
    {"init":[{"reg":8,"val":0},{"reg":4,"val":60},{"reg":23,"va l":24},{"reg":24,"val":23}]}
    {"init":[{"reg":8,"val":0},{"reg":4,"val":60},{"reg":23,"va l":24},{"reg":24,"val":24}]}

    It sounds like I misunderstood when you said "you need to write register 23 and maybe 24", let me know what you'd like me to test next.

    Edit: Not sure why the forum is adding a space in "val" above, the text I used has no spaces.
    Maybe try

    {"init":[{"reg":8,"val":0},{"reg":4,"val":0},{"reg":23,"val ":24}]}

    And if this still does not work, I don't know, I would need probably to try myself or we need to find some example code of that DAC in slave mode
    LMS 8.2 on Odroid-C4 - SqueezeAMP!, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3

  7. #1027
    Junior Member
    Join Date
    Jul 2021
    Posts
    9
    Quote Originally Posted by philippe_44 View Post
    Maybe try

    {"init":[{"reg":8,"val":0},{"reg":4,"val":0},{"reg":23,"val ":24}]}

    And if this still does not work, I don't know, I would need probably to try myself or we need to find some example code of that DAC in slave mode
    reg:4 val:0 mutes the audio.

    Edit: Scratch that, reg:4 val:0 doesn't mute but the output is very quiet. Still garbled though unfortunately.
    Last edited by Tonic; 2021-07-22 at 02:05.

  8. #1028
    I think that maybe I had a similar noise problem with the ES9038 chip on this board:

    https://a.aliexpress.com/_vEC3nr

    It was also producing a heavily garbled output. The sound was hearable but with much noise added. Additionaly it seemed that only one channel was playing. My fix for this problem was to use the 32bit version of squeezelite-ESP32. The noise was gone and the board played fine on two channels.

    I'm not an expert but I think philippe_44 is probably right with his suggestion to configure the DAC to use 16bit input. In a first step you could also try the 32bit version of squeezelite-ESP32 to see if it makes any difference.

  9. #1029
    Junior Member
    Join Date
    Jul 2021
    Posts
    9
    So I read the ES8388 User Guide and am up to speed on how the registers work. I've tried a bunch of different settings but no luck yet.

    I also tried the 32 bit version of Squeezelite-ESP32 and set reg:23 to val:16 to set the DAC to 32bit but no change; still garbled output.

    Perhaps another component other than the DAC has changed on this version of the A1S?

    I'll keep testing...

  10. #1030
    Senior Member
    Join Date
    Jul 2017
    Posts
    125
    Quote Originally Posted by Tonic View Post
    So I read the ES8388 User Guide and am up to speed on how the registers work. I've tried a bunch of different settings but no luck yet.

    I also tried the 32 bit version of Squeezelite-ESP32 and set reg:23 to val:16 to set the DAC to 32bit but no change; still garbled output.

    Perhaps another component other than the DAC has changed on this version of the A1S?

    I'll keep testing...
    As I read it, Word length bits are 5:3 in DACWL.

    Decimal 16 equals 00 010 000, so you are setting the DAC to 18 bits???

    Seems like you should set reg:23 to val:32 (00 100 000) 32 bits, unless my coffee hasn't kicked in yet.

    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •