hdac_stream.c (ea2ddd2559dc6d1c4b66ccd49314add35ece9062) | hdac_stream.c (24ad3835a6db4f8857975effa6bf47730371a5ff) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * HD-audio stream operations 4 */ 5 6#include <linux/kernel.h> 7#include <linux/delay.h> 8#include <linux/export.h> --- 161 unchanged lines hidden (view full) --- 170 171 snd_hdac_stream_clear(azx_dev); 172 /* disable SIE */ 173 snd_hdac_chip_updatel(azx_dev->bus, INTCTL, 1 << azx_dev->index, 0); 174} 175EXPORT_SYMBOL_GPL(snd_hdac_stream_stop); 176 177/** | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * HD-audio stream operations 4 */ 5 6#include <linux/kernel.h> 7#include <linux/delay.h> 8#include <linux/export.h> --- 161 unchanged lines hidden (view full) --- 170 171 snd_hdac_stream_clear(azx_dev); 172 /* disable SIE */ 173 snd_hdac_chip_updatel(azx_dev->bus, INTCTL, 1 << azx_dev->index, 0); 174} 175EXPORT_SYMBOL_GPL(snd_hdac_stream_stop); 176 177/** |
178 * snd_hdac_stop_streams - stop all streams 179 * @bus: HD-audio core bus 180 */ 181void snd_hdac_stop_streams(struct hdac_bus *bus) 182{ 183 struct hdac_stream *stream; 184 185 list_for_each_entry(stream, &bus->stream_list, list) 186 snd_hdac_stream_stop(stream); 187} 188EXPORT_SYMBOL_GPL(snd_hdac_stop_streams); 189 190/** |
|
178 * snd_hdac_stop_streams_and_chip - stop all streams and chip if running 179 * @bus: HD-audio core bus 180 */ 181void snd_hdac_stop_streams_and_chip(struct hdac_bus *bus) 182{ | 191 * snd_hdac_stop_streams_and_chip - stop all streams and chip if running 192 * @bus: HD-audio core bus 193 */ 194void snd_hdac_stop_streams_and_chip(struct hdac_bus *bus) 195{ |
183 struct hdac_stream *stream; | |
184 185 if (bus->chip_init) { | 196 197 if (bus->chip_init) { |
186 list_for_each_entry(stream, &bus->stream_list, list) 187 snd_hdac_stream_stop(stream); | 198 snd_hdac_stop_streams(bus); |
188 snd_hdac_bus_stop_chip(bus); 189 } 190} 191EXPORT_SYMBOL_GPL(snd_hdac_stop_streams_and_chip); 192 193/** 194 * snd_hdac_stream_reset - reset a stream 195 * @azx_dev: HD-audio core stream to reset --- 613 unchanged lines hidden --- | 199 snd_hdac_bus_stop_chip(bus); 200 } 201} 202EXPORT_SYMBOL_GPL(snd_hdac_stop_streams_and_chip); 203 204/** 205 * snd_hdac_stream_reset - reset a stream 206 * @azx_dev: HD-audio core stream to reset --- 613 unchanged lines hidden --- |