1# 2# Configuration for the pistachio chip. 3# 4# The data sheet of the chip and technical reference manual can be 5found at 6https://docs.creatordev.io/ci40/guides/hardwaredocs/cXT200_datasheet2.p 7df # and 8https://docs.creatordev.io/ci40/guides/hardwaredocs/MIPS_Creator_cXT200_Technical_Reference_Manual_1.0.112.pdf. 9# 10# The list of hardware devices is as per below: 11# 12# root@OpenWrt:/# arecord -l 13# **** List of CAPTURE Hardware Devices **** card 0: pistachiocard [pistachio-card], device 1: pistachio-spdif-in snd-soc-dummy-dai-1 [] 14# Subdevices: 1/1 15# Subdevice #0: subdevice #0 16# card 0: pistachiocard [pistachio-card], device 4: pistachio-i2s-in-0 snd-soc-dummy-dai-4 [] 17# Subdevices: 1/1 18# Subdevice #0: subdevice #0 19# 20# root@OpenWrt:/# aplay -l 21# **** List of PLAYBACK Hardware Devices **** card 0: pistachiocard [pistachio-card], device 0: pistachio-spdif-out snd-soc-dummy-dai-0 [] 22# Subdevices: 1/1 23# Subdevice #0: subdevice #0 24# card 0: pistachiocard [pistachio-card], device 2: pistachio-parallel-out pistachio_internal_dac-2 [] 25# Subdevices: 1/1 26# Subdevice #0: subdevice #0 27# card 0: pistachiocard [pistachio-card], device 3: pistachio-i2s-out snd-soc-dummy-dai-3 [] 28# Subdevices: 1/1 29# Subdevice #0: subdevice #0 30# 31 32pistachio-card.pcm.default{ 33 @args [ CARD ] 34 @args.CARD { 35 type string 36 default "pistachio" 37 } 38 @args.DEVICE { 39 type integer 40 default 2 41 } 42 43 type asym 44 capture.pcm { 45 type multi 46 slaves.a.pcm "hw:0,4" 47 slaves.a.channels 12 48 bindings.0.slave a 49 bindings.0.channel 4 50 bindings.1.slave a 51 bindings.1.channel 5 52 } 53 54 playback.pcm { 55 type hw 56 card $CARD 57 device $DEVICE 58 59