Hi, 
I realized that my custom dtoverlay setting in the config.txt get
removed when I enable my Hifiberry card.
I found for HifiBerry-DAC the function "pcp_remove_dt" is called but for
all other sound-cards the function "pcp_disable_i2s"
Unfortunately "pcp_remove_dt" removes all dtoverlay setting in the
config.txt, but "pcp_disable_i2s"is more carefully. 


Code:
--------------------
    
  File: pcp-functions
  
#========================================================================================
  # Load the correct modules for HiFiBerry DAC
  
#----------------------------------------------------------------------------------------
  pcp_enable_i2s_dac() {
        pcp_remove_dt
        sudo echo dtoverlay=hifiberry-dac >> $CONFIGTXT
  }
  
  
#========================================================================================
  # Load the correct modules for HiFiBerry Digi and HiFiBerry Digi+
  
#----------------------------------------------------------------------------------------
  pcp_enable_i2s_digi() {
        pcp_disable_i2s
        sudo echo dtoverlay=hifiberry-digi >> $CONFIGTXT
  }
  
--------------------


I case of HifiBerry-DAC could the cleanup function be changed to
"pcp_disable_i2s" as well?

Thank you!

btw: I'm using piCorePlayer 2.02


------------------------------------------------------------------------
moguu's Profile: http://forums.slimdevices.com/member.php?userid=58518
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to