> For the complete documentation index, see [llms.txt](https://gpi-nusom.gitbook.io/documentacao/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gpi-nusom.gitbook.io/documentacao/atividades/tutoriais/raspberry-pi/cirrus-logic-audio-card.md).

# Cirrus Logic Audio Card

**Instalação da placa de som Cirrus Logic Audio Card no Raspberry Pi 2 e 3.**

1. Abrir o terminal teclando: `Ctrl+Alt+T`
2. No terminal:

   ```bash
   sudo rpi-update
   sudo reboot
   ```

   O seu RPi será reiniciado. Aguarde o processo terminar.
3. Abrir o Terminal novamente: `Ctrl+Alt+T`
4. Para habilitar o driver da placa, abra o arquivo de configuração digitando no terminal:

   ```bash
   sudo leafpad /boot/config.txt
   ```
5. No Editor de texto, adicione ao final do documento as seguintes linhas:

   ```
   #Suporte para placa Cirrus Logic Audio Card
   dtoverlay=rpi-cirrus-wm5102
   ```
6. Salve o documento
7. Agora vamos criar o arquivo de configuração da placa, no Terminal:

   ```bash
   sudo leafpad /etc/modprobe.d/cirrus.conf
   ```
8. Novamente no editor de Texto adicionar as linhas abaixo, salvar e sair:

   ```
   softdep arizona-spi pre: arizona-ldo1
   options snd slots=snd-soc-rpi-cirrus,snd-bcm2835
   ```
9. Agora baixe e instale "usecase" mixer scripts:

   ```bash
   wget http://www.horus.com/~hias/tmp/cirrus/cirrus-ng-scripts.tgz
   mkdir bin
   cd bin
   tar zxf ../cirrus-ng-scripts.tgz
   ```
10. Reinicie o Raspberry para utilizar a placa:

    ```
    sudo reboot
    ```

***Fonte:*** [*RPi Linux driver for Wolfson / Cirrus Logic Audio Card*](http://www.horus.com/~hias/cirrus-driver.html)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gpi-nusom.gitbook.io/documentacao/atividades/tutoriais/raspberry-pi/cirrus-logic-audio-card.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
