| .. | .. |
|---|
| 212 | 212 | int stream_tag; |
|---|
| 213 | 213 | int ret; |
|---|
| 214 | 214 | |
|---|
| 215 | + link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name); |
|---|
| 216 | + if (!link) |
|---|
| 217 | + return -EINVAL; |
|---|
| 218 | + |
|---|
| 215 | 219 | /* get stored dma data if resuming from system suspend */ |
|---|
| 216 | 220 | link_dev = snd_soc_dai_get_dma_data(dai, substream); |
|---|
| 217 | 221 | if (!link_dev) { |
|---|
| .. | .. |
|---|
| 231 | 235 | substream->stream); |
|---|
| 232 | 236 | if (ret < 0) |
|---|
| 233 | 237 | return ret; |
|---|
| 234 | | - |
|---|
| 235 | | - link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name); |
|---|
| 236 | | - if (!link) |
|---|
| 237 | | - return -EINVAL; |
|---|
| 238 | 238 | |
|---|
| 239 | 239 | /* set the stream tag in the codec dai dma params */ |
|---|
| 240 | 240 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
|---|