{"id":14548306,"url":"https://github.com/waveshareteam/WM8960-Audio-HAT","last_synced_at":"2025-09-03T20:31:15.913Z","repository":{"id":54366100,"uuid":"149276101","full_name":"waveshareteam/WM8960-Audio-HAT","owner":"waveshareteam","description":"The drivers of [WM8960 Audio HAT] for Raspberry Pi","archived":false,"fork":false,"pushed_at":"2024-05-31T06:25:49.000Z","size":65,"stargazers_count":104,"open_issues_count":44,"forks_count":69,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-09-06T12:14:04.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waveshareteam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-18T11:18:39.000Z","updated_at":"2024-09-05T10:25:39.000Z","dependencies_parsed_at":"2024-04-15T03:23:50.746Z","dependency_job_id":"b80fd753-55cc-4258-b4f6-f8c32fd29825","html_url":"https://github.com/waveshareteam/WM8960-Audio-HAT","commit_stats":null,"previous_names":["waveshareteam/wm8960-audio-hat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waveshareteam%2FWM8960-Audio-HAT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waveshareteam%2FWM8960-Audio-HAT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waveshareteam%2FWM8960-Audio-HAT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waveshareteam%2FWM8960-Audio-HAT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waveshareteam","download_url":"https://codeload.github.com/waveshareteam/WM8960-Audio-HAT/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231916533,"owners_count":18445413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-06T12:01:13.568Z","updated_at":"2025-09-03T20:31:15.882Z","avatar_url":"https://github.com/waveshareteam.png","language":"C","readme":"# WM8960 Audio HAT\n\nThe drivers of [WM8960 Audio HAT] for Raspberry Pi.\n\nhttp://www.waveshare.net/shop/WM8960-Audio-HAT.htm\n\nhttp://www.waveshare.com/wm8960-audio-hat.htm\n\n### Install wm8960-soundcard\nGet the wm8960 soundcard source code. and install all linux kernel drivers\n\n```bash\ngit clone https://github.com/waveshare/WM8960-Audio-HAT\ncd WM8960-Audio-HAT\nsudo ./install.sh \nsudo reboot\n```\n\nWhile the upstream wm8960 codec is not currently supported by current Pi kernel builds, upstream wm8960 has some bugs, we had fixed it. we must it build manually.\n\nCheck that the sound card name matches the source code wm8960-soundcard.\n\n```bash\npi@raspberrypi:~ $ aplay -l\n**** List of PLAYBACK Hardware Devices ****\ncard 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]\n  Subdevices: 7/7\n  Subdevice #0: subdevice #0\n  Subdevice #1: subdevice #1\n  Subdevice #2: subdevice #2\n  Subdevice #3: subdevice #3\n  Subdevice #4: subdevice #4\n  Subdevice #5: subdevice #5\n  Subdevice #6: subdevice #6\ncard 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]\n  Subdevices: 1/1\n  Subdevice #0: subdevice #0\ncard 1: wm8960soundcard [wm8960-soundcard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 []\n  Subdevices: 1/1\n  Subdevice #0: subdevice #0\npi@raspberrypi:~ $ arecord -l\n**** List of CAPTURE Hardware Devices ****\ncard 1: wm8960soundcard [wm8960-soundcard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 []\n  Subdevices: 1/1\n  Subdevice #0: subdevice #0\n\n```\nIf you want to change the alsa settings, You can use `sudo alsactl --file=/etc/wm8960-soundcard/wm8960_asound.state  store` to save it.\n\n\n### Usage:\n```bash\n#It will capture sound an playback on hw:1\narecord -f cd -Dhw:1 | aplay -Dhw:1\n```\n\n```bash\n#capture sound \n#arecord -d 10 -r 16000 -c 1 -t wav -f S16_LE test.wav\narecord -D hw:1,0 -f S32_LE -r 16000 -c 2 test.wav\n```\n\n```bash\n#play sound file test.wav\naplay -D hw:1,0 test.wav\n```\n\n### uninstall wm8960-soundcard\nIf you want to upgrade the driver , you need uninstall the driver first.\n\n```bash\npi@raspberrypi:~/WM8960-Audio-HAT $ sudo ./uninstall.sh \n...\n\n------------------------------------------------------\nPlease reboot your raspberry pi to apply all settings\nThank you!\n------------------------------------------------------\n```\n\nEnjoy !\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaveshareteam%2FWM8960-Audio-HAT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaveshareteam%2FWM8960-Audio-HAT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaveshareteam%2FWM8960-Audio-HAT/lists"}