Compile error when choosing Sabre as soundcard

When I select Sabre as my soundcard I get the following compile error in DietPi v6.24.1 on a RPi 3 Model B:

DietPi-Set hardware: make CC=gcc-4.9

  • Exit code: 2
  • DietPi version: v6.24.1 (Micha Ing/master) | HW_MODEL:3 | HW_ARCH:2 | DISTRO:4
  • Image creator: DietPi Core Team
  • Pre-image: Raspbian Lite

Log file contents:

/tmp/DietPi-Set_hardware/i-sabre-k2m_build/i-sabre-codec.c:200:16: error: dereferencing pointer to incomplete type
dev_err(codec->dev, “Bad frame size: %d”,

./include/linux/device.h:1442:11: note: in definition of macro dev_err dev_err(dev, dev_fmt(fmt), ##VA_ARGS)

In the previous version of DietPi there were no issues.

Thanks for your report.

Jep known issue with the latest kernel upgrade. However support for this device is baked into the kernel now, so you can simply do:

dtoverlay i-sabre-q2m
echo 'dtoverlay=i-sabre-q2m' >> /DietPi/config.txt
  • Note “q2m” instead of “k2m”, but the latter is supported by this!

Do not touch soundcards with dietpi-config then until v6.25 where we fix it by using the above method.