Ignore:
Timestamp:
Apr 21, 2025, 7:17:25 PM (4 months ago)
Author:
David Azarewicz
Message:

Merge from uniaud32-exp branch

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/emu10k1/p16v.c

    r772 r777  
    175175                return err;
    176176
    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 
    182177        return 0;
    183178}
     
    225220        // Only using channel 0 for now, but the card has 2 channels.
    226221        return snd_p16v_pcm_open_capture_channel(substream, 0);
     222}
     223
     224static 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);
    227233}
    228234
     
    532538        .open =        snd_p16v_pcm_open_playback_front,
    533539        .close =       snd_p16v_pcm_close_playback,
     540        .ioctl =       snd_p16v_pcm_ioctl_playback,
    534541        .prepare =     snd_p16v_pcm_prepare_playback,
    535542        .trigger =     snd_p16v_pcm_trigger_playback,
Note: See TracChangeset for help on using the changeset viewer.