Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 41

Hybrid View

  1. #1
    Member
    Join Date
    Feb 2020
    Location
    Sacramento, CA
    Posts
    32

    No output Raspberrypi zero W with Google voicehat

    I have a bug or problem with 4, 5, 6. using a rasberry pi zero W with a Google voicehat version 2.

    With piCorePlayer there is no sound output at the headphone jack or the speaker. alsamixer reports no controls for the voicehat.

    With Raspbian Lite + Squezelite I get output from the headphone jack and the speaker. alsamixer reports many google voicehat options.

    I have found mention of people getting the voicehat to work but not any mention of which version of the hat, version 1 or version 2.

    has any one had a problem with version2 and found a way to fix it?

    current Output setting:
    sysdefault:CARD=sndrpigooglevoi

    have also tried: hw:CARD=sndrpigooglevoi and blank

    tc@aiypiCorePlayer:~$ squeezelite -l
    Output devices:
    null - Discard all samples (playback) or generate zero samples (capture)
    sysdefault:CARD=sndrpigooglevoi - snd_rpi_googlevoicehat_soundcar, - Default Audio Device

    tc@aiypiCorePlayer:~$ squeezelite -L
    Volume controls for default

    [ INFO ] /usr/local/etc/pcp/pcp.cfg
    WIFI="on"
    DEBUG="0"
    MODE="30"
    TEST="0"
    NAME="aiypiCorePlayer"
    OUTPUT="sysdefault:CARD=sndrpigooglevoi"
    ALSA_PARAMS="80:4::1:"
    BUFFER_SIZE=""
    _CODEC=""
    XCODEC=""
    PRIORITY=""
    MAX_RATE=""
    UPSAMPLE=""
    MAC_ADDRESS=""
    SERVER_IP=""
    LOGLEVEL=""
    LOGFILE=""
    DSDOUT=""
    VISUALISER=""
    CLOSEOUT=""
    UNMUTE=""
    ALSAVOLUME=""
    OTHER=""
    AUDIO="googlevoicehat"
    AUDIOBOOTSCRIPT=""
    HOST="aiypiCorePlayer"
    TIMEZONE="PST8PDT,M3.2.0,M11.1.0"
    CPUGOVERNOR="ondemand"
    OVERCLOCK="NONE"
    ADVOVERCLOCK="None"
    CPUISOL=""
    SQLAFFINITY=""
    SQLOUTAFFINITY=""
    CMD="Default"
    FIQ="0xF"
    ALSAlevelout="Default"
    ALSAeq="no"
    STREAMER="no"
    REBOOT="Disabled"
    RB_H="0"
    RB_WD="*"
    RB_DMONTH="*"
    RESTART="Disabled"
    RS_H="0"
    RS_WD="*"
    RS_DMONTH="*"
    CRON_COMMAND=""
    AUTOSTARTLMS=""
    A_S_LMS="Disabled"
    AUTOSTARTFAV=""
    A_S_FAV="Disabled"
    USER_COMMAND_1=""
    USER_COMMAND_2=""
    USER_COMMAND_3=""
    JIVELITE="no"
    SCREENROTATE="180"
    JL_SCREEN_WIDTH="0"
    JL_SCREEN_HEIGHT="0"
    SHAIRPORT="yes"
    LMSERVER="no"
    LMSDATA="default"
    SQLT_VERSION="basic"
    SQBINARY="default"
    SQUEEZELITE="yes"
    POWER_GPIO=""
    POWER_OUTPUT="L"
    POWER_SCRIPT=""
    GPIOPOWEROFF="no"
    GPIOPOWEROFF_GPIO="17"
    GPIOPOWEROFF_HI="yes"
    GPIOSHUTDOWN="no"
    GPIOSHUTDOWN_GPIO="22"
    GPIOSHUTDOWN_HI="yes"
    GPIOSHUTDOWN_PU="down"
    IR_LIRC="no"
    IR_KEYTABLES="no"
    IR_GPIO_IN="25"
    IR_GPIO_OUT=""
    IR_DEVICE="lirc0"
    IR_CONFIG=""
    LMSWEBPORT=""
    FSM="Default"
    LMSCONTROLS="yes"
    PLAYERTABS="yes"
    HDMIPOWER="on"
    APMODE="no"
    AP_IP=""
    RPI3INTWIFI="on"
    RPIBLUETOOTH="off"
    SAMBA="disabled"
    WOL="no"
    WOL_NIC=""
    WOL_LMSMACADDRESS=""
    SPARAMS1=""
    SPARAMS2=""
    SPARAMS3=""
    SPARAMS4=""
    SPARAMS5=""
    INTERNET_CHECK_IP=""
    ROTDASH="no"
    SHAIRPORT_OUT="hw:CARD=sndrpigooglevoi"
    SHAIRPORT_CONTROL=""
    NETWORK_WAIT="50"
    GUI_DISABLE="0"
    WWW_PORT="80"

    Name:  Screenshot_2020-02-03 pCP - Squeezelite Settings.png
Views: 425
Size:  59.1 KB

    Thanks for any ideas
    Greg Frye

  2. #2
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,046
    I never have luck with sysdefault. Can you try the latest 6.0.0. And post the same screenshot. Of the squeezelite page.

    Also, go to the diagnostics page. Post the dmesg section. And the lsmod section.

    If you still have a Raspbian card......can you grab lsmod output too?
    Last edited by paul-; 2020-02-03 at 19:08.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #3
    Member
    Join Date
    Feb 2020
    Location
    Sacramento, CA
    Posts
    32

    lsmod for PCP and lsmod for raspian - different sound modules

    output squeezelite-running device

    null
    default
    pcpinput
    plugequal
    equal
    no yes sysdefault:CARD=ALSA
    no yes hw:CARD=ALSA,DEV=0
    no yes hw:CARD=ALSA,DEV=1
    no yes hw:CARD=ALSA,DEV=2
    no yes plughw:CARD=ALSA,DEV=0
    no yes plughw:CARD=ALSA,DEV=1
    no yes plughw:CARD=ALSA,DEV=2
    no yes sysdefault:CARD=sndrpigooglevoi
    no yes hw:CARD=sndrpigooglevoi,DEV=0
    no yes plughw:CARD=sndrpigooglevoi,DEV=0


    [ INFO ] Squeezelite Output devices

    Output devices:
    null - Discard all samples (playback) or generate zero samples (capture)
    default
    pcpinput
    plugequal
    equal
    sysdefault:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device
    dmix:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample mixing device
    dmix:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample mixing device
    dmix:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct sample mixing device
    dsnoop:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample snooping device
    dsnoop:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample snooping device
    dsnoop:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct sample snooping device
    hw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct hardware device without any conversions
    hw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct hardware device without any conversions
    hw:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct hardware device without any conversions
    plughw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Hardware device with all software conversions
    plughw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Hardware device with all software conversions
    plughw:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Hardware device with all software conversions
    sysdefault:CARD=sndrpigooglevoi - snd_rpi_googlevoicehat_soundcar, Google voiceHAT SoundCard HiFi voicehat-codec-0 - Default Audio Device
    dmix:CARD=sndrpigooglevoi,DEV=0 - snd_rpi_googlevoicehat_soundcar, Google voiceHAT SoundCard HiFi voicehat-codec-0 - Direct sample mixing device
    dsnoop:CARD=sndrpigooglevoi,DEV=0 - snd_rpi_googlevoicehat_soundcar, Google voiceHAT SoundCard HiFi voicehat-codec-0 - Direct sample snooping device
    hw:CARD=sndrpigooglevoi,DEV=0 - snd_rpi_googlevoicehat_soundcar, Google voiceHAT SoundCard HiFi voicehat-codec-0 - Direct hardware device without any conversions
    plughw:CARD=sndrpigooglevoi,DEV=0 - snd_rpi_googlevoicehat_soundcar, Google voiceHAT SoundCard HiFi voicehat-codec-0 - Hardware device with all software conversions

    [ INFO ] Squeezelite process

    /usr/local/bin/squeezelite -n aiy6piCorePlayer -o plughw:CARD=sndrpigooglevoi,DEV=0 -a 80 4 1

    [ INFO ] Current pcp.cfg

    WIFI="on"
    DEBUG="0"
    MODE="10"
    TEST="0"
    NAME="aiy6piCorePlayer"
    PCP_CUR_REPO="1"
    THEME="Light"
    OUTPUT="plughw:CARD=sndrpigooglevoi,DEV=0"
    ALSA_PARAMS="80:4::1:"
    BUFFER_SIZE=""
    _CODEC=""
    XCODEC=""
    PRIORITY=""
    MAX_RATE=""
    UPSAMPLE=""
    MAC_ADDRESS=""
    SERVER_IP=""
    LOGLEVEL=""
    LOGFILE=""
    DSDOUT=""
    VISUALISER=""
    CLOSEOUT=""
    UNMUTE=""
    ALSAVOLUME=""
    OTHER=""
    AUDIO="googlevoicehat"
    AUDIOBOOTSCRIPT=""
    HOST="piCorePlayer"
    TIMEZONE="PST8PDT,M3.2.0,M11.1.0"
    CPUGOVERNOR="ondemand"
    OVERCLOCK="NONE"
    ADVOVERCLOCK="None"
    CPUISOL=""
    SQLAFFINITY=""
    SQLOUTAFFINITY=""
    CMD="Default"
    FIQ="0xF"
    ALSAlevelout="Default"
    ALSAeq="no"
    STREAMER="no"
    REBOOT="Disabled"
    RB_H="0"
    RB_WD="*"
    RB_DMONTH="*"
    RESTART="Disabled"
    RS_H="0"
    RS_WD="*"
    RS_DMONTH="*"
    CRON_COMMAND=""
    AUTOSTARTLMS=""
    A_S_LMS="Disabled"
    AUTOSTARTFAV=""
    A_S_FAV="Disabled"
    USER_COMMAND_1=""
    USER_COMMAND_2=""
    USER_COMMAND_3=""
    JIVELITE="no"
    SCREENROTATE="180"
    JL_SCREEN_WIDTH="0"
    JL_SCREEN_HEIGHT="0"
    SHAIRPORT="no"
    LMSERVER="no"
    LMSDATA="default"
    SQLT_VERSION="basic"
    SQBINARY="default"
    SQUEEZELITE="yes"
    POWER_GPIO=""
    POWER_OUTPUT="L"
    POWER_SCRIPT=""
    GPIOPOWEROFF="no"
    GPIOPOWEROFF_GPIO="17"
    GPIOPOWEROFF_HI="yes"
    GPIOSHUTDOWN="no"
    GPIOSHUTDOWN_GPIO="22"
    GPIOSHUTDOWN_HI="yes"
    GPIOSHUTDOWN_PU="down"
    IR_LIRC="no"
    IR_KEYTABLES="no"
    IR_GPIO_IN="25"
    IR_GPIO_OUT=""
    IR_DEVICE="lirc0"
    IR_CONFIG=""
    LMSWEBPORT=""
    FSM="Default"
    LMSCONTROLS="yes"
    PLAYERTABS="yes"
    HDMIPOWER="on"
    APMODE="no"
    AP_IP=""
    RPI3INTWIFI="on"
    RPIBLUETOOTH="off"
    SAMBA="disabled"
    WOL="no"
    WOL_NIC=""
    WOL_LMSMACADDRESS=""
    SPARAMS1=""
    SPARAMS2=""
    SPARAMS3=""
    SPARAMS4=""
    SPARAMS5=""
    INTERNET_CHECK_IP=""
    ROTDASH="no"
    SHAIRPORT_OUT="hw:CARD=sndrpigooglevoi"
    SHAIRPORT_CONTROL=""
    NETWORK_WAIT="50"
    GUI_DISABLE="0"
    WWW_PORT="80"

    [ INFO ] Current bootsync.sh

    #!/bin/sh
    # put other system startup commands here, the boot process will wait until they complete.
    # Use bootlocal.sh for system startup commands that can run in the background
    # and therefore not slow down the boot process.

    TCEMNT="/mnt/$(readlink /etc/sysconfig/tcedir | cut -d '/' -f3)"
    [ -f /home/tc/www/cgi-bin/autoresize.sh ] && (. /home/tc/www/cgi-bin/autoresize.sh 2>&1 | tee -a ${TCEMNT}/tce/pcp_resize.log)
    /usr/bin/sethostname "piCorePlayer"
    /opt/bootlocal.sh &

    [ INFO ] Current bootlocal.sh

    #!/bin/sh
    # put other system startup commands here

    GREEN="$(echo -e '\033[1;32m')"

    echo
    echo "${GREEN}Running bootlocal.sh..."
    #pCPstart------
    /home/tc/www/cgi-bin/pcp_startup.sh 2>&1 | tee -a /var/log/pcp_boot.log
    #pCPstop------

    end of part 1
    Hopefull this helps! Thanks, Greg

  4. #4
    Member
    Join Date
    Feb 2020
    Location
    Sacramento, CA
    Posts
    32

    part 2

    part 2

    [ INFO ] Current /opt/.filetool.lst

    opt
    home
    etc/asound.conf
    etc/group
    etc/gshadow
    etc/httpd.conf
    etc/passwd
    etc/shadow
    usr/local/etc/pointercal
    usr/local/etc/ssh/ssh_host_dsa_key
    usr/local/etc/ssh/ssh_host_dsa_key.pub
    usr/local/etc/ssh/ssh_host_ecdsa_key
    usr/local/etc/ssh/ssh_host_ecdsa_key.pub
    usr/local/etc/ssh/ssh_host_ed25519_key
    usr/local/etc/ssh/ssh_host_ed25519_key.pub
    usr/local/etc/ssh/ssh_host_rsa_key
    usr/local/etc/ssh/ssh_host_rsa_key.pub
    usr/local/etc/pcp
    var/lib/alsa/asound.state
    var/spool/cron/crontabs

    [ INFO ] lsmod

    Module Size Used by
    spidev 16384 0
    brcmfmac 290816 0
    brcmutil 16384 1 brcmfmac
    sha256_generic 20480 0
    snd_soc_rpi_simple_soundcard 16384 1
    snd_soc_googlevoicehat_codec 16384 1
    snd_bcm2835 24576 0
    cfg80211 606208 1 brcmfmac
    snd_soc_bcm2835_i2s 16384 2
    regmap_mmio 16384 1 snd_soc_bcm2835_i2s
    rfkill 28672 1 cfg80211
    snd_soc_core 188416 3 snd_soc_googlevoicehat_codec,snd_soc_bcm2835_i2s,s nd_soc_rpi_simple_soundcard
    snd_compress 20480 1 snd_soc_core
    snd_pcm_dmaengine 16384 1 snd_soc_core
    snd_pcm 98304 6 snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_bcm2835, snd_soc_core,snd_soc_rpi_simple_soundcard
    snd_timer 32768 1 snd_pcm
    snd 69632 6 snd_compress,snd_timer,snd_bcm2835,snd_soc_core,sn d_pcm
    spi_bcm2835 20480 0
    fixed 16384 0
    squashfs 45056 34
    sch_fq_codel 20480 2
    lz4 16384 1
    lz4_compress 69632 1 lz4
    zram 24576 1
    zsmalloc 24576 1 zram
    evdev 24576 0
    raspberrypi_hwmon 16384 0
    hwmon 16384 1 raspberrypi_hwmon
    i2c_bcm2835 16384 0


    =======================================
    raspbian + squeezelite

    pi@raspberrypi:~ $ lsmod
    Module Size Used by
    cmac 16384 1
    rfcomm 53248 6
    bnep 20480 2
    joydev 20480 0
    hci_uart 40960 1
    btbcm 16384 1 hci_uart
    serdev 20480 1 hci_uart
    bluetooth 405504 29 hci_uart,bnep,btbcm,rfcomm
    ecdh_generic 28672 2 bluetooth
    usb_f_ecm 16384 2
    u_ether 20480 1 usb_f_ecm
    aiy_adc 16384 0
    8021q 32768 0
    garp 16384 1 8021q
    stp 16384 1 garp
    llc 16384 2 garp,stp
    industrialio 73728 1 aiy_adc
    gpio_aiy_io 16384 0
    pwm_aiy_io 16384 0
    leds_ktd202x 16384 0
    evdev 24576 12
    aiy_io_i2c 16384 3 aiy_adc,gpio_aiy_io,pwm_aiy_io
    libcomposite 61440 10 usb_f_ecm
    brcmfmac 290816 0
    brcmutil 16384 1 brcmfmac
    sha256_generic 20480 0
    snd_aiy_voicebonnet 16384 2
    dwc2 167936 0
    cfg80211 610304 1 brcmfmac
    rt5645 102400 2 snd_aiy_voicebonnet
    rl6231 16384 1 rt5645
    snd_soc_bcm2835_i2s 20480 2
    regmap_mmio 16384 1 snd_soc_bcm2835_i2s
    raspberrypi_hwmon 16384 0
    hwmon 16384 1 raspberrypi_hwmon
    rfkill 28672 6 bluetooth,cfg80211
    snd_soc_core 188416 3 snd_aiy_voicebonnet,rt5645,snd_soc_bcm2835_i2s
    udc_core 49152 4 usb_f_ecm,dwc2,u_ether,libcomposite
    snd_compress 20480 1 snd_soc_core
    snd_pcm_dmaengine 16384 1 snd_soc_core
    i2c_bcm2835 16384 0
    snd_pcm 98304 5 snd_pcm_dmaengine,rt5645,snd_soc_bcm2835_i2s,snd_s oc_core
    snd_timer 32768 1 snd_pcm
    snd 73728 7 snd_compress,snd_timer,snd_soc_core,snd_pcm
    bcm2835_codec 36864 0
    v4l2_mem2mem 24576 1 bcm2835_codec
    bcm2835_v4l2 45056 0
    bcm2835_mmal_vchiq 32768 2 bcm2835_codec,bcm2835_v4l2
    v4l2_common 16384 1 bcm2835_v4l2
    videobuf2_dma_contig 20480 1 bcm2835_codec
    videobuf2_vmalloc 16384 1 bcm2835_v4l2
    videobuf2_memops 16384 2 videobuf2_dma_contig,videobuf2_vmalloc
    videobuf2_v4l2 24576 3 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
    videobuf2_common 45056 4 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_ v4l2
    videodev 192512 6 bcm2835_codec,v4l2_common,videobuf2_common,bcm2835 _v4l2,v4l2_mem2mem,videobuf2_v4l2
    media 36864 3 bcm2835_codec,videodev,v4l2_mem2mem
    vc_sm_cma 36864 1 bcm2835_mmal_vchiq
    uio_pdrv_genirq 16384 0
    uio 20480 1 uio_pdrv_genirq
    fixed 16384 0
    pwm_soft 36864 0
    i2c_dev 16384 0
    ip_tables 24576 0
    x_tables 32768 1 ip_tables
    ipv6 446464 32
    pi@raspberrypi:~ $

    end of part 2

    I left off dmesg

    Thanks, Greg

  5. #5
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,046
    Raspbian is using out of tree drivers......not the google voice hat in tree kernel module.

    Look at all of the “aiy” modules. Unfortunately, we don’t have a dkms system on piCore. Although it’s still possible to build them manually.

    Can you post a link to the source.....
    Last edited by paul-; 2020-02-04 at 19:31.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  6. #6
    Member
    Join Date
    Feb 2020
    Location
    Sacramento, CA
    Posts
    32
    Quote Originally Posted by paul- View Post
    Raspbian is using out of tree drivers......not the google voice hat in tree kernel module.

    Look at all of the “aiy” modules. Unfortunately, we don’t have a dkms system on piCore. Although it’s still possible to build them manually.

    Can you post a link to the source.....
    Hi Paul

    is this the code that you need?
    https://github.com/opencardev/aiy-vo...rd-dkms-driver

    Thanks,
    Greg

Tags for this Thread

Posting Permissions

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