Home of the Squeezebox™ & Transporter® network music players.
Page 83 of 83 FirstFirst ... 3373818283
Results 821 to 830 of 830
  1. #821
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,912
    rpi-dac is just a generic i2s interface. Very simple. The source code is in the RPI kernel github.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #822
    Junior Member
    Join Date
    Apr 2019
    Posts
    13
    Thanks, I'll have to take a look at that sometime.

    2 follow ups:
    1) If I make changes to it, how difficult would it be to add the modified driver to pCP ?
    2) Are you familiar with the driver discussed in the thread I linked in the previous post?

  3. #823
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,912
    Quote Originally Posted by itsikhefez View Post
    1) If I make changes to it, how difficult would it be to add the modified driver to pCP ?
    It can be done, but a bit on the cumbersome side. What I would suggest you do is to make a driver with DKMS build scripts. Then test it out on a raspbian image.

    2) Are you familiar with the driver discussed in the thread I linked in the previous post?
    That thread is very old. Everything has evolved significantly since then.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #824
    Junior Member
    Join Date
    Apr 2009
    Posts
    4
    Quote Originally Posted by paul- View Post
    I'm not sure I have a good solution for the NAS, You could increase the number of mount retries.....

    As for the date issue, in pCP6, I've just added date check to the LMS start sequence. You could make the same edits on your side
    Thanks for the reply! Increasing the number of mount retries sounds like a good idea - sorry if it's obvious but how would I do that? I'm setting up the mount using the web UI at the moment, and have upgraded to version 5 now in case this was a new option. Equally how would I go about adding the date check to LMS startup?

  5. #825
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,912
    I would just upgrade to 6.0.0 its 99% final.

    For now, you will need to edit. I'll consider better ways to do this in the future.

    /usr/local/etc/init.d/pcp_startup.sh

    goto line 644, which looks like the below, and then increase the number of retries. There is 10 seconds between each retry.

    Code:
    			RETRIES=3  # Retry network mounts, in case of power failure, and all devices restarting.
    			while [ $RETRIES -gt 0 ]; do
    				/bin/sh -c "mount ${MNTCMD}"
    				if [ $? -eq 0 ]; then
    					RETRIES=0
    					echo "${BLUE}Disk Mounted at /mnt/${PNT}."
    				else
    					RETRIES=$((RETRIES-1))
    					if [ $RETRIES -eq 0 ]; then
    						echo "${RED}Disabling network mount from server at ${IP}.${NORMAL}"
    						cp -f $NETMOUNTCONF /tmp/netconf
    						cat /tmp/netconf | awk '/^\[/ {m++}{if(m=='$I')sub("NETENABLE\=yes","NETENABLE\=no")}1' > $NETMOUNTCONF
    						LMSMOUNTFAIL="1"
    					else
    						echo "${RED}Disk Mount Error, Retrying $RETRIES more times...sleeping 10 seconds.${YELLOW}"
    						sleep 10
    					fi
    				fi
    			done
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #826
    Junior Member
    Join Date
    Apr 2019
    Posts
    13
    Quote Originally Posted by paul- View Post
    The driver would have to reference the correct codec. Would the cirrus logic card be the same? Do you know if someone has a driver built for this?
    I found the codec implemented for the WM8741 (which is the DAC chip I'm using) in the RPI github repo.
    https://github.com/raspberrypi/linux...odecs/wm8741.c

    Does this make it easier to integrate to PCP ?

  7. #827
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,912
    That codec is included with pCP, but you need a driver that implements the codec for your board.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #828
    Junior Member
    Join Date
    Apr 2019
    Posts
    13
    I've got raspbian setup and am perusing around https://github.com/raspberrypi/linux.../sound/soc/bcm

    I'm thinking of using `rpi-proto` as a baseline and adapting to WM8741, or add another option in `rpi-simple-soundcard` that references the wm8741.

    I've downloaded those source files locally and am a bit stuck on how to build, install and load the new module.
    (Whether its a new source file based on `rpi-proto` or a modified version of the simple soundcard).

    The `sound/soc/bcm` folder looks to be updated regularly with new drivers so this seems to be a pretty common thing.
    Are you familiar with any resource or guide that helps ramp up on the development process?

  9. #829
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,912
    Like I previously mentioned doing it in Raspbian first is going to be easier, since there is full DKMS support. Plus you have the Rasperry PI forums that have many more users to help. Once you get a working driver, I can help with pCP if you want.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  10. #830
    Junior Member
    Join Date
    Apr 2019
    Posts
    13
    Right.. that makes more sense... let me go over to that forum and come back once its working in Raspbian

Posting Permissions

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