masnagam
fe259b52b7
driver: __init
と __exit
を指定
...
モジュールの初期化および終了関数にそれぞれ `__init` と `__exit` を指定
した.これらマクロを使用していなくても大きな問題は発生しないと考えられ
るが,一般的な作法として追加した.
これらマクロの説明は以下を参照:
* https://tldp.org/LDP/lkmpg/2.4/html/x281.htm
* https://fastbitlab.com/linux-device-driver-programming-lecture-18-__init-and-__exit-macros/
* https://shnoh171.github.io/linux%20kernel/2019/09/01/linux-kernel-module-basics.html
2025-07-20 08:52:02 +09:00
Chromaryu
26e8327823
driver_module: VERSION定義を追加
2025-07-06 20:34:57 +09:00
Chromaryu
62cfb11290
moduleのIBT対応
2025-06-25 14:19:35 +09:00
tsukumi
12a1213912
v0.5.4
2025-06-08 03:28:15 +09:00
tsukumi
17496bed2c
driver: Oracle Linux 9 でビルドできないらしい問題を修正
...
新しい GCC バージョンだと、予期しない fall through を防ぐため、明示的に fallthrough; を使わないとビルドできなくなっているらしい
以下フォークでの変更を取り込んだ
ref: 57cec596b4
2025-06-08 03:14:24 +09:00
tsukumi
419f1dea5a
Merge pull request #30 from hendecarows/feature/isdbt2071
...
DTV03A-1TU(ISDBT2071)製造ロット2022-11月以降のLinux対応
2025-06-08 02:39:16 +09:00
hendecarows
0a63d0c9fa
Ubuntu 24.04環境でdkms後処理スクリプトが本来削除すべきではない99-px4video.rulesとit930x-firmware.binを削除してしまう問題を修正
2025-06-05 20:09:24 +09:00
hendecarows
51134d6d74
DTV03A-1TU(ISDBT2071)製造ロット2022-11月以降のLinux対応
...
WinUSB版同様チャンネル変更後はエラーやドロップを多量に含む不安定なTSが出力される。録画用途での使用は厳しい。
2025-05-11 00:44:05 +09:00
tsukumi
d6baacdcbc
v0.5.3
2025-05-07 02:39:16 +09:00
tsukumi
ee968631a3
driver: ptx_chrdev_context_reserve() のヘッダー上の定義が欠落していたのを修正
...
現状全く使われていない関数なので残しておく必要があるのか…?とはなるが…
2025-01-22 01:41:34 +09:00
KOUNOIKE Yuusuke
f282d1c100
fix UBSAN false positive
2025-01-12 17:08:46 +09:00
tsukumi
cf161dd1ed
v0.5.2
2025-01-11 08:55:50 +09:00
tsukumi
796bff8fb9
v0.5.1
2024-10-03 05:55:53 +09:00
tsukumi
30de72a3fa
v0.5.0
2024-10-01 03:11:07 +09:00
hendecarows
b3ec9051ac
Linux版ISDB2056Nに対し、TC90522の初期化、終了処理を追加
2024-08-13 15:36:33 +09:00
tsukumi
d0a95f33a9
v0.4.5
2024-07-02 21:26:42 +09:00
tsukumi
1b1610987d
driver: ISDB2056 と ISDB2056N の同時利用に対応
...
今までは既存の ISDB2056 向けドライバを ISDB2056N 向けに改造していたため逆に既存の ISDB2056 では動作しなくなっていた
この変更により、両方のデバイスを /dev/isdb2056video* として区別なく扱えるようになる
2024-07-02 20:51:14 +09:00
tsukumi
363657dc88
driver: ISDB2056N で衛星放送がエラーパケットばかりで正常に受信できない問題を修正
...
今のところ地上波/BS/CS全てドロップもなく魔法のように受信できている
無名の有志のパッチに感謝…
ref: https://mevius.5ch.net/test/read.cgi/avi/1662431792/380
ref: https://pastebin.com/XbVWUcSi
2024-07-02 05:17:06 +09:00
tsukumi
be06a00250
driver: ISDB2056N で衛星放送の受信結果がエラーパケットだらけになる問題が修正されそうな変更を試す
...
ISDB2056 -> ISDB2056N では TS 復調 IC が TC90522XBG に変更された影響か I2C バスや物理的な接続バスが変更されているようで、恐らく ISDB-S 側の TC90522XBG 設定の is_secondary を true にすれば行けるのではと予想
2024-06-05 05:20:19 +09:00
tsukumi
cca59d4ceb
driver: ISDB2056N で衛星放送を選局できない問題が修正されそうな変更を試す
...
実際に動くとは限らないし、この変更により間違いなく旧ロットである ISDB2056 ではドライバが正常動作しなくなる
2024-06-04 05:02:57 +09:00
tsukumi
266fea2c80
driver: Kbuild に PXS1UR_USB_MAX_DEVICE が定義されていないのを修正
2024-05-29 02:03:01 +09:00
tsukumi
3612f51c06
driver: DTV02A-1T1S-U の2023年9月以降のロット (ISDB2056N) に暫定対応
...
これで認識はするはずだが、実機を持っていないため動作するかは不明
2024-05-29 01:58:48 +09:00
tsukumi
d40d5d4f67
v0.4.4
2024-03-04 06:54:25 +00:00
Kazuki H
e01add895c
Linux 6.8に対応
...
Linux 6.8ではstrlcpyが消されている。
d26270061a
2024-03-03 21:40:16 +09:00
tsukumi
a0015bf651
v0.4.3
2024-02-26 13:19:56 +00:00
tsukumi
c0430f7ecb
Revert "driver: use of mdelay is discouraged"
...
This reverts commit 7fb081442c
.
2024-02-15 15:46:44 +00:00
tsukumi
a6a98b8bd6
v0.4.2
2024-01-17 03:13:33 +00:00
tsukumi
f9e69c6e45
Merge branch 'fix-usb_bulk_msg_timedout' of github.com:masnagam/px4_drv into develop
2024-01-17 03:10:14 +00:00
masnagam
7fb081442c
driver: use of mdelay is discouraged
...
See https://www.kernel.org/doc/Documentation/timers/timers-howto.txt .
`msleep()` was replaced with `mdelay()` in In d4cd1f2
, but
`mdelay(1..20)` will sleep longer as described in the documentation.
`mdelay()` will busy wait and waste hundreds of thousands of cycles on
1GHz CPU.
2023-10-14 20:13:55 +09:00
masnagam
bf5ff099be
driver: add error logs for debugging ETIMEDOUT issues
2023-10-09 14:05:51 +09:00
tsukumi
d10120f86d
v0.4.1
2023-09-30 03:13:24 +00:00
tsukumi
1a2b9b3579
Merge branch 'develop' of github.com:techmadot/px4_drv into develop
2023-09-30 03:09:49 +00:00
masnagam
fe4d37c0c9
feat: add ctrl_timeout as a module parameter
...
Sending a request by `it930x_ctrl_msg()` sometimes fails due to the
error code -110 (ETIMEDOUT). However, in some situations, the
response seems to be received after the ETIMEDOUT error. This can be
observed by capturing packets using `tcpdump` + `usbmon`.
```shell
sudo modprobe usbmon
sudo tcpdump -i usbmon<n> -s0 -U -w - | tee /path/to/capture.pcap | \
tcpdump -r -
```
Actually, no ETIMEDOUT error occur during timeshift recording with the
following settings at least on my environment (ROCK64 + PX-W3U4):
```text
options px4_drv ctrl_timeout=5000 psb_purge_timeout=5000
```
These two timeout values are eventually passed to `usb_bulk_msg()`.
2023-09-27 18:51:07 +09:00
てっくま
79bb2fe388
Merge pull request #3 from otya128/develop
...
otya128氏のメモリ処理変更を取り込んでみる
2023-09-02 20:36:59 +09:00
techmadot
166e3d5b62
ミスの修正
...
もともと無効化されていた部分を整理時に外してしまったので戻した。
2023-08-22 21:23:05 +09:00
tsukumi
76408cade2
driver: Linux カーネル 6.4 系以降と 6.3 系以前で class_create() の呼び方を出し分ける
2023-08-22 06:17:03 +00:00
tsukumi
b8de94ff01
Merge branch 'patch_kernel_v6.4' of github.com:kznrluk/px4_drv into develop
2023-08-22 06:10:02 +00:00
tsukumi
722a1b1b18
Merge branch 'tbf15' of github.com:techmadot/px4_drv into develop
2023-08-22 04:30:27 +00:00
tsukumi
6b7ad302a6
Merge branch 'develop' of github.com:otya128/px4_drv into develop
2023-08-22 04:07:36 +00:00
otya
1c1e6fa146
相対TS番号だけでなくTS_idを指定可能に
...
指定できなかったのはただのミスなのか意図的なものなのかは不明
2023-08-18 16:57:29 +09:00
techmadot
e0562da5d4
PX-S1UR 対応 / M1UR,S1URのコード整理
2023-08-14 13:45:52 +09:00
kznrluk
0664bfc974
driver: Linuxカーネルv6.4の関数シグニチャの変更に対応
...
6e30a66433
dcfbb67e48
2023-07-05 16:16:23 +09:00
tsukumi
2d417a1f2c
driver: px4_usb: PX-M1UR 関連の細かな修正
...
PXM1UR_USB_MAX_DEVICE の定義が欠けていたのでその修正
2023-06-30 16:59:39 +00:00
tsukumi
24dfcf8c66
Merge branch 'develop' of github.com:techmadot/px4_drv into develop
2023-05-28 17:14:37 +00:00
techmadot
0fbcd39232
PX-M1UR に対応
2023-04-23 10:46:25 +09:00
otya
76969000f1
__GFP_RETRY_MAYFAILを指定
2022-12-31 11:27:30 +09:00
otya
02c9c1492a
バッファを毎回解放しないようにしてメモリ確保に失敗しないように修正
...
デフォルトではurb_max_packets=816*188バイト=2^6ページの物理アドレス的に連続なメモリ領域をmax_urbs=6要求するものの、毎回確保できるとは限らないため確保できたら解放しないようにすることでとりあえず解決
この他にもTSリングバッファの割り当ても大きな連続メモリを要求していて、64-bitカーネルにおけるもっとも単純な解決策としてはリングバッファをvmallocで確保すればよい
しかしTSリングバッファはatomic contextでアクセスさせる可能性があり、vmallocで確保した領域へのアクセスはpage faultの発生する可能性のあるため望ましくない
ただしITEDTV_BUS_USE_WORKQUEUEが定義されていればworkqueueで処理されるので問題はない
とはいえ、これによる遅延がどういう作用を起こすかわからないうえに元からカーネルモジュールのロード時限定で起動時であればメモリ確保に失敗することはまずないため今のところ修正は考えないことにする
2022-12-30 21:29:31 +09:00
nns779
8d3e4818c1
driver: c64eb24
の Linux版
2021-08-26 21:38:22 +09:00
nns779
2c825d4e82
Merge branch 'winusb' into develop
2021-08-26 21:00:39 +09:00
nns779
c64eb24917
winusb: DriverHost_PX4: デバイスが正常に初期化されないことのある問題に対する緩和策を追加
2021-07-06 20:06:59 +09:00