Can I install MODEP without Patchbox?

I’m guessing that sound card does not have a driver to be used with a Rpi3. It looks like a card made specifically for a Pi Zero?

You can use the iqaudio codec zero driver for this as that is what the card actually is. We use this card in pi-stomp

ok deathboard, can you please provide me the driver ? Sorry, I’ve no idea .

I used RPI Zero 2w with piiq codec zero but didn’t get result .

Add this to your config.txt
dtoverlay=iqaudio-codec
iqaudiocodec.state.txt (17.5 KB)
Rename the state file to .state without the txt and upload. Then sudo alsactl restore -f iqaudiocodec.state

Ok, Thanks a lot . I’ll try it and will inform .

when I did all process and use this command - sudo alsactl restore -f iqaudiocodec.state

it’s saying

No state is present for card vc4hdmi
alsa-lib main.c:1014:(snd_use_case_mgr_open) error: failed to import hw:1 use case configuration -2
Found hardware: β€œvc4-hdmi” β€œβ€ β€œβ€ β€œβ€ β€œβ€
Hardware is initialized using a generic method
No state is present for card vc4hdmi

Ah, you need to comment out the internal audio card in config.txt

dtparam=audio

1 Like

I do this but no luck . Please tell me one thing , does patchbox os support rpi zero w ?

after use the command, got errors :

alsactl: set_control:1461: Cannot write control β€˜2:0:0:Mic 1 Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Mic 2 Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Mixin PGA Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ADC Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Headphone Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Lineout Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC EQ Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC EQ1 Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC EQ2 Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC EQ3 Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC EQ4 Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC EQ5 Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ADC HPF Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ADC HPF Cutoff:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ADC Voice Mode Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ADC Voice Cutoff:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC HPF Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC HPF Cutoff:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC Voice Mode Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC Voice Cutoff:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Mic 1 Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Mic 2 Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Aux Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Mixin PGA Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ADC Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Headphone Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Lineout Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Aux ZC Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Mixin PGA ZC Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Headphone ZC Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Aux Gain Ramping Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Mixin Gain Ramping Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ADC Gain Ramping Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC Gain Ramping Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Headphone Gain Ramping Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:Lineout Gain Ramping Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DAC Mono Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:DMIC Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ALC Switch:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ALC Max Threshold Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ALC Max Attenuation Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ALC Max Gain Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ALC Min Analog Gain Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ALC Max Analog Gain Volume:0’ : Remote I/O error
alsactl: set_control:1461: Cannot write control β€˜2:0:0:ALC Anticlip Mode Switch:0’ : Remote I/O error

Can you paste the contents of your config.txt here for me to see?

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=960
#framebuffer_height=640

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
hdmi_cvt = 480 320 60 5
# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=87

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
#dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d,audio=off
max_framebuffers=2

# Disable compensation for displays with overscan
#disable_overscan=0

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]
dtoverlay=iqaudio-codec

Try commenting this out too.

What is the output of aplay -l and arecord-l

Ok, I’ll inform you tomorrow .

1 Like

aplay -l result :

**** List of PLAYBACK Hardware Devices ****
card 0: IQaudIOCODEC [IQaudIOCODEC], device 0: IQaudIO CODEC HiFi v1.2 da7213-hifi-0 [IQaudIO CODEC HiFi v1.2 da7213-hifi-0]
Subdevices: 0/1
Subdevice #0: subdevice #0

arecord -l result :

**** List of CAPTURE Hardware Devices ****
card 0: IQaudIOCODEC [IQaudIOCODEC], device 0: IQaudIO CODEC HiFi v1.2 da7213-hifi-0 [IQaudIO CODEC HiFi v1.2 da7213-hifi-0]
Subdevices: 0/1
Subdevice #0: subdevice #0

Did all steps but no luck . got same result .

This my hat details

Everything works fine but a generate a noise after some time . Please do something .