原创 python生成特定頻率、特定音量的正弦波wav文件(升級版)

第一版:https://mp.csdn.net/postedit/102664748  import wave import numpy as np import struct import matplotlib.pyplot as p

原创 生成特定分貝的正弦波、其他波形音頻數據

https://www.cnblogs.com/wangguchangqing/p/6197590.html  

原创 python pip命令安裝 pyinstaller失敗提示Installing build dependencies ... error

1. 現象: 2. 解決方案,自己下載,手動安裝 2.1 下載地址:https://pypi.org/project/PyInstaller/3.5/#files 2.2 解壓到E:\python\PyInstaller-3.5 2.3

原创 python 安裝matplotlib 庫

參考: https://matplotlib.org/3.1.1/users/installing.html#installing-an-official-release python -m pip install -U matplot

原创 Tinyalsa->ALSA 播放路徑解析

static int pcm_rw_transfer(struct pcm *pcm, void *data, unsigned int frames) { int is_playback; struct snd_x

原创 makefile中獲取當前執行路徑的命令

參考:https://blog.csdn.net/fhb1922702569/article/details/81558797 實踐結果: 0:相對路徑 1:絕對路徑,不帶反斜槓後綴 cur_mkfile := $(abspath $(

原创 Matlab生產各種正弦波的wav文件

 本操作基於一下matlab版本   clear; close all; clc; Df=1; %頻率間隔 fs = 48000; %採樣頻率 T = 1/fs; %採樣週期 N=fs/Df %序列點數 time

原创 matlab製作雙聲道正弦波wav文件

matlab製作ch=2,bitspersample=24,sample=48k, time=1s 的正弦波wav文件 fs:採樣率 sinewave1_fs,正弦波1的頻率, 可以自己改 sinewave2_fs,正弦波1的頻率, 可以

原创 解決linux kernel 提交gerrit時,運行checkpatch.pl產生的xxxx64_defconfig not generated by savedefconfig問題

https://blog.csdn.net/Qidi_Huang/article/details/77984575 setp1. make ARCH=arm xxxx64_defconfig setp2. make ARCH=arm me

原创 用戶空間與內核空間數據交換的方式(精華)

用戶空間與內核空間數據交換的方式(1)------debugfs 用戶空間與內核空間數據交換的方式(2)------procfs 用戶空間與內核空間數據交換的方式(3)------seq_file 用戶空間與內核空間數據交換的方式(4)-

原创 cdev和miscdev 設備是如何註冊自定義的file_operations,如何調用的

參考https://www.cnblogs.com/xiaojiang1025/p/6196198.html 仔細看文件  drivers/char/misc.c 中的misc_open函數 和字符文件  fs/char_dev.c  中

原创 Linux驅動開發——pr_fmt的用法

參考: linux驅動開發--pr_fmt的使用: https://www.cnblogs.com/pengdonglin137/p/6209424.html

原创 /dev/mem可沒那麼簡單

參考: /dev/mem可沒那麼簡單: https://www.cnblogs.com/cxchanpin/p/7230743.html Linux中通過/dev/mem操控物理地址: http://blog.donews.com/21c

原创 register_chrdev/register_chrdev_region/alloc_chrdev_region和cdev註冊字符設備驅動

參考: https://www.cnblogs.com/zhaobinyouth/p/6227644.html  

原创 根據debug需要設計printf調試宏

轉載自:https://segmentfault.com/a/1190000000456199 v1--單參數宏 #define DRV_DEBUG 1 #if DRV_DEBUG #define DRV_PRINT(x) pr