Changeset 777 for GPL/trunk/alsa-kernel/pci/emu10k1/p16v.c
- Timestamp:
- Apr 21, 2025, 7:17:25 PM (4 months ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-exp merged: 766-767,770-771,773-774
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/pci/emu10k1/p16v.c
r772 r777 175 175 return err; 176 176 177 runtime->sync.id32[0] = substream->pcm->card->number;178 runtime->sync.id32[1] = 'P';179 runtime->sync.id32[2] = 16;180 runtime->sync.id32[3] = 'V';181 182 177 return 0; 183 178 } … … 225 220 // Only using channel 0 for now, but the card has 2 channels. 226 221 return snd_p16v_pcm_open_capture_channel(substream, 0); 222 } 223 224 static int snd_p16v_pcm_ioctl_playback(struct snd_pcm_substream *substream, 225 unsigned int cmd, void *arg) 226 { 227 if (cmd == SNDRV_PCM_IOCTL1_SYNC_ID) { 228 static const unsigned char id[4] = { 'P', '1', '6', 'V' }; 229 snd_pcm_set_sync_per_card(substream, arg, id, 4); 230 return 0; 231 } 232 return snd_pcm_lib_ioctl(substream, cmd, arg); 227 233 } 228 234 … … 532 538 .open = snd_p16v_pcm_open_playback_front, 533 539 .close = snd_p16v_pcm_close_playback, 540 .ioctl = snd_p16v_pcm_ioctl_playback, 534 541 .prepare = snd_p16v_pcm_prepare_playback, 535 542 .trigger = snd_p16v_pcm_trigger_playback,
Note:
See TracChangeset
for help on using the changeset viewer.