{"id":516404,"date":"2026-07-08T20:52:08","date_gmt":"2026-07-08T20:52:08","guid":{"rendered":"https:\/\/www.newsbeep.com\/nz\/516404\/"},"modified":"2026-07-08T20:52:08","modified_gmt":"2026-07-08T20:52:08","slug":"pi-5-becomes-alsa-compatible-toslink-sound-card","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/nz\/516404\/","title":{"rendered":"Pi 5 Becomes ALSA-Compatible TOSLINK Sound Card"},"content":{"rendered":"<p>This is one of those hacks that makes you stop in your tracks and say, \u201cwait, you can do that!?\u201d \u2014 before realizing, oh, yes, of course you can do that. With enough computational power, you can do a lot of things, and the Raspberry Pi 5 is a far cry from the single-board computer\u2019s humble beginnings. In this case, the \u201cyou can do that!?\u201d is both that [Oliver] was able to get the digital audio <a href=\"https:\/\/github.com\/RASPIAUDIO\/CamillaDSP\/blob\/main\/prototypes\/pi5_spdif_gpio\/README.md\" target=\"_blank\" rel=\"nofollow noopener\">TOSLINK working via an LED tied to one GPIO pin on the Pi<\/a>, but also the larger project that is embedded in: using the Pi as a full featured <a href=\"https:\/\/github.com\/RASPIAUDIO\/CamillaDSP\" target=\"_blank\" rel=\"nofollow noopener\">8-channel USB sound card called Camilla DSP<\/a>.<\/p>\n<p>For the first one: the old TOSLink standard is very simple, and all you need to do is blink an LED quickly enough. Considering the clock frequency of the Pi 5 is in the GHz range and the TOSLINK is the same 3.1 Mbit\/s S\/PDIF signal you could pull off your CD-ROM drive to your Sound Blaster, there\u2019s no problem there. Except, wouldn\u2019t the operating system get in the way? Well, not when you have enough clock cycles to throw at the problem. Using a Pi 5 doesn\u2019t hurt: <a href=\"https:\/\/hackaday.com\/2023\/10\/10\/raspberry-pi-lifts-skirts-a-little-on-their-rp1-peripheral\/\" rel=\"nofollow noopener\" target=\"_blank\">the RP1 I\/O chip<\/a> included on the board is keeping things smooth with its included PIO while Linux mucks about in the background. There\u2019s a reason we called it <a href=\"https:\/\/hackaday.com\/2023\/10\/16\/why-the-rp1-is-the-most-important-product-raspberry-pi-have-ever-made\/\" rel=\"nofollow noopener\" target=\"_blank\">the most important product Raspberry Pi ever made<\/a>.<\/p>\n<p>As for making a USB sound card from an SBC \u2014 well, we\u2019re not sure why that got the \u201cyou can do that\u201d reaction. The Raspberry Pi family had \u2018gadget mode\u2019 <a href=\"https:\/\/hackaday.com\/2015\/12\/27\/turning-the-pi-zero-into-a-usb-gadget\/\" rel=\"nofollow noopener\" target=\"_blank\">for over a decade now,<\/a> allowing you to present the computer as a USB device, so why not a sound card? That\u2019s a valid class of USB device.<\/p>\n","protected":false},"excerpt":{"rendered":"This is one of those hacks that makes you stop in your tracks and say, \u201cwait, you can&hellip;\n","protected":false},"author":2,"featured_media":516405,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[111,139,69,145],"class_list":["post-516404","post","type-post","status-publish","format-standard","has-post-thumbnail","category-technology","tag-new-zealand","tag-newzealand","tag-nz","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/nz\/wp-json\/wp\/v2\/posts\/516404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/nz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/nz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/nz\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/nz\/wp-json\/wp\/v2\/comments?post=516404"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/nz\/wp-json\/wp\/v2\/posts\/516404\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/nz\/wp-json\/wp\/v2\/media\/516405"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/nz\/wp-json\/wp\/v2\/media?parent=516404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/nz\/wp-json\/wp\/v2\/categories?post=516404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/nz\/wp-json\/wp\/v2\/tags?post=516404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}