Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Robert Jarzmik | 74426fb | 2017-09-02 21:54:04 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 Robert Jarzmik <robert.jarzmik@free.fr> |
Robert Jarzmik | 74426fb | 2017-09-02 21:54:04 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
Pierre-Louis Bossart | 2d7a5c6 | 2020-09-02 16:21:28 -0500 | [diff] [blame] | 6 | unsigned int snd_ac97_bus_scan_one(struct ac97_controller *adrv, |
Robert Jarzmik | 74426fb | 2017-09-02 21:54:04 +0200 | [diff] [blame] | 7 | unsigned int codec_num); |
| 8 | |
| 9 | static inline bool ac97_ids_match(unsigned int id1, unsigned int id2, |
| 10 | unsigned int mask) |
| 11 | { |
| 12 | return (id1 & mask) == (id2 & mask); |
| 13 | } |