Commit fba2747
ALSA: usb-audio: Modularize realtek_add_jack in mixer_quirks
Modify the realtek_add_jack function used for the jack detection quirk
to allow passing the mixer unit id and an snd_kcontrol_new.
This allows adding additional devices that require the same quirk, but
implement jack detection with different commands.
Signed-off-by: Tasos Sahanidis <tasos@tasossah.com>
Link: https://patch.msgid.link/20251126003805.2705503-2-tasos@tasossah.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent 500372a commit fba2747
1 file changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2277 | 2277 | | |
2278 | 2278 | | |
2279 | 2279 | | |
2280 | | - | |
| 2280 | + | |
| 2281 | + | |
2281 | 2282 | | |
2282 | 2283 | | |
2283 | 2284 | | |
2284 | 2285 | | |
2285 | 2286 | | |
2286 | 2287 | | |
2287 | 2288 | | |
2288 | | - | |
2289 | | - | |
| 2289 | + | |
2290 | 2290 | | |
2291 | 2291 | | |
2292 | 2292 | | |
2293 | 2293 | | |
2294 | 2294 | | |
2295 | | - | |
| 2295 | + | |
2296 | 2296 | | |
2297 | 2297 | | |
2298 | 2298 | | |
| |||
2322 | 2322 | | |
2323 | 2323 | | |
2324 | 2324 | | |
2325 | | - | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
2326 | 2328 | | |
2327 | 2329 | | |
2328 | | - | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
2329 | 2333 | | |
2330 | 2334 | | |
2331 | 2335 | | |
2332 | | - | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
2333 | 2339 | | |
2334 | 2340 | | |
2335 | 2341 | | |
| |||
0 commit comments